body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.header {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 300;
}

.header p {
    margin: 10px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.map-container {
    height: calc(100vh - 120px);
    width: 100%;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

.park-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.park-popup h3 {
    margin: 0 0 10px 0;
    color: #2c5530;
    font-size: 1.2em;
}

.park-popup p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.park-popup .state {
    font-weight: bold;
    color: #4a7c59;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.stats {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.9em;
    max-width: 250px;
}

.stats h4 {
    margin: 0 0 10px 0;
    color: #2c5530;
}

.stats p {
    margin: 5px 0;
    color: #666;
}

.legend-toggle {
    background: #2c5530;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin-top: 10px;
}

.legend-content {
    display: block;
}

.legend-content.collapsed {
    display: none;
}

.visit-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.visit-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.visit-modal h3 {
    margin-top: 0;
    color: #2c5530;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #2c5530;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

.park-visited {
    background-color: #4a7c59 !important;
}

.visit-status {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.visit-status.visited {
    color: #2c5530;
}

.visit-status.not-visited {
    color: #999;
}

.data-management {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.9em;
    min-width: 200px;
}

.data-management h4 {
    margin: 0 0 10px 0;
    color: #2c5530;
}

.data-management button {
    width: 100%;
    margin: 5px 0;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: opacity 0.2s;
}

.data-management button:hover {
    opacity: 0.8;
}

.btn-export {
    background-color: #28a745;
    color: white;
}

.btn-backup {
    background-color: #17a2b8;
    color: white;
}

.btn-import {
    background-color: #ffc107;
    color: #333;
}

.btn-reset {
    background-color: #dc3545;
    color: white;
}

.file-input {
    display: none;
}

.import-success {
    color: #28a745;
    font-size: 0.8em;
    margin-top: 5px;
}

.import-error {
    color: #dc3545;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .stats {
        position: fixed;
        top: 5px;
        right: 5px;
        left: 5px;
        max-width: none;
        font-size: 0.7em;
        padding: 8px;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .data-management {
        position: fixed;
        top: 5px;
        left: 5px;
        right: 5px;
        max-width: none;
        font-size: 0.7em;
        padding: 8px;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .data-management button {
        font-size: 10px;
        padding: 4px 6px;
        margin: 2px 0;
    }
    
    .legend-content {
        display: none !important;
    }
    
    .legend-content.mobile-visible {
        display: block !important;
    }
    
    .map-container {
        height: 100vh;
        padding-top: 0;
    }
    
    .header {
        padding: 10px;
        position: relative;
        z-index: 1001;
    }
    
    .header h1 {
        font-size: 1.5em;
        margin: 0;
    }
    
    .header p {
        font-size: 0.9em;
        margin: 5px 0 0 0;
    }
    
    /* Make panels more compact */
    .stats h4 {
        font-size: 0.9em;
        margin: 0 0 5px 0;
    }
    
    .stats p {
        margin: 2px 0;
        font-size: 0.8em;
    }
    
    .data-management h4 {
        font-size: 0.9em;
        margin: 0 0 5px 0;
    }
}

@media (max-width: 480px) {
    .stats {
        font-size: 0.65em;
        padding: 6px;
        max-height: 35vh;
    }
    
    .data-management {
        font-size: 0.65em;
        padding: 6px;
        max-height: 35vh;
    }
    
    .data-management button {
        font-size: 9px;
        padding: 3px 5px;
        margin: 1px 0;
    }
    
    .header h1 {
        font-size: 1.3em;
    }
    
    .header p {
        font-size: 0.8em;
    }
}

/* Mobile panel toggles */
.mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        position: fixed;
        top: 5px;
        right: 5px;
        background: #2c5530;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 0.9em;
        z-index: 1002;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        min-width: 40px;
        text-align: center;
    }
    
    .stats.mobile-hidden {
        display: none;
    }
    
    .data-management.mobile-hidden {
        display: none;
    }
}

