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

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 75%, #ced4da 100%);
    color: #212529;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #5d6d7e 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(44,62,80,0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,215,0,0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

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

.header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFE4B5 50%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.header-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #FFD700;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.nav-tabs {
    display: flex;
    background: linear-gradient(135deg, #34495e 0%, #5d6d7e 100%);
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 3px solid #f39c12;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 4px 20px rgba(52,73,94,0.2);
    position: relative;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    color: #fff;
    border: none;
    padding: 1.2rem 1.8rem;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn:hover::before {
    opacity: 0.1;
}

.tab-btn:hover {
    color: #f39c12;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    border-bottom-color: #f39c12;
    font-weight: 700;
}

.tab-content {
    display: none;
    flex: 1;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 0;
    width: 100%;
    min-height: calc(100vh - 200px);
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Map styles */
.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 1;
}

.control-group label {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.control-group input, .control-group select {
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 0;
    flex: 1;
    background: #fff;
    transition: all 0.3s ease;
}

.control-group input:focus, .control-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.control-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFE4B5 100%);
    color: #8B4513;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.map-container {
    height: clamp(350px, 55vh, 650px);
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.map-legend {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.map-legend h3 {
    color: #1e293b;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.legend-color.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.legend-color.medium {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.legend-color.low {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.legend-marker {
    font-size: 1.1rem;
}

/* Regions grid */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.region-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.region-card h3 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.region-card p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #495057;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.region-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
}

.stat .value {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: #e67e22;
    display: block;
}

.stat .label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Equipment categories */
.equipment-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.equipment-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.equipment-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.equipment-category h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.equipment-category ul {
    list-style: none;
}

.equipment-category li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.3s ease;
}

.equipment-category li:hover {
    color: #1e293b;
}

.equipment-category li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    color: #ffd700;
}

/* Regulations content */
.regulations-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.regulation-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.regulation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700, #fbbf24);
}

.regulation-section h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.regulation-section p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #475569;
}

.regulation-section ul {
    list-style-type: none;
    padding-left: 0;
}

.regulation-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.regulation-section li:before {
    content: "•";
    color: #ffd700;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Weather dashboard */
.weather-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.weather-widget, .weather-tips {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.weather-widget::before, .weather-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700, #fbbf24);
}

.weather-widget h3, .weather-tips h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.weather-tips ul {
    list-style-type: none;
}

.weather-tips li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
}


.weather-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffd700;
}

/* Weather Card Styles */
#weather-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.weather-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.weather-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.weather-card-header {
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.weather-location {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.weather-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.weather-main-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.weather-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.weather-icon {
    font-size: 4rem;
    width: auto;
    height: auto;
    display: inline-block;
    line-height: 1;
    margin: 0.5rem 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    /* Force emoji rendering with specific settings */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "Android Emoji", "EmojiSymbols", sans-serif;
    font-variant-emoji: emoji;
    text-rendering: optimizeQuality;
    -webkit-font-feature-settings: "liga", "kern";
    font-feature-settings: "liga", "kern";
    /* Ensure emoji shows as color, not black/white */
    color: inherit;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.temp-unit {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
    margin-left: 0.2rem;
    color: #64748b;
}

.weather-description {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    text-transform: capitalize;
    margin-top: 0.5rem;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Forecast Styles */
.weather-forecast-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.forecast-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    justify-content: center;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
}

.forecast-day-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.forecast-icon {
    font-size: 2.5rem;
    width: auto;
    height: auto;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    /* Force emoji rendering with specific settings */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "Android Emoji", "EmojiSymbols", sans-serif;
    font-variant-emoji: emoji;
    text-rendering: optimizeQuality;
    -webkit-font-feature-settings: "liga", "kern";
    font-feature-settings: "liga", "kern";
    color: inherit;
}

.forecast-temp {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.weather-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    background-color: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 2.5rem;
    font-size: 1.2rem;
    color: #1e293b;
    animation: pulse 1.5s ease-in-out infinite alternate;
    font-weight: 600;
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Error message styles */
.error-message {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #92400e;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-message p {
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.error-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: left;
}

.error-details ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.error-details li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.error-details code {
    background: #fbbf24;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.retry-btn {
    background: linear-gradient(135deg, #ffd700, #fbbf24);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* View on Map Button - Gold Mining Theme */
.view-on-map-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
    color: #fff;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-on-map-btn::before {
    content: '🗺️';
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.view-on-map-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.view-on-map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.4);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 50%, #c0392b 100%);
}

.view-on-map-btn:hover::after {
    left: 100%;
}

.view-on-map-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Generic Action Button Styling */
.action-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
}

.action-btn:active {
    transform: translateY(0);
}

/* Data type badges */
.data-type-badge {
    background: #6b7280;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-type-badge.live {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.6); }
}

/* Weather condition styling */
.fire-danger.low { color: #10b981; }
.fire-danger.moderate { color: #f59e0b; }
.fire-danger.high { color: #ef4444; }
.fire-danger.extreme { 
    color: #dc2626; 
    font-weight: 700;
    text-transform: uppercase;
}

.data-source {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Getting Started Styles */
.getting-started-intro {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.getting-started-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.intro-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #FFD700, #FFE4B5);
}

.step-number {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #495057;
}

.step-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.2rem;
}

.step-content li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
    color: #495057;
}

.step-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e67e22;
    font-size: 1.1rem;
}

.tip {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #16a34a;
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1.2rem;
    color: #166534;
    font-size: 0.95rem;
    font-weight: 500;
}

.warning {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border: 1px solid #ea580c;
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1.2rem;
    color: #9a3412;
    font-size: 0.95rem;
    font-weight: 500;
}

.equipment-starter h4, .technique h4, .safety-checklist h4, .recommended-areas h4, .first-trip-tips h4 {
    color: #1e293b;
    margin: 1.2rem 0 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.technique {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.technique h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.technique ul {
    font-size: 0.95rem;
}

.quick-start-checklist {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.quick-start-checklist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700, #fbbf24);
}

.quick-start-checklist h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.checklist-column h4 {
    color: #1e293b;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.checklist-column label {
    display: block;
    margin-bottom: 0.8rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.checklist-column label:hover {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.checklist-column input[type="checkbox"] {
    margin-right: 0.8rem;
    transform: scale(1.2);
    accent-color: #ffd700;
}

.helpful-resources {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.helpful-resources::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700, #fbbf24);
}

.helpful-resources h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.resource-card h4 {
    color: #1e293b;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.resource-card ul {
    list-style-type: none;
    padding-left: 0;
}

.resource-card li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.resource-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-size: 1.1rem;
}

/* Resource links styling */
.resource-card a {
    color: #1e40af;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.resource-card a:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.resource-card a:visited {
    color: #7c3aed;
}

.resource-card a:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Data Sources Button */
.floating-data-sources {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100;
}

.data-sources-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.4);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.data-sources-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #fbbf24, #ffd700);
}

.data-sources-btn:active {
    transform: scale(0.95);
}

/* Data Sources Modal styles updated for new theme */
.data-sources-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: none;
    animation: fadeIn 0.3s ease;
}

.data-sources-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-sources-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    border: 1px solid #e2e8f0;
}

.data-sources-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.data-sources-close:hover {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #1e293b;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .tab-content {
        padding: 1rem;
    }

    .header {
        padding: 1.5rem;
    }

    .nav-tabs {
        padding: 0;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Add subtle scroll indicators */
        background: linear-gradient(135deg, #34495e 0%, #5d6d7e 100%),
                    linear-gradient(90deg, rgba(0,0,0,0.2) 0%, transparent 20%),
                    linear-gradient(90deg, transparent 80%, rgba(0,0,0,0.2) 100%);
        background-size: 100% 100%, 20px 100%, 20px 100%;
        background-position: 0 0, 0 0, 100% 0;
        background-repeat: no-repeat;
    }

    .tab-btn {
        padding: 1.2rem 1.8rem;
        font-size: 0.9rem;
        min-width: auto;
        flex-shrink: 0;
        /* Increase touch target size */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .map-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 1.5rem;
    }

    .step-number {
        align-self: center;
        margin-bottom: 0.8rem;
    }

    .floating-data-sources {
        top: 20px;
        right: 20px;
        position: absolute;
    }
    
    .data-sources-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .data-sources-modal {
        padding: 2rem;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }

    .regions-grid, .equipment-categories, .regulations-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .weather-dashboard, .weather-regions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-container {
        height: 350px;
    }

    .resources-grid, .checklist-grid, .technique-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tab-content {
        padding: 0.8rem;
    }

    .step-card, .region-card, .equipment-category, .regulation-section {
        padding: 1.2rem;
    }

    .quick-start-checklist, .helpful-resources {
        padding: 1.5rem;
    }

    .getting-started-intro {
        padding: 1.5rem;
    }

    .region-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        text-align: center;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Enhanced scroll indicators for smaller screens */
        background: linear-gradient(135deg, #34495e 0%, #5d6d7e 100%),
                    linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 15%),
                    linear-gradient(90deg, transparent 85%, rgba(0,0,0,0.3) 100%);
        background-size: 100% 100%, 15px 100%, 15px 100%;
        background-position: 0 0, 0 0, 100% 0;
        background-repeat: no-repeat;
    }

    .tab-btn {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
        /* Better touch targets for small screens */
        min-height: 48px;
        min-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Popup styles */
.popup-content {
    max-width: 350px;
}

.popup-content h4 {
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.popup-content p {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #475569;
}

.popup-content .gold-rating {
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for better accessibility */
.tab-btn:focus,
.control-btn:focus,
.data-sources-btn:focus,
input:focus,
select:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Better contrast for accessibility */
.stat .label {
    color: #64748b;
}

/* Global text overflow fixes */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

p, li, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.equipment-category li,
.weather-tips li {
    color: #475569;
}

/* Ensure text is readable */
.tab-content {
    color: #1e293b;
}

/* Data Sources Tab Styles for new theme */
.data-sources-intro {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.data-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.data-source-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.data-source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700, #fbbf24);
}

.data-source-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.data-source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f1f5f9;
}

.data-source-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.live {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.enhanced {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.planned {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.data-source-content p {
    margin: 0.8rem 0;
    line-height: 1.6;
    color: #475569;
}

.data-source-content ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.data-source-content li {
    margin: 0.5rem 0;
    color: #475569;
    line-height: 1.5;
}

.api-note {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1.2rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #1e40af;
}

.data-integration-info {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.data-integration-info h3 {
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.integration-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.api-setup-guide {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.api-setup-guide h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.setup-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.setup-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.setup-step h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.setup-step p {
    line-height: 1.6;
    color: #475569;
}

.setup-step code {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    color: #1e293b;
    font-weight: 600;
}

.setup-step a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.setup-step a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Mobile responsiveness for data sources */
@media (max-width: 768px) {
    .data-sources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .integration-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .setup-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .data-source-card {
        padding: 1.5rem;
    }

    .data-integration-info {
        padding: 2rem;
    }
}
