/* --- Dashboard Grid (index.php) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1.2fr 1fr;
    /* Top row slightly taller */
    gap: 20px;
    width: 100%;
    height: 100%;
    /* Fill remaining layout height */
    padding-bottom: 5px;
}

/* Cell Placement */
.hero-cell {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.weather-cell {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.service-1 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.service-2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.service-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* --- Hero Component --- */
.premium-hero {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.premium-hero:hover {
    transform: translateY(-5px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 4, 94, 0.9) 0%, rgba(3, 4, 94, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-action {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--accent-cyan);
    transition: gap 0.3s;
}

.premium-hero:hover .hero-action {
    gap: 15px;
    color: white;
}

/* Adjustments for smaller cards in the grid */
.hero-content.small-card h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-badge.small {
    font-size: 0.7rem;
    padding: 4px 10px;
}


/* --- Weather & Status Cell --- */
.status-cell {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.weather-widget-box {
    flex: 1;
    border-radius: 24px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.25);
}

.weather-widget-box.creative-weather {
    position: relative;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.weather-widget-box.creative-weather:hover {
    transform: translateY(-3px);
}

/* Background Icon Effect */
.weather-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(10deg);
    pointer-events: none;
}

/* Header: Location & Condition */
.w-header-creative {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.w-location-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.w-condition-pill {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: capitalize;
}

/* Main: Temp & Icon */
.w-main-creative {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.w-temp-big {
    line-height: 0.8;
    position: relative;
    display: flex;
    align-items: flex-start;
}

#hero-temp {
    font-size: 4.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Temp Switch */
.temp-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-top: 15px;
    margin-left: 10px;
}

.temp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 800;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

input:checked+.slider {
    background-color: rgba(255, 255, 255, 0.5);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.label-c,
.label-f {
    z-index: 1;
    opacity: 0.9;
}

.label-c {
    position: absolute;
    right: 7px;
    color: white;
    opacity: 1;
}

.label-f {
    position: absolute;
    left: 7px;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

input:checked+.slider .label-c {
    opacity: 0;
}

input:checked+.slider .label-f {
    opacity: 1;
}

.w-icon-small i {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Dynamic weather classes... */
.weather-widget-box.creative-weather.weather-cloudy {
    background: linear-gradient(135deg, #536976 0%, #292E49 100%);
}

.weather-widget-box.creative-weather.weather-rainy {
    background: linear-gradient(135deg, #16222A 0%, #3A6073 100%);
}

.weather-widget-box.creative-weather.weather-storm {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

#hero-condition {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.w-header-simple,
.w-main-simple {
    display: none;
}

/* --- Currency & Fountain Status Cards --- */
.currency-fountain-row {
    height: 120px;
    display: flex;
    gap: 15px;
}

.mini-stat-card {
    flex: 1;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    padding: 15px;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
    box-shadow: 0 10px 25px rgba(3, 4, 94, 0.3);
}

.mini-stat-card:hover {
    transform: translateY(-3px);
}

.icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.mini-stat-card i {
    font-size: 1.1rem;
    color: white;
}

.mini-stat-value {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mini-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        height: auto;
    }

    .premium-hero {
        height: 350px;
    }

    .weather-cell,
    .service-card {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* iPad 11-inch Landscape (1194x834) Kiosk Optimization */
@media screen and (min-width: 1025px) and (max-height: 850px) {
    .dashboard-grid {
        grid-template-rows: minmax(350px, 1.2fr) minmax(200px, 1fr);
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .mini-stat-card {
        padding: 8px;
        /* Tighter padding */
    }

    .icon-circle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        margin-bottom: 4px;
        /* Less margin */
    }

    .icon-circle i {
        font-size: 0.9rem;
    }

    .mini-stat-value {
        font-size: 1.2rem;
        /* Reduce large text */
        margin-bottom: 0px;
    }

    .mini-stat-label {
        font-size: 0.65rem;
    }

    .currency-fountain-row {
        height: auto;
        /* Let it breathe */
        min-height: 110px;
    }
}