﻿/* =============================================================================
   IFFCO PHULPUR WEB PORTAL — portal.css
   Single consolidated stylesheet (portal + app-grid merged)
   ============================================================================= */


/* ═══════════════════════════════════════════════════════════════════════════
   1. CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Fonts */
    --font-display: 'Rajdhani', 'Segoe UI', 'Trebuchet MS', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    /* Colours */
    --color-accent: #00ff7e;
    --color-cyan: #00ffff;
    --color-text: #ffffff;
    --color-text-muted: #aabbcc;
    --color-glass-bg: rgba(255, 255, 255, 0.13);
    --color-glass-border: rgba(255, 255, 255, 0.22);
    /* Category accent colours */
    --color-plant: #1abc9c;
    --color-management: #3498db;
    --color-business: #9b59b6;
    --color-employee: #e67e22;
    --color-popular: #f1c40f;
    /* Spacing & shape */
    --radius-card: 14px;
    --radius-sm: 8px;
    --gap-card: 18px;
    --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.30);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.40);
    /* Motion */
    --transition: 0.25s ease;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/*body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url(https://www.transparenttextures.com/patterns/clouds.png), linear-gradient(135deg, #0a2a4a 0%, #0d3b6e 20%, #260721 45%, #000000 70%, #0a5c6e 100%);
    background-attachment: fixed;
}
*/



body {
    font-family: var(--font-body);
    color: var(--color-text);
    margin: 0;
    min-height: 100vh;
    display: flex; /* IMPORTANT */
    flex-direction: column; /* IMPORTANT */

    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(rgba(10, 25, 15, 0.45), rgba(0, 0, 0, 0.65)), url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient( circle at top left, rgba(255, 255, 200, 0.18), transparent 60% );
        pointer-events: none;
        z-index: -1;
    }
/*@keyframes moveClouds {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 0;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/clouds.png");
    opacity: 0.2;
    animation: moveClouds 60s linear infinite;
    pointer-events: none;
}*/


/* ═══════════════════════════════════════════════════════════════════════════
   3. GLASS CARD  (base component)
   ═══════════════════════════════════════════════════════════════════════════ */

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-card);
    backdrop-filter: blur(5px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    padding: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

    .glass-card:not(.emergency-card):not(.bus-card):not(.weather-card):hover {
        background: rgba(255, 255, 255, 0.13);
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transition: all var(--transition);
    }


/* ═══════════════════════════════════════════════════════════════════════════
   4. LAYOUT  (header / body / footer)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.header-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    margin: 18px;
}

.portal-logo {
    position: absolute;
    left: 25px;
    display: flex;
    align-items: center;
}

    .portal-logo img {
        height: 70px;
        object-fit: contain;
    }

.portal-title h1 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(51, 219, 134, 0.25);
}

/* ── Main layout ── */
.layout {
    display: flex;
    gap: var(--gap-card);
    padding: 18px 26px;
    align-items: flex-start;
    flex: 1;
}

.main-content {
    flex: 1;
    min-width: 0; /* prevents flex overflow */
}

/* ── Footer ── */
/*.portal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 12.5px;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}*/


.portal-footer {
    position: relative; /* IMPORTANT */

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 12.5px;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    /* 🌾 Grass Layer */
    .portal-footer::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 100%; /* KEY CHANGE */
        width: 100%;
        height: 45px;
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent), url("/images/footer_img.png") repeat-x;
        background-size: 100% 100%, auto 100%;
        background-position: top, bottom;
        pointer-events: none;
    }


/* ═══════════════════════════════════════════════════════════════════════════
   5. SEARCH BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.search-box {
    position: absolute;
    right: 30px;
    width: 280px;
    max-width: 90%;
}

    .search-box input {
        width: 100%;
        padding: 10px 40px 10px 14px;
        border-radius: 30px;
        border: 2px solid rgba(0, 255, 255, 0.45);
        background: rgba(255, 255, 255, 0.12);
        color: var(--color-text);
        font-family: var(--font-body);
        font-size: 14px;
        outline: none;
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.35);
        transition: border-color var(--transition), box-shadow var(--transition);
    }

        .search-box input:focus {
            border-color: var(--color-cyan);
            box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.25), 0 0 18px rgba(0, 255, 255, 0.50);
        }

        .search-box input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-cyan);
    font-size: 15px;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. LEFT SIDEBAR  (navigation)
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(15, 70, 35, 0.55);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 13.5px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition), transform var(--transition), color var(--transition);
}

    .menu-item:hover,
    .menu-item:focus-visible {
        background: linear-gradient(90deg, #00ffd0, #00aaff);
        color: #000;
        transform: translateX(5px);
        outline: none;
    }

    .menu-item.active {
        background: linear-gradient(90deg, #00ffd0, #00aaff);
        color: #000;
    }


/* ═══════════════════════════════════════════════════════════════════════════
   7. TOP CARDS GRID  (emergency / bus / weather)
   ═══════════════════════════════════════════════════════════════════════════ */

.grid {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 0.9fr;
    gap: 16px;
    align-items: stretch;
}

/* ── Shared card header ── */
.card-header {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

/* ── Action button ── */
.action-btn {
    padding: 8px 16px;
    border: 2px solid #000; /* black border */
    border-radius: 12px;
    background:linear-gradient(90deg, #d6d3e3, #a4bb27);
    
    color: #000;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
    /* Highlight glow */
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), 0 0 10px rgba(0,255,200,0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .action-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 5px 10px rgba(0,0,0,0.5), 0 0 16px rgba(0,255,200,0.9);
    }


/* ═══════════════════════════════════════════════════════════════════════════
   8. EMERGENCY CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.emergency-card {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-color: rgba(255, 100, 100, 0.4);
    padding: 10px 12px;
}

.emergency-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.emergency-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.emergency-siren {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
    animation: sirenBlink 1s ease-in-out infinite;
}

@keyframes sirenBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    }

    50% {
        opacity: 0.25;
        box-shadow: none;
    }
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.emergency-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 4px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 12px;
}

    .emergency-box i {
        font-size: 16px;
        display: block;
        margin-bottom: 2px;
    }

    .emergency-box span {
        display: block;
        font-family: var(--font-display);
        font-size: 15px;
        font-weight: 700;
        margin-top: 3px;
        background: rgba(0, 0, 0, 0.3);
        padding: 3px;
        border-radius: 6px;
        letter-spacing: 1px;
    }


/* ═══════════════════════════════════════════════════════════════════════════
   9. BUS CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.bus-card {
    background: linear-gradient(135deg, #0d9b7e, #18c8a6);
    border-color: rgba(0, 255, 200, 0.35);
    padding: 10px 12px;
}

.bus-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 6px;
}

.bus-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bus-road {
    position: relative;
    height: 24px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    overflow: hidden;
}

.bus-moving {
    position: absolute;
    top: 0;
    font-size: 16px;
    animation: busDrive 10s linear infinite;
}

@keyframes busDrive {
    from {
        left: -40px;
    }

    to {
        left: 105%;
    }
}

.bus-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.bus-half {
    background: rgb(16 17 34 / 60%);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.bus-direction {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bus-time-big {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.30);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. WEATHER CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.weather-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    padding: 10px 12px;
    transition: transform var(--transition);
}

    .weather-card:hover {
        transform: translateY(-2px);
    }

.weather-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.4px;
}

.weather-datetime {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.3;
}

.weather-day-date {
    display: flex;
    flex-direction: column;
}

.weather-day {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
}

.weather-date {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.weather-clock {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 3px 8px;
    display: inline-block;
    white-space: nowrap;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 0;
}

.weather-icon {
    font-size: 28px;
    line-height: 1;
}

.weather-temp {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.weather-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.weather-desc {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: capitalize;
}

.weather-range {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    display: flex;
    gap: 6px;
}

/* Weather themes */
.sunny {
    background: linear-gradient(135deg, #f9d423, #ff4e50);
}

.cloudy {
    background: linear-gradient(135deg, #bdc3c7, #2c3e50);
}

.rain {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.storm {
    background: linear-gradient(135deg, #232526, #414345);
}

.snow {
    background: linear-gradient(135deg, #e6dada, #274046);
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. APPLICATION PORTAL  (4×4 grids, category sections)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── APP GRID SCROLL (max 4 rows visible, scroll after) ── */
#appGrid {
    max-height: 480px; /* ~4 rows × 110px each */
    overflow-y: auto;
    padding-right: 4px;
}

    /* Custom scrollbar */
    #appGrid::-webkit-scrollbar {
        width: 6px;
    }

    #appGrid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    #appGrid::-webkit-scrollbar-thumb {
        background: rgba(51, 219, 134, 0.5);
        border-radius: 10px;
    }

        #appGrid::-webkit-scrollbar-thumb:hover {
            background: rgba(51, 219, 134, 0.85);
        }

/* ── Portal container ── */
#appPortalContainer {
    display: flex;
    flex-direction: column;
    gap: var(--gap-card);
    margin-top: var(--gap-card);
}

/* ── Section (one per category) ── */
.app-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.app-section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.app-section-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex: 1;
}

.app-count {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* ── 5 × 5 grid (main Application Portal) ── */
.app-grid-5x5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ── 4 × 4 grid ── */
.app-grid-4x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ── 2 × N grid  (Popular Apps) ── */
.app-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ── Tile (shared by all grids) ── */
.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    min-height: 90px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    font-size: 12.5px;
    font-family: var(--font-body);
    user-select: none;
    transition: all var(--transition);
}

    .app-tile:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(51, 219, 134, 0.5);
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .app-tile i {
        font-size: 24px;
        color: var(--color-accent);
        transition: transform var(--transition);
    }

    .app-tile span {
        line-height: 1.3;
        word-break: break-word;
    }

   

        .app-tile:hover i {
            transform: scale(1.2);
            color: #fff;
        }

    .app-tile:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 3px;
    }

    .app-tile.hidden {
        display: none;
    }

/* Category-tinted hover borders */
.app-section[data-category="plant"] .app-tile:hover {
    border-color: rgba(26, 188, 156, 0.6);
}

.app-section[data-category="management"] .app-tile:hover {
    border-color: rgba(52, 152, 219, 0.6);
}

.app-section[data-category="business"] .app-tile:hover {
    border-color: rgba(155, 89, 182, 0.6);
}

.app-section[data-category="employee"] .app-tile:hover {
    border-color: rgba(230, 126, 34, 0.6);
}

/* Smaller tiles for 2×2 (Popular Apps) */
.app-grid-2x2 .app-tile {
    padding: 12px 8px;
    min-height: 75px;
    font-size: 11.5px;
}

    .app-grid-2x2 .app-tile i {
        font-size: 20px;
    }


/* ═══════════════════════════════════════════════════════════════════════════
   12. RIGHT SIDEBAR  (notice board, leadership)
   ═══════════════════════════════════════════════════════════════════════════ */

.notice-list {
    list-style: none;
    margin-top: 4px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 1.4;
}

    .notice-item:last-child {
        border-bottom: none;
    }

    .notice-item i {
        flex-shrink: 0;
        margin-top: 2px;
        color: var(--color-accent);
    }

    .notice-item.urgent i {
        color: #ffcc00;
    }

.leader-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.leader-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.leader-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
}

.leader-sub {
    font-size: 12px;
    color: var(--color-text-muted);
}

.leader-prompt {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    text-align: center;
}

.twitter-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #000;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background var(--transition), transform var(--transition);
}

    .twitter-follow-btn:hover {
        background: #1a1a1a;
        transform: scale(1.02);
    }

    .twitter-follow-btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
/* ── IMPORTANT LINKS CARD ────────────────────────────────────────────────── */

.links-card .notice-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
}

    .links-card .notice-item a:hover {
        color: var(--color-cyan);
        text-decoration: underline;
    }

.links-card .notice-item i {
    color: var(--color-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }

        .grid > .weather-card {
            grid-column: 1 / -1;
        }

    .app-grid-5x5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .app-grid-4x4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
        padding: 14px;
    }

    .sidebar {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .app-grid-5x5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-grid-4x4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .search-box {
        position: static;
        margin-top: 8px;
        width: 100%;
        max-width: 100%;
    }

    .portal-logo {
        position: static;
        margin-bottom: 4px;
    }

        .portal-logo img {
            height: 48px;
        }

    .portal-title h1 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .portal-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .app-grid-5x5,
    .app-grid-4x4,
    .app-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bus-split {
        grid-template-columns: 1fr;
    }

    .header-wrapper {
        margin: 10px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
