:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f0f4f8;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

section, aside {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#inputSection, #resultSection {
    flex: 1 1 60%;
    min-width: 300px;
}

#infoSection {
    flex: 1 1 30%;
    min-width: 250px;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 1rem;
}

button:hover {
    background-color: #2980b9;
}

.hidden {
    display: none;
}

#zoneChart {
    margin-bottom: 2rem;
}

.zone {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: #ecf0f1;
    transition: transform 0.3s;
}

.zone:hover {
    transform: translateY(-5px);
}

.zone h3 {
    margin: 0 0 0.5rem 0;
}

.zone-range {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.zone-description {
    margin-top: 0.5rem;
}

.tooltip {
    cursor: help;
    margin-left: 0.5rem;
    color: #7f8c8d;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    z-index: 1;
    width: 200px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip:hover::after {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: var(--border-radius);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#actionButtons {
    display: flex;
    gap: 1rem;
}

#actionButtons button {
    flex: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    section, aside {
        padding: 1rem;
    }

    #actionButtons {
        flex-direction: column;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    #resultSection, #resultSection * {
        visibility: visible;
    }

    #resultSection {
        position: absolute;
        left: 0;
        top: 0;
    }

    #actionButtons {
        display: none;
    }
}
