/* Enhanced Modular Styles for GraniteFungiForager */

/* CSS Custom Properties for consistent theming */
:root {
    --primary-color: #2d5016;
    --secondary-color: #8B4513;
    --accent-color: #DAA520;
    --success-color: #32CD32;
    --warning-color: #FFD700;
    --danger-color: #ff4444;
    --text-color: #333;
    --background-color: #f5f5f0;
    --card-background: rgba(255, 255, 255, 0.95);
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Animations for toasts and modals */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-color) 0%, #e8f5e8 100%);
    min-height: 100vh;
}

/* Container and Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.control-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Controls */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

select, input[type="range"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

select {
    background: white;
    cursor: pointer;
}

/* Range Sliders */
.slider-group {
    margin-bottom: 1rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input[type="range"] {
    margin: 0.5rem 0;
    background: linear-gradient(to right, var(--accent-color), var(--success-color));
    height: 8px;
    border-radius: 4px;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Checkbox Styling */
.checkbox-group {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

/* Weather Display */
.weather-grid {
    display: grid;
    gap: 0.75rem;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.weather-label {
    font-weight: 600;
    color: var(--text-color);
}

.weather-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Buttons */
.update-btn {
    background: linear-gradient(45deg, var(--primary-color), #4a7c1a);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #4a7c1a, var(--primary-color));
}

.update-btn:active {
    transform: translateY(0);
}

/* Map Section */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.map-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.map-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* SVG Map Styling */
#nh-map {
    width: 100%;
    max-width: 500px;
    height: auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.county {
    stroke: #333;
    stroke-width: 2;
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.county:hover {
    stroke: var(--accent-color);
    stroke-width: 3;
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.2));
    transform: scale(1.02);
}

.county:focus {
    outline: none;
    stroke: var(--warning-color);
    stroke-width: 4;
}

.county-label {
    font-size: 12px;
    font-weight: bold;
    fill: #333;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Map Legend */
.map-legend {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 200px;
}

.map-legend h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #333;
}

.legend-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.map-instructions {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

/* Species Information Panel */
.species-info {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.species-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.county-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.close-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.probability-display {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.probability-display h3 {
    margin: 0;
    font-size: 1.4rem;
}

.current-conditions {
    margin-bottom: 1.5rem;
}

.current-conditions h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.condition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.condition-label {
    font-weight: 600;
    color: var(--text-color);
}

.condition-value {
    font-weight: bold;
    color: var(--primary-color);
}

.recommendations {
    margin-bottom: 1.5rem;
}

.recommendations h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    line-height: 1.5;
}

.public-lands h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.public-lands ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.public-lands li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.public-lands li:last-child {
    border-bottom: none;
}

.locations-grid {
    display: grid;
    gap: 1rem;
}

.location-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.location-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.location-type {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-card p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.location-card p:last-child {
    margin-bottom: 0;
}

.location-notes {
    font-style: italic;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1001;
    max-width: 250px;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
}

.disclaimer {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    text-align: center;
}

.disclaimer h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.disclaimer p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #856404;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.credits {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    color: #666;
}

.credits p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.credits p:last-child {
    margin-bottom: 0;
}

.credits a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.credits a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Loading Styles */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Styles */
.error-message {
    background: var(--danger-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 1rem 0;
    box-shadow: var(--box-shadow);
}

.error-message h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.error-message button {
    background: white;
    color: var(--danger-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.error-message button:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .control-group {
        padding: 1rem;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .season-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .county-details {
        padding: 1rem;
    }
    
    .county-header h2 {
        font-size: 1.4rem;
    }
    
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .weather-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .condition-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .county-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .season-grid {
        grid-template-columns: 1fr;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000;
        --background-color: #fff;
        --card-background: #fff;
        --primary-color: #000;
        --accent-color: #0066cc;
    }
    
    .county {
        stroke-width: 3;
    }
    
    .county:focus {
        stroke-width: 5;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
        border: 4px solid #ccc;
        border-top-color: var(--primary-color);
    }
}

/* Print styles */
@media print {
    .modal,
    .update-btn,
    #manual-controls,
    .footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .species-info,
    .map-container {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
.info-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.info-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section strong {
    color: var(--primary-color);
}

/* Season Grid */
.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.season-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    text-align: center;
}

.season-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.season-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.county-details {
    padding: 2rem;
}

.county-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem
}
/* County Info Panel */
.county-info-panel {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    margin-top: 1.5rem;
    display: none;
}

.county-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.county-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.clear-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.clear-btn:hover {
    background: #cc0000;
}
/* Enhanced Map Styling */
#nh-map {
    width: 100%;
    max-width: 600px;
    height: auto;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.county {
    stroke: #2c5530;
    stroke-width: 2.5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.15));
}

.county:hover {
    stroke: #ff6b35;
    stroke-width: 4;
    filter: drop-shadow(4px 4px 12px rgba(0,0,0,0.3));
    transform: scale(1.03);
}

.county-label {
    font-size: 13px;
    font-weight: 700;
    fill: #2c5530;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
    font-family: 'Segoe UI', sans-serif;
}

/* Geographic Icons */
.geo-icon {
    font-size: 16px;
    pointer-events: none;
}

.mountain-icon { fill: #8b4513; }
.lake-icon { fill: #4682b4; }
.forest-icon { fill: #228b22; }
.coast-icon { fill: #20b2aa; }

/* Foraging Report Modal Styles */
.foraging-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.report-modal-content {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    max-height: 90vh;
    width: 95%;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, var(--primary-color), #4CAF50);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Report Form Styles */
.report-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-row input[readonly] {
    background: #f5f5f5;
    color: #666;
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(45, 80, 22, 0.05);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label span {
    font-size: 1rem;
}

/* Success Details (conditional field) */
.success-details {
    margin-left: 1rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--success-color), #28a745);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #28a745, var(--success-color));
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* County Actions Styling */
.county-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.report-success-btn {
    background: linear-gradient(135deg, var(--accent-color), #f0ad4e);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.report-success-btn:hover {
    background: linear-gradient(135deg, #f0ad4e, var(--accent-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

/* Toast Notifications */
.success-toast,
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    max-width: 350px;
    color: white;
}

.success-toast {
    background: var(--success-color);
}

.error-toast {
    background: var(--danger-color);
}

.toast-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.toast-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .report-modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 1rem auto;
    }
    
    .modal-header,
    .report-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
    }
    
    .county-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .report-success-btn {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Statistics and Export Modal Styles */
.stats-modal-content,
.export-modal-content {
    max-width: 800px;
    max-height: 90vh;
}

.stats-content,
.export-content {
    padding: 2rem;
    overflow-y: auto;
}

.stats-section,
.export-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.stats-section:last-child,
.export-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stats-section h4,
.export-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #4CAF50);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* County, Species, and Combined Stats */
.county-stats,
.species-stats,
.combined-stats {
    background: rgba(76, 175, 80, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.county-stats p,
.species-stats p,
.combined-stats p {
    margin: 0.5rem 0;
}

/* Insights List */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    background: rgba(255, 193, 7, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.insight-item strong {
    color: var(--primary-color);
}

/* No Data Message */
.no-data-message {
    text-align: center;
    background: rgba(76, 175, 80, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px dashed var(--success-color);
}

.no-data-message h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Export Buttons */
.export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.export-btn {
    background: linear-gradient(135deg, var(--accent-color), #f0ad4e);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.export-btn:hover {
    background: linear-gradient(135deg, #f0ad4e, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.export-btn small {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: normal;
}

/* Usage Info */
.usage-info {
    background: rgba(45, 80, 22, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.usage-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.usage-info li {
    margin: 0.25rem 0;
}

/* Data Analytics Section */
.data-analytics {
    background: rgba(218, 165, 32, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin-top: 1rem;
}

.data-analytics h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.analytics-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.data-btn {
    background: linear-gradient(135deg, var(--accent-color), #f0ad4e);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.data-btn:hover {
    background: linear-gradient(135deg, #f0ad4e, var(--accent-color));
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(218, 165, 32, 0.3);
}

/* Mobile Responsiveness for Stats and Export */
@media (max-width: 768px) {
    .stats-modal-content,
    .export-modal-content {
        width: 98%;
        margin: 1rem auto;
    }
    
    .stats-content,
    .export-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .export-buttons {
        grid-template-columns: 1fr;
    }
    
    .analytics-actions {
        flex-direction: column;
    }
    
    .data-btn {
        text-align: center;
    }
}

/* Validation Modal Styles */
.validation-loading-content,
.validation-results-content {
    max-width: 700px;
    max-height: 90vh;
}

.validation-loading {
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.validation-steps {
    margin: 2rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    padding: 0.5rem 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.step.active {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 600;
}

.loading-note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Validation Results */
.validation-content {
    padding: 2rem;
    overflow-y: auto;
}

.validation-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.validation-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.validation-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Validation Stats Grid */
.validation-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.validation-stat {
    background: linear-gradient(135deg, var(--primary-color), #4CAF50);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.validation-stat .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.validation-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Seasonal Comparison */
.seasonal-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.season-name {
    min-width: 80px;
    font-weight: 600;
    color: var(--primary-color);
}

.season-bar-container {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.season-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #4CAF50);
    transition: width 0.3s ease;
}

.season-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Regional Breakdown */
.regional-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.region-item {
    background: rgba(76, 175, 80, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.region-bar {
    margin-top: 0.5rem;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.region-bar-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
}

/* Accuracy Breakdown */
.accuracy-breakdown {
    background: rgba(218, 165, 32, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.accuracy-overall {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.grade-excellent { color: #4CAF50; font-weight: 700; }
.grade-good { color: #8BC34A; font-weight: 700; }
.grade-fair { color: #FFC107; font-weight: 700; }
.grade-poor { color: #F44336; font-weight: 700; }

.accuracy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.accuracy-item:last-child {
    border-bottom: none;
}

.accuracy-item .condition {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 150px;
}

.accuracy-item .accuracy {
    font-weight: 700;
    color: var(--accent-color);
}

.accuracy-item small {
    flex-basis: 100%;
    color: #666;
    font-size: 0.8rem;
}

/* Cross-Validation */
.cross-validation {
    background: rgba(45, 80, 22, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.correlation-high { color: #4CAF50; font-weight: 700; }
.correlation-moderate { color: #FFC107; font-weight: 700; }
.correlation-low { color: #F44336; font-weight: 700; }

/* Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.recommendation-item.priority-high {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #F44336;
}

.recommendation-item.priority-medium {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #FFC107;
}

.recommendation-item.priority-low {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4CAF50;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.priority-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    font-weight: normal;
}

.recommendation-item.priority-high .priority-badge {
    background: #F44336;
    color: white;
}

.recommendation-item.priority-medium .priority-badge {
    background: #FFC107;
    color: #333;
}

.recommendation-item.priority-low .priority-badge {
    background: #4CAF50;
    color: white;
}

.evidence {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-style: italic;
}

/* Mobile Responsiveness for Validation */
@media (max-width: 768px) {
    .validation-loading-content,
    .validation-results-content {
        width: 98%;
        margin: 1rem auto;
    }
    
    .validation-loading,
    .validation-content {
        padding: 1rem;
    }
    
    .validation-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .season-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .season-name,
    .season-percentage {
        text-align: center;
        min-width: auto;
    }
    
    .accuracy-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .accuracy-item .condition,
    .accuracy-item .accuracy {
        min-width: auto;
    }
    
    .rec-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Top Species Rankings Styles */
.top-species {
    margin: 15px 0;
    padding: 15px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.top-species h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.species-rankings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.species-rank-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    cursor: pointer;
}

.species-rank-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.rank-number {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.probability-badge {
    background: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.species-name {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.species-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.condition-indicators {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.indicator {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.indicator.good {
    background: rgba(50, 205, 50, 0.2);
    color: #228B22;
}

.indicator.fair {
    background: rgba(255, 215, 0, 0.3);
    color: #B8860B;
}

.indicator.poor {
    background: rgba(255, 68, 68, 0.2);
    color: #DC143C;
}

.habitat-hint {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-style: italic;
}

.no-data {
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

/* Mobile responsive adjustments for rankings */
@media (max-width: 768px) {
    .species-rank-item {
        padding: 10px;
    }
    
    .rank-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .condition-indicators {
        gap: 4px;
    }
    
    .indicator {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
}

/* No species selected message */
.no-species-message {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.no-species-message p {
    margin: 10px 0;
    color: var(--text-color);
}

.no-species-message p:first-child {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Authentication and Location Protection Styles */
.auth-required {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    border: 2px solid #f1c40f;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.auth-message {
    text-align: center;
    color: #2c3e50;
}

.auth-message p {
    margin: 10px 0;
    font-weight: 500;
}

.auth-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.sustainability-note {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    border-left: 4px solid #27ae60;
}

.sustainability-note p {
    margin: 0;
    font-style: italic;
    color: #2c5530;
}

/* Authentication Modal Styles */
.auth-modal .modal-content {
    max-width: 500px;
    width: 90%;
}

.auth-content {
    text-align: left;
}

.auth-content .form-group {
    margin: 20px 0;
}

.auth-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.auth-content input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-content input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.auth-content .form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.auth-content .submit-btn,
.auth-content .cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-content .submit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.auth-content .submit-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
}

.auth-content .cancel-btn {
    background: #6c757d;
    color: white;
}

.auth-content .cancel-btn:hover {
    background: #5a6268;
}

.auth-content .error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    text-align: center;
}

.auth-info {
    margin-top: 20px;
    text-align: center;
    color: #6c757d;
}

.success-toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(300px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}