/* styles made by AI */

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

:root {
    /* 4CAST Futuristic Color System - Spectrum Gradient Theme */
    --primary-color: #8B5CF6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary-color: #EC4899;
    --accent-color: #06B6D4;
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #06B6D4 100%);
    --gradient-secondary: linear-gradient(90deg, #8B5CF6, #EC4899, #F59E0B, #06B6D4);
    --bg-dark: #000000;
    --bg-space: #0a0a0f;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --border-color: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(20, 20, 30, 0.7);
    --card-border: rgba(139, 92, 246, 0.2);
    
    /* Status Colors */
    --success-color: #10B981;
    --warning-color: #FFB800;
    --error-color: #FF3366;
    --info-color: #8B5CF6;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

[data-theme="dark"] {
    /* Professional Dark Theme */
    --primary-color: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --secondary-color: #8B5CF6;
    --accent-color: #8B5CF6;
    --accent-light: #A78BFA;
    
    /* Dark Status Colors */
    --success-color: #34d399;
    --success-light: #064e3b;
    --warning-color: #fbbf24;
    --warning-light: #451a03;
    --error-color: #f87171;
    --error-light: #450a0a;
    --info-color: #22d3ee;
    --info-light: #083344;
    
    /* Dark Background System */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    
    /* Dark Typography */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #aaaaaa;
    --text-muted: #888888;
    --text-inverse: #000000;
    
    /* Dark Card System */
    --card-bg: #1e293b;
    --card-bg-hover: #334155;
    --card-border: #334155;
    --card-border-hover: #475569;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --card-shadow-focus: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.4);
    
    /* Dark Input System */
    --input-bg: #334155;
    --input-bg-focus: #475569;
    --input-border: #475569;
    --input-border-hover: #64748b;
    --input-border-focus: var(--primary-color);
    --input-text: var(--text-primary);
    --input-placeholder: var(--text-muted);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    transition: all var(--transition-normal);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* Clean, Professional Header */
.header {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl) var(--space-2xl);
    margin-bottom: var(--space-3xl);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    position: relative;
    animation: slideDown 0.4s var(--ease-out-cubic);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.logo:hover i {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.tagline {
    text-align: right;
}

.tagline p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.tagline small {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Clean Theme Toggle */
.theme-toggle {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.theme-toggle:hover i {
    color: var(--primary-color);
}

/* Clean Section Cards */
.section {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.4s var(--ease-out-cubic) backwards;
}

.section:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }
.section:nth-child(6) { animation-delay: 0.3s; }
.section:nth-child(7) { animation-delay: 0.35s; }
.section:nth-child(8) { animation-delay: 0.4s; }

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    letter-spacing: -0.01em;
}

.section h2 i {
    color: var(--primary-color);
    font-size: 1.2em;
    transition: transform var(--transition-normal);
}

.section:hover h2 i {
    transform: scale(1.1);
}

/* Clean Button System */
.btn {
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.5;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--card-shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--card-shadow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--card-border-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-1px);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    width: 100%;
    min-height: 56px;
}

/* Clean Form Controls */
.location-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.location-input-group {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
}

.location-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 400;
    background: var(--input-bg);
    color: var(--input-text);
    transition: all var(--transition-normal);
}

.location-input::placeholder {
    color: var(--input-placeholder);
}

.location-input:hover {
    border-color: var(--input-border-hover);
}

.location-input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control {
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 400;
    background: var(--input-bg);
    color: var(--input-text);
    transition: all var(--transition-normal);
    width: 100%;
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

.form-control:hover {
    border-color: var(--input-border-hover);
}

.form-control:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Location Options */
.location-options {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.coordinates-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.coord-inputs {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.coord-inputs input {
    flex: 1;
    padding: var(--space-md);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--input-text);
}

.selected-location {
    background: var(--success-light);
    color: var(--success-color);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border: 1px solid var(--success-color);
    font-weight: 500;
}

/* Date & Time Controls */
.datetime-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.date-input, .time-input {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.date-input label, .time-input label {
    font-weight: 500;
    color: #cccccc;
    font-size: 0.9rem;
}

/* Activity Grid - Clean Design */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1200px) {
    .activity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.activity-item:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.activity-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--card-shadow-focus);
}

.activity-item i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.activity-item.active i {
    color: var(--text-inverse);
}

.activity-item span {
    font-weight: 500;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

.activity-item.active span {
    color: var(--text-inverse);
}

.activity-extra {
    display: none;
}

.activity-grid.expanded .activity-extra {
    display: flex;
}

.activity-toggle-btn {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    width: 100%;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.activity-toggle-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), 0 0 30px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}

.activity-toggle-btn i {
    transition: transform var(--transition-normal);
}

.activity-toggle-btn.active i {
    transform: rotate(180deg);
}

/* Duration Slider */
.duration-slider {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.duration-slider label {
    font-weight: 500;
    color: #cccccc;
    font-size: 0.9rem;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--card-shadow-hover);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--card-shadow);
}

.duration-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888888;
}

/* Weather Boundaries */
.boundary-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.boundary-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.boundary-option:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.boundary-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--card-shadow-focus);
}

.boundary-option i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.boundary-option.active i {
    color: var(--text-inverse);
}

.boundary-option span {
    font-weight: 600;
    color: #ffffff;
}

.boundary-option.active span {
    color: var(--text-inverse);
}

.boundary-option small {
    color: #cccccc;
    font-size: 0.8rem;
}

.boundary-option.active small {
    color: rgba(255, 255, 255, 0.8);
}

/* Section Descriptions */
.section-description {
    margin-bottom: var(--space-lg);
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Advanced Panels */
.advanced-panel {
    margin-top: var(--space-lg);
    padding: var(--space-2xl);
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.advanced-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.advanced-item label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tolerance-value {
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.mini-slider {
    height: 6px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(139, 92, 246, 0.4));
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.mini-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all var(--transition-normal);
}

.mini-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6), 0 0 20px rgba(236, 72, 153, 0.4);
}

.mini-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all var(--transition-normal);
}

.mini-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6), 0 0 20px rgba(236, 72, 153, 0.4);
}

.advanced-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
}

.option-group h4 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    cursor: pointer;
    font-size: 0.9rem;
    color: #cccccc;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.altitude-input {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.altitude-input input {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--input-text);
}

/* Results Section */
.results-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.result-card {
    background: var(--card-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.verdict {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
}

.verdict.good {
    background: var(--success-light);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.verdict.caution {
    background: var(--warning-light);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.verdict.poor {
    background: var(--error-light);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.verdict h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.verdict i {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

/* Weather Details */
.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.weather-item {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--card-border);
}

.weather-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.weather-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.weather-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recommendations */
.recommendations {
    background: var(--info-light);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--info-color);
}

.recommendations h4 {
    color: var(--info-color);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.recommendations ul {
    list-style: none;
    padding-left: 0;
}

.recommendations li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
}

.recommendations li:before {
    content: "✓";
    color: var(--info-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.modal-content {
    background: var(--card-bg);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--card-shadow-focus);
    border: 1px solid var(--card-border);
    max-width: 400px;
    width: 100%;
}

.modal-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: var(--space-lg);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-lg);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }
    
    .header {
        padding: var(--space-xl);
        margin-bottom: var(--space-xl);
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .tagline {
        text-align: center;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--space-xl);
        margin-bottom: var(--space-lg);
    }
    
    .theme-toggle {
        top: var(--space-md);
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }
    
    .location-input-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .location-options {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .datetime-controls {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .boundary-options {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .advanced-options-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .weather-details {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .coord-inputs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-sm);
    }
    
    .header {
        padding: var(--space-lg);
        border-radius: var(--radius-xl);
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .section {
        padding: var(--space-lg);
        border-radius: var(--radius-xl);
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        padding: var(--space-lg);
    }
    
    .modal-content {
        margin: var(--space-md);
        padding: var(--space-xl);
    }
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--text-inverse);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-inverse);
}

/* Additional Utility Styles */
.sensitivity-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: var(--space-sm);
}

.tolerance-value {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: var(--space-xs);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Section Description */
.section-description {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sensitivity Badge */
.sensitivity-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Tolerance Value */
.tolerance-value {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 6px;
}

/* AI Insight Card */
.ai-insight-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%, 
        rgba(79, 70, 229, 0.95) 50%,
        rgba(59, 130, 246, 0.95) 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: aiCardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes aiCardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ai-insight-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 30px 80px rgba(139, 92, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.ai-insight-card h4 {
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.35rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ai-insight-card h4 i {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.8));
    }
}

.ai-insight-content {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2) inset,
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.ai-insight-content p {
    margin: 0;
    line-height: 1.8;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ai-insight-card small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-insight-card small i {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dark theme adjustments */
[data-theme="dark"] .ai-insight-card {
    background: linear-gradient(135deg, 
        rgba(109, 40, 217, 0.95) 0%, 
        rgba(67, 56, 202, 0.95) 50%,
        rgba(49, 46, 129, 0.95) 100%);
    box-shadow: 
        0 20px 60px rgba(109, 40, 217, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Alternative Dates Styles */
.alternative-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.alternative-date-item {
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.alternative-date-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.alt-date-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.alt-date-header strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.alt-risk-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.alt-risk-badge.good {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.alt-risk-badge.moderate {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.alt-risk-badge.caution {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alt-weather-info {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.alt-weather-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.alt-weather-info i {
    color: var(--primary-color);
}

.btn-analyze-date:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .alternative-date-item {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .alternative-date-item:hover {
    background: rgba(139, 92, 246, 0.15);
}

/* Activity Section */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    position: relative;
}

/* Desktop - 8 columns to fit 1 row */
@media (min-width: 1200px) {
    .activity-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Medium Desktop - 4 columns (2 rows) */
@media (min-width: 769px) and (max-width: 1199px) {
    .activity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.activity-extra {
    grid-column: span 1;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border-width: 0 !important;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-width 0.3s ease;
}

.activity-grid.expanded .activity-extra {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    padding: 20px !important;
    margin: 0 !important;
    border-width: 2px !important;
}

.activity-toggle-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
}

.activity-toggle-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.activity-toggle-btn i {
    transition: transform 0.3s ease;
}

.activity-toggle-btn.active i {
    transform: rotate(180deg);
}

.activity-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.activity-item:hover::before {
    width: 300px;
    height: 300px;
}

.activity-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-sm);
}

.activity-item.active {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.activity-item i {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.activity-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.activity-item span {
    font-weight: 500;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

/* Duration Section */
.duration-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--input-border);
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.slider:hover {
    height: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.duration-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Weather Boundaries */
.boundary-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.boundary-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
}

.boundary-option:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.boundary-option.active {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.boundary-option i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.boundary-option:hover i {
    transform: scale(1.2);
}

.boundary-option span {
    font-weight: 500;
    color: var(--text-primary);
}

.boundary-option.active span {
    color: var(--primary-color);
}

.boundary-option small {
    color: #cccccc;
    font-size: 0.8rem;
}

/* Sensitivity Section */
.sensitivity-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sensitivity-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sensitivity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888888;
}

/* Advanced Panels */
.advanced-panel {
    margin-top: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.advanced-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-slider {
    height: 6px;
}

.advanced-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.option-group h4 {
    margin-bottom: 15px;
    color: #8B5CF6;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.altitude-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.altitude-input input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    animation: slideInUp 0.4s ease-out backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }

.verdict {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.verdict.good {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.verdict.caution {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 2px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.verdict.poor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.verdict h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.verdict i {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: iconPop 0.6s ease-out 0.3s backwards;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.weather-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out backwards;
}

.weather-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
}

.weather-item:nth-child(1) { animation-delay: 0.2s; }
.weather-item:nth-child(2) { animation-delay: 0.3s; }
.weather-item:nth-child(3) { animation-delay: 0.4s; }
.weather-item:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.weather-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.weather-item:hover i {
    transform: scale(1.2);
}

.weather-item strong {
    color: var(--text-primary);
}

.weather-item p {
    color: var(--text-secondary);
}

.recommendations {
    background: rgba(102, 126, 234, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.recommendations h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.recommendations ul {
    list-style: none;
    padding-left: 0;
}

.recommendations li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    animation: slideInLeft 0.3s ease-out backwards;
}

.recommendations li:nth-child(1) { animation-delay: 0.1s; }
.recommendations li:nth-child(2) { animation-delay: 0.2s; }
.recommendations li:nth-child(3) { animation-delay: 0.3s; }
.recommendations li:nth-child(4) { animation-delay: 0.4s; }
.recommendations li:nth-child(5) { animation-delay: 0.5s; }

.recommendations li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, 
        var(--input-border) 25%, 
        rgba(102, 126, 234, 0.1) 50%, 
        var(--input-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 15px;
}

.skeleton-card {
    height: 150px;
    margin-bottom: 20px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: var(--space-md);
    }
    
    .header {
        padding: var(--space-xl);
    }
    
    .logo h1 {
        font-size: 3rem;
    }
    
    .activity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
    }
    
    .header {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .tagline {
        text-align: center;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    .section {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        top: var(--space-md);
        right: var(--space-md);
        width: 50px;
        height: 50px;
    }
    
    .theme-toggle i {
        font-size: 1.4rem;
    }
    
    .location-input-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .location-options {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .datetime-controls {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .boundary-options {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .advanced-options-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .weather-details {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .alternative-dates-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        min-height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-xs);
    }
    
    .header {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .tagline p {
        font-size: 1.1rem;
    }
    
    .tagline small {
        font-size: 0.9rem;
    }
    
    .section {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        padding: var(--space-lg);
    }
    
    .activity-item i {
        font-size: 1.8rem;
    }
    
    .coord-inputs {
        flex-direction: column;
    }
    
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: var(--space-md);
        padding: var(--space-xl);
        border-radius: var(--radius-lg);
    }
}

/* Enhanced Form Controls */
.form-control {
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--input-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    background: var(--input-bg);
    -webkit-backdrop-filter: var(--card-backdrop);
    backdrop-filter: var(--card-backdrop);
    color: var(--input-text);
    transition: all var(--transition-normal);
}

.form-control::placeholder {
    color: var(--input-placeholder);
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: var(--input-border-focus);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--card-border-hover);
    background: var(--input-bg-focus);
}

/* Enhanced Sliders */
.slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--input-border);
    outline: none;
    -webkit-appearance: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.slider:hover {
    height: 10px;
    background: var(--card-border-hover);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(99, 102, 241, 0.1);
    transition: all var(--transition-normal);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(99, 102, 241, 0.1);
    transition: all var(--transition-normal);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Enhanced Loading States */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--input-border);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto var(--space-lg);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.modal-content {
    background: var(--card-bg);
    -webkit-backdrop-filter: var(--card-backdrop);
    backdrop-filter: var(--card-backdrop);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--card-border);
    animation: modalSlideIn 0.4s var(--bounce);
    max-width: 500px;
    width: 100%;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content p {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: var(--space-lg);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --card-bg: rgba(255, 255, 255, 0.95);
        --card-border: rgba(0, 0, 0, 0.3);
        --input-border: rgba(0, 0, 0, 0.5);
    }
    
    [data-theme="dark"] {
        --card-bg: rgba(0, 0, 0, 0.9);
        --card-border: rgba(255, 255, 255, 0.3);
        --input-border: rgba(255, 255, 255, 0.5);
    }
}

/* Notification Styles */
@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%);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--input-border);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print Styles */
@media print {
    .theme-toggle,
    .header,
    .location-section,
    .datetime-section,
    .activity-section,
    .duration-section,
    .boundaries-section,
    .sensitivity-section,
    .advanced-section,
    .analysis-section {
        display: none !important;
    }
    
    .results-section {
        page-break-inside: avoid;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tagline {
        text-align: center;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .datetime-controls {
        grid-template-columns: 1fr;
    }
    
    .location-options {
        flex-direction: column;
    }
    
    .coord-inputs {
        flex-direction: column;
    }
    
    .boundary-options {
        grid-template-columns: 1fr;
    }
    
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .advanced-options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-toggle-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .section h2 {
        font-size: 1.2rem;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
}

/* Tablet specific */
@media (min-width: 481px) and (max-width: 768px) {
    .activity-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .activity-toggle-btn {
        font-size: 0.95rem;
    }
    
    .boundary-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== 4CAST HERO SECTION STYLES ========== */

/* Update body for 4CAST dark theme */
body {
    background: #000000;
    font-family: 'Orbitron', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Navigation Bar */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 3rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo-image {
    height: 50px;
    width: 143px;
    object-fit: cover;
    object-position: center;
    transition: all var(--transition-normal);
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B5CF6;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-search-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Starry Background */
.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent),
        radial-gradient(1px 1px at 150px 150px, white, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    animation: stars-move 60s linear infinite;
}

.stars-background::after {
    background-image: 
        radial-gradient(1px 1px at 40px 60px, white, transparent),
        radial-gradient(1px 1px at 110px 120px, white, transparent),
        radial-gradient(2px 2px at 80px 40px, white, transparent);
    animation: stars-move 90s linear infinite reverse;
    opacity: 0.5;
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Globe */
.globe-container {
    width: 400px;
    height: 400px;
    position: relative;
    perspective: 1000px;
}

.globe-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.4)) 
            drop-shadow(0 0 30px rgba(236, 72, 153, 0.3))
            drop-shadow(0 0 60px rgba(6, 182, 212, 0.2));
}

/* Hero Right */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #8B5CF6 40%, #EC4899 70%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

.hero-btn:hover {
    transform: translateY(-2px);
    border-color: #8B5CF6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
}

.hero-btn-primary {
    background: var(--gradient-primary);
    border: 2px solid transparent;
    color: #ffffff;
    position: relative;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.hero-btn-primary:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 50px rgba(236, 72, 153, 0.4);
    transform: translateY(-3px);
}

.hero-footer {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #cccccc;
    font-weight: 600;
}

/* Form Section */
.form-section {
    min-height: 100vh;
    position: relative;
    padding-top: 100px;
}

.form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.form-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-right {
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.btn-next {
    padding: 1.5rem 2.5rem;
    background: transparent;
    border: 2px solid #8B5CF6;
    color: #8B5CF6;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.btn-next:hover {
    background: #8B5CF6;
    color: #000000;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transform: translateX(5px);
}

/* Responsive for Hero Section */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-right {
        align-items: center;
    }
    
    .globe-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .form-right {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .globe-container {
        width: 250px;
        height: 250px;
    }
}
