/* ========================================
   MASTER DASHBOARD STYLES
   Imports all component-specific CSS files
   ======================================== */

/* Component CSS Files */
@import url('../new-dashboard/location-cards.css');
@import url('../new-dashboard/weather-forecast.css');
@import url('../new-dashboard/realtime-cards-districts.css');
@import url('../new-dashboard/realtime-aqi-updates.css');
@import url('../new-dashboard/realtime-aqi-map.css');
@import url('../new-dashboard/marker-popup.css');
@import url('../new-dashboard/realtime-aqi-updates-table.css');
@import url('../new-dashboard/historical-aqi-data.css');
@import url('../new-dashboard/major-pollutants.css');
@import url('../new-dashboard/weather-card-integration.css');
@import url('../new-dashboard/punjab-contour-map.css');
@import url('../new-dashboard/map-info-window.css');
@import url('./aqi-calendar.css');
@import url('./station-rankings-table.css');

/* Global Dashboard Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.toast {
    background: #fff;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    color: #e74c3c;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.toast-message {
    color: #7f8c8d;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #bdc3c7;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #7f8c8d;
}

/* Weather Component - Always Black Background */
.overcast-component {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.1);
}

.weather-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4ba9ff;
    border-radius: 20px;
    z-index: 0;
}

.weather-title-section {
    position: absolute;
    top: 39px;
    left: 38px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.weather-title {
    font-family: 'Roboto', sans-serif;
    font-size: 22.5px;
    font-weight: normal;
    color: #ffffff;
    margin: 0;
    line-height: 23.49px;
}

.temperature-display {
    width: 78.796px;
    height: 30.29px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.temperature-value {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1;
}

.weather-details-grid {
    position: absolute;
    bottom: 20px;
    left: 38px;
    width: 367.34px;
    height: 43.5px;
    z-index: 10;
}

.dashboard-weather-detail-item {
    position: absolute;
    top: 1px;
    height: 42.1px;
}

.humidity-item {
    left: 0px;
    width: 86.95px;
}

.wind-item {
    left: 130px;
    width: 107.66px;
}

.uv-item {
    left: 280px;
    width: 87.34px;
}

.detail-icon {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-text {
    position: absolute;
    top: 0px;
    left: 28.69px;
}

.detail-label {
    position: absolute;
    top: 2.89px;
    left: 0px;
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: normal;
    line-height: 12px;
    display: flex;
    align-items: center;
}

.detail-value {
    position: absolute;
    top: 22.9px;
    left: 0px;
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 14px;
    display: flex;
    align-items: center;
}

.icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.background-layer-1,
.background-layer-2 {
    position: absolute;
    right: 38px;
    z-index: 1;
    pointer-events: none;
}

.background-layer-1 {
    top: 2px;
    width: 202px;
    height: 61px;
}

.background-layer-2 {
    top: 47px;
    width: 131px;
    height: 40px;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.bg-image-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-sun-icon {
    position: absolute;
    top: 26px;
    right: 38px;
    width: 125px;
    height: 125px;
    z-index: 3;
    pointer-events: none;
}

.main-sun-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dashboard Section Styles */
.dashboard-section {
    scroll-margin-top: 120px;
    margin-bottom: 20px;
}

/* Section Heading Styles */
.section-heading-container {
    /* max-width: 1512px; */
    margin: 0 auto;
    /* padding: 0 110px; */
    margin-bottom: 35px;
}

.section-heading {
    font-size: 30px;
    font-weight: 400;
    color: #31343d;
    line-height: 1.13;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.section-subheading {
    font-size: 12px;
    font-weight: 400;
    color: #1882ff;
    margin: 0;
    margin-top: 3px;
    line-height: 1.3;
    opacity: 0.9;
    font-family: 'Arial', sans-serif;
}

/* Responsive Section Headings */
@media (max-width: 1200px) {
    /* .section-heading-container {
        padding: 0 20px;
    } */
    
    .section-heading {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .section-heading-container {
        /* padding: 0 20px; */
        margin-bottom: 20px;
    }
    
    .section-heading {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    /* .section-heading-container {
        padding: 0 16px;
    } */
    
    .section-heading {
        font-size: 20px;
    }
}

.dashboard-section:target {
    animation: highlightSection 2s ease-in-out;
}

@keyframes highlightSection {
    0% {
        background-color: rgba(24, 130, 255, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

