﻿/* =====================================================
   Easy Outdesk — Dashboard CSS
   Target : 43-inch TV @ 1920×1080 (FHD) primary
            + responsive breakpoints for all screens
   Blazor  : dashboard.razor
   ===================================================== */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* ══════════════════════════════════════════════════════
   OUTER FLIP WRAPPER
   ══════════════════════════════════════════════════════ */
.outer-flip-container {
    width: 100%;
    height: 100vh;
    perspective: 1600px;
    overflow: hidden;
}

.outer-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s ease-in-out;
}

.outer-flip-container.flipped .outer-flip-inner {
    transform: rotateY(180deg);
}

.outer-flip-front,
.outer-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.outer-flip-front {
    background: #0f0f0f;
    overflow: hidden;
}

.outer-flip-back {
    background: #000;
    transform: rotateY(180deg);
}

/* ══════════════════════════════════════════════════════
   DASHBOARD CONTAINER
   flex column — each child is a <section class="dash-section">
   Heights are set as viewport-relative % so the whole
   dashboard always fits in 100vh with no overflow.

   Layout (FHD 1920×1080):
     dash-header   : 7vh   — logo + clock
     dash-cards    : 10vh  — stat / quote cards
     dash-lists    : 20vh  — leave / permission / wfh lists
     dash-inner-flip: flex 1 (remaining ≈ 43vh)
     dash-carousel : 15vh  — staff carousel
     dash-countdown: 5vh   — flip countdown (conditional)
   Total guaranteed ≤ 100vh
   ══════════════════════════════════════════════════════ */
.dashboard-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 8px 16px;
    gap: 6px;
}

/* Base section — each child of dashboard-container */
.dash-section {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

/* ══════════════════════════════════════════════════════
   SECTION 0 — Header (Logo + Clock)
   ══════════════════════════════════════════════════════ */
.dash-header {
    height: 7vh;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

    .dash-header img {
        height: 36px;
        cursor: pointer;
    }

.dashboard-clock {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00bcd4;
}

.clock-time {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.clock-date {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════
   SECTION 1 — Stat / Quote Cards
   ══════════════════════════════════════════════════════ */
.dash-cards {
    height: 10vh;
    min-height: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    align-items: stretch;
}

/* Individual cards */

.absAndPresent {
    border-radius: 10px;
    padding: 6px 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .card h2,
    .absAndPresent h2 {
        font-size: 0.9rem;
        margin: 0 0 4px 0;
        color: #00bcd4;
    }

    .card p {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 700;
        color: #00e676;
    }

/* Leave / Permission / WFH combined card */
.combined-counts {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.count-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count-title {
    font-size: 0.78rem;
    margin-bottom: 2px;
    color: #00bcd4;
}

.divider {
    width: 1px;
    height: 36px;
    margin: 0 6px;
}

/* ── Quote card ── */
.quoteCard {
    position: relative;
    border: 2px solid rgba(255,255,255,0.2);
    background: #1e1e1e;
    color: #fff;
    padding: 8px 14px 22px 14px;
    overflow: hidden;
}

/* Fixed height scroll wrapper inside quote card */
.quote-scroll-wrap {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* padding-bottom leaves room above the progress bar */
    padding-bottom: 4px;
}

.quoteText {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.quoteAuthor {
    font-style: italic;
    font-weight: 600;
    color: #00bcd4;
    font-size: 0.75rem;
    text-align: right;
    margin-top: 4px;
}

.quote-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.quote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #00ff88);
    transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════════════
   SECTION 2 — Combined Lists
   Fixed 20vh, columns share equal width, each column
   has its own scroll wrapper that overflows internally.
   ══════════════════════════════════════════════════════ */
.dash-lists {
    height: 20vh;
    min-height: 110px;
    max-height: 210px;
    display: flex;
    flex-direction: row;
    gap: 0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Each list column */
.list-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    border-left: 1px solid #3a3a3a;
    overflow: hidden;
}

    .list-col:first-child {
        border-left: none;
    }

    .list-col h5 {
        font-size: 0.85rem;
        font-weight: 700;
        color: #00bcd4;
        margin: 0 0 5px 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
    }

/* Scroll wrapper inside each column — this is where
   the CSS-only scroll happens when items overflow     */
.list-scroll-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Member list — ul itself scrolls via animation */
.member-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* When list has duplicate items (> 3), animate */
}

    /* Items with aria-hidden siblings → animate the whole ul */
    .member-list li[aria-hidden] ~ li,
    .member-list:has(li[aria-hidden]) {
        animation: listScrollUp 10s linear infinite;
    }

    .member-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 3px 0;
        border-bottom: 1px solid #2e2e2e;
        gap: 6px;
        list-style: none;
    }

/* Animate the full list when duplicated items exist   */
.list-scroll-wrap:has(li[aria-hidden]) .member-list {
    animation: listScrollUp 10s linear infinite;
}

@keyframes listScrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.member-name {
    font-size: 0.76rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-session {
    font-size: 0.63rem;
    white-space: nowrap;
    flex-shrink: 0;
    color: #aaa;
}

.member-duration {
    font-size: 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
    color: #aaa;
}

.empty-msg {
    font-size: 0.7rem;
    color: #666;
    font-style: italic;
    padding: 4px 0;
}

/* ══════════════════════════════════════════════════════
   SECTION 3 — Inner Flip (TechMeet ↔ Announcement)
   flex: 1 so it takes ALL remaining height
   ══════════════════════════════════════════════════════ */
.dash-inner-flip {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.inner-flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s ease-in-out;
}

.inner-flip-card-front,
.inner-flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 10px 16px 16px 16px;
    background-color: #1e1e1e;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .inner-flip-card-front h2 {
        font-size: 1.05rem;
        font-weight: 700;
        text-align: center;
        margin: 0 0 8px 0;
        flex-shrink: 0;
        color: #00bcd4;
    }

.inner-flip-card-back {
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ── Tech Meet table layout ── */
.tech-meet-scroll-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Pinned header table */
.tech-meet-header {
    flex-shrink: 0;
}

/* Scrolling body — fills all remaining height */
.tech-meet-body-scroll {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tech-meet-table {
    width: 100%;
    border-collapse: collapse;
}

    .tech-meet-table th,
    .tech-meet-table td {
        padding: 5px 10px;
        text-align: left;
        font-size: 0.8rem;
    }

    .tech-meet-table thead {
        color: #00bcd4;
    }

    .tech-meet-table th {
        font-weight: 600;
        font-size: 0.76rem;
    }

    .tech-meet-table tbody tr {
        border-bottom: 1px solid #3a3a3a;
    }

        .tech-meet-table tbody tr:hover {
            background-color: rgba(173,173,173,0.15);
        }

tr.done {
    opacity: 0.5;
}

tr.upcoming {
    background-color: #93DA97;
    color: #000;
}

/* ── Inner flip progress bar ── */
.flip-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 10;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.flip-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #00ff88);
    box-shadow: 0 0 6px #00ff88aa;
    transition: width 0.1s linear;
}

/* ── Announcement (back face) ── */
.announcement-card {
    width: 100%;
    max-width: 88%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
}

    .announcement-card h2 {
        color: #00bcd4;
        font-size: 1.6rem;
        margin: 0 0 10px 0;
        font-weight: 800;
        flex-shrink: 0;
    }

.announcement-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* Fixed-height scroll area for the announcement message */
.announcement-message-scroll {
    height: 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.announcement-message {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.65;
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   SECTION 4 — Staff Carousel
   ══════════════════════════════════════════════════════ */
.dash-carousel {
    height: 15vh;
    min-height: 100px;
    max-height: 160px;
    border-top: 1px solid #2a2a2a;
    padding-top: 6px;
    overflow-x: hidden;
    overflow-y: visible;
    flex-shrink: 0;
}

.staff-slider {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.staff-track {
    display: flex;
    width: max-content;
    align-items: flex-start;
    padding: 0 6px 4px 6px;
    height: 100%;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 110px;
    min-width: 110px;
    padding: 0 4px;
    text-align: center;
    overflow: visible;
    cursor: pointer;
}

.staff-img {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00bcd4;
    margin: 0 auto 4px auto;
    background: #2a2a2a;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover .staff-img {
    transform: scale(1.06);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.staff-info {
    width: 100%;
    overflow: visible;
}

    .staff-info h3 {
        font-size: 0.68rem;
        font-weight: 700;
        margin: 0 0 1px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 104px;
    }

    .staff-info p {
        font-size: 0.57rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 104px;
        color: #aaa;
    }

/* ══════════════════════════════════════════════════════
   SECTION 5 — Flip Countdown
   ══════════════════════════════════════════════════════ */
.dash-countdown {
    flex-shrink: 0;
    padding: 4px 0 2px 0;
    animation: countdownFadeIn 0.4s ease forwards;
}

@keyframes countdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════
   PROGRESS BARS (shared)
   ══════════════════════════════════════════════════════ */
.dashboard-flip-progress-wrap {
    width: 100%;
    height: 4px;
    background: rgba(0,188,212,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.dashboard-flip-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #26c6da, #80deea);
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 6px rgba(0,188,212,0.6);
}

/* ══════════════════════════════════════════════════════
   BACK FACE — File Slides
   ══════════════════════════════════════════════════════ */
.slide-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    background: #000;
    display: block;
}

.dashboard-flip-countdown {
    position: relative;
}

/* ══════════════════════════════════════════════════════
   AUTO-SCROLL — Pure CSS
   Two .auto-scroll-content siblings → scroll runs.
   One .auto-scroll-content (:only-child) → no scroll.
   ══════════════════════════════════════════════════════ */

/* Base: no animation */
.auto-scroll-content {
    flex-shrink: 0;
    will-change: transform;
    animation: none;
}

/* Quote scroll */
.quote-scroll-wrap {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .quote-scroll-wrap .auto-scroll-content:not(:only-child) {
        animation: cssScrollUp 12s linear infinite;
    }

/* Tech meet body scroll */
.tech-meet-body-scroll .auto-scroll-content:not(:only-child) {
    animation: cssScrollUp 20s linear infinite;
}

/* Announcement message scroll */
.announcement-message-scroll .auto-scroll-content:not(:only-child) {
    animation: cssScrollUp 14s linear infinite;
}

/* Pause on hover */
.quote-scroll-wrap:hover .auto-scroll-content,
.tech-meet-body-scroll:hover .auto-scroll-content,
.announcement-message-scroll:hover .auto-scroll-content {
    animation-play-state: paused;
}

@keyframes cssScrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* ══════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════ */
.custom-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.custom-toast {
    min-width: 250px;
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    text-align: center;
    animation: dropIn 0.5s ease forwards, fadeOut 0.5s ease forwards 2.5s;
}

    .custom-toast.success {
        background: #28a745;
    }

    .custom-toast.error {
        background: #dc3545;
    }

    .custom-toast.warning {
        background: #ffc107;
        color: #000;
    }

    .custom-toast.info {
        background: #17a2b8;
    }

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════════════
   THEME — DARK
   ══════════════════════════════════════════════════════ */
.dark .outer-flip-front {
    background: #0f0f0f;
}

.dark .dashboard-container {
    color: #e0e0e0;
}

.dark .card, .dark .absAndPresent {
    background: #1e1e1e;
    color: #fff;
}

    .dark .card h2, .dark .absAndPresent h2 {
        color: #00bcd4;
    }

.dark .count-value-absentees {
    color: #ff4d4f;
    font-weight: 700;
    font-size: 1.4rem;
}

.dark .count-value-permission {
    color: #ffc107;
    font-weight: 700;
    font-size: 1.4rem;
}

.dark .count-value-wfh {
    color: #93DA97;
    font-weight: 700;
    font-size: 1.4rem;
}

.dark .count-title {
    color: #e0e0e0;
}

.dark .divider {
    background: #444;
}

.dark .dash-lists {
    background: #1e1e1e;
}

.dark .list-col {
    border-left-color: #3a3a3a;
}

    .dark .list-col h5 {
        color: #00bcd4;
    }

.dark .member-list li {
    border-bottom-color: #2e2e2e;
    color: #ddd;
}

.dark .member-session,
.dark .member-duration {
    color: #999;
}

.dark .empty-msg {
    color: #555;
}

.dark .inner-flip-card-front,
.dark .inner-flip-card-back {
    background: #1e1e1e;
}

.dark .tech-meet-table tbody tr {
    border-bottom-color: #3a3a3a;
}

.dark .staff-info h3 {
    color: #fff;
}

.dark .staff-info p {
    color: #aaa;
}

.dark .dash-carousel {
    border-top-color: #2a2a2a;
}

.dark .quoteCard {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.15);
}

.dark .quoteAuthor {
    color: #00bcd4;
}

.dark .dashboard-clock {
    color: #00bcd4;
}

/* ══════════════════════════════════════════════════════
   THEME — LIGHT
   ══════════════════════════════════════════════════════ */
.light .outer-flip-front {
    background: #f0f0f0;
}

.light .dashboard-container {
    background: #f0f0f0;
    color: #222;
}

.light .card, .light .absAndPresent {
    background: #fff;
    color: #222;
}

    .light .card h2, .light .absAndPresent h2 {
        color: #0097a7;
    }

.light .count-value-absentees {
    color: #e53935;
    font-weight: 700;
    font-size: 1.4rem;
}

.light .count-value-permission {
    color: #f9a825;
    font-weight: 700;
    font-size: 1.4rem;
}

.light .count-value-wfh {
    color: #43a047;
    font-weight: 700;
    font-size: 1.4rem;
}

.light .count-title {
    color: #333;
}

.light .divider {
    background: #ccc;
}

.light .dash-lists {
    background: #fff;
}

.light .list-col {
    border-left-color: #ddd;
}

    .light .list-col h5 {
        color: #0097a7;
    }

.light .member-list li {
    border-bottom-color: #e0e0e0;
    color: #333;
}

.light .member-session,
.light .member-duration {
    color: #777;
}

.light .empty-msg {
    color: #999;
}

.light .inner-flip-card-front,
.light .inner-flip-card-back {
    background: #fff;
    color: #222;
}

    .light .inner-flip-card-front h2 {
        color: #0097a7;
    }

.light .tech-meet-table tbody tr {
    border-bottom-color: #ddd;
}

.light .staff-info h3 {
    color: #222;
}

.light .staff-info p {
    color: #555;
}

.light .staff-img {
    border-color: #0097a7;
}

.light .dash-carousel {
    border-top-color: #ddd;
}

.light .quoteCard {
    background: #fff;
    border-color: #ccc;
    color: #222;
}

.light .quoteAuthor {
    color: #0097a7;
}

.light .dashboard-clock {
    color: #0097a7;
}

.light .announcement-message {
    color: #333;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════ */

/* ── 4K UHD  ≥ 3840px ── */
@media (min-width: 3840px) {
    .dashboard-container {
        padding: 16px 32px;
        gap: 14px;
    }

    .dash-header {
        height: 8vh;
    }

        .dash-header img {
            height: 64px;
        }

    .clock-time {
        font-size: 2.8rem;
    }

    .clock-date {
        font-size: 1.4rem;
    }

    .dash-cards {
        height: 11vh;
        grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
        gap: 16px;
    }

    .card h2 {
        font-size: 1.6rem;
    }

    .card p {
        font-size: 2rem;
    }

    .count-title {
        font-size: 1.2rem;
    }

    .dark .count-value-absentees,
    .dark .count-value-permission,
    .dark .count-value-wfh,
    .light .count-value-absentees,
    .light .count-value-permission,
    .light .count-value-wfh {
        font-size: 2.6rem;
    }

    .divider {
        height: 72px;
    }

    .dash-lists {
        height: 22vh;
        max-height: 300px;
    }

    .list-col h5 {
        font-size: 1.35rem;
    }

    .member-name {
        font-size: 1.15rem;
    }

    .member-session {
        font-size: 0.95rem;
    }

    .member-duration {
        font-size: 0.9rem;
    }

    .empty-msg {
        font-size: 1rem;
    }

    .inner-flip-card-front h2 {
        font-size: 2rem;
    }

    .tech-meet-table th,
    .tech-meet-table td {
        font-size: 1.3rem;
        padding: 10px 16px;
    }

    .announcement-card h2 {
        font-size: 3rem;
    }

    .announcement-title {
        font-size: 2.6rem;
    }

    .announcement-message {
        font-size: 1.8rem;
    }

    .announcement-message-scroll {
        height: 200px;
    }

    .dash-carousel {
        height: 18vh;
        max-height: 280px;
    }

    .staff-card {
        width: 200px;
        min-width: 200px;
    }

    .staff-img {
        width: 160px;
        height: 160px;
        min-width: 160px;
        min-height: 160px;
        border-width: 5px;
    }

    .staff-info h3 {
        font-size: 1.2rem;
        max-width: 192px;
    }

    .staff-info p {
        font-size: 1rem;
        max-width: 192px;
    }

    .quoteText {
        font-size: 1.6rem;
    }

    .quoteAuthor {
        font-size: 1.2rem;
    }
}

/* ── QHD  2560–3839px ── */
@media (min-width: 2560px) and (max-width: 3839px) {
    .dashboard-container {
        padding: 12px 24px;
        gap: 10px;
    }

    .dash-header img {
        height: 48px;
    }

    .clock-time {
        font-size: 2rem;
    }

    .clock-date {
        font-size: 1.1rem;
    }

    .dash-cards {
        height: 10vh;
        grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
        gap: 12px;
    }

    .card h2 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 1.6rem;
    }

    .count-title {
        font-size: 1rem;
    }

    .dark .count-value-absentees,
    .dark .count-value-permission,
    .dark .count-value-wfh,
    .light .count-value-absentees,
    .light .count-value-permission,
    .light .count-value-wfh {
        font-size: 2rem;
    }

    .dash-lists {
        height: 21vh;
        max-height: 260px;
    }

    .list-col h5 {
        font-size: 1.1rem;
    }

    .member-name {
        font-size: 1rem;
    }

    .member-session {
        font-size: 0.82rem;
    }

    .inner-flip-card-front h2 {
        font-size: 1.6rem;
    }

    .tech-meet-table th,
    .tech-meet-table td {
        font-size: 1.05rem;
        padding: 7px 12px;
    }

    .announcement-card h2 {
        font-size: 2.4rem;
    }

    .announcement-title {
        font-size: 2rem;
    }

    .announcement-message {
        font-size: 1.4rem;
    }

    .announcement-message-scroll {
        height: 160px;
    }

    .dash-carousel {
        height: 17vh;
        max-height: 200px;
    }

    .staff-card {
        width: 150px;
        min-width: 150px;
    }

    .staff-img {
        width: 118px;
        height: 118px;
        min-width: 118px;
        min-height: 118px;
        border-width: 4px;
    }

    .staff-info h3 {
        font-size: 0.95rem;
        max-width: 142px;
    }

    .staff-info p {
        font-size: 0.8rem;
        max-width: 142px;
    }
}

/* ── FHD+  1600–2559px (43" TV base) ── */
@media (min-width: 1600px) and (max-width: 2559px) {
    .dashboard-container {
        padding: 8px 18px;
        gap: 7px;
    }

    .dash-carousel {
        height: 16vh;
        max-height: 165px;
    }

    .staff-card {
        width: 118px;
        min-width: 118px;
    }

    .staff-img {
        width: 82px;
        height: 82px;
        min-width: 82px;
        min-height: 82px;
    }

    .staff-info h3 {
        font-size: 0.7rem;
        max-width: 110px;
    }

    .staff-info p {
        font-size: 0.6rem;
        max-width: 110px;
    }

    .inner-flip-card-front h2 {
        font-size: 1.2rem;
    }
}

/* ── Standard HD  1280–1599px ── */
@media (min-width: 1280px) and (max-width: 1599px) {
    .dashboard-container {
        padding: 6px 14px;
        gap: 5px;
    }

    .clock-time {
        font-size: 1.2rem;
    }

    .dash-cards {
        height: 9vh;
    }

    .dash-lists {
        height: 19vh;
    }

    .dash-carousel {
        height: 14vh;
        max-height: 148px;
    }

    .staff-card {
        width: 100px;
        min-width: 100px;
    }

    .staff-img {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }

    .staff-info h3 {
        font-size: 0.65rem;
        max-width: 94px;
    }

    .staff-info p {
        font-size: 0.55rem;
        max-width: 94px;
    }

    .inner-flip-card-front h2 {
        font-size: 1rem;
    }

    .tech-meet-table th,
    .tech-meet-table td {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .announcement-card h2 {
        font-size: 1.4rem;
    }

    .announcement-title {
        font-size: 1.2rem;
    }

    .announcement-message {
        font-size: 0.95rem;
    }

    .announcement-message-scroll {
        height: 100px;
    }
}

/* ── Tablet  768–1279px ── */
@media (min-width: 768px) and (max-width: 1279px) {
    .dashboard-container {
        padding: 6px 10px;
        gap: 5px;
    }

    .dash-header {
        height: 6vh;
    }

    .clock-time {
        font-size: 1.05rem;
    }

    .clock-date {
        font-size: 0.72rem;
    }

    .dash-cards {
        height: 9vh;
        grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
        gap: 6px;
    }

    .card h2 {
        font-size: 0.78rem;
    }

    .dash-lists {
        height: 22vh;
        max-height: 200px;
    }

    .list-col h5 {
        font-size: 0.75rem;
    }

    .member-name {
        font-size: 0.66rem;
    }

    .member-session {
        font-size: 0.56rem;
    }

    .inner-flip-card-front h2 {
        font-size: 0.9rem;
    }

    .tech-meet-table th,
    .tech-meet-table td {
        font-size: 0.68rem;
        padding: 3px 6px;
    }

    .announcement-card h2 {
        font-size: 1.3rem;
    }

    .announcement-title {
        font-size: 1.05rem;
    }

    .announcement-message {
        font-size: 0.82rem;
    }

    .announcement-message-scroll {
        height: 90px;
    }

    .dash-carousel {
        height: 14vh;
        max-height: 130px;
    }

    .staff-card {
        width: 82px;
        min-width: 82px;
    }

    .staff-img {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }

    .staff-info h3 {
        font-size: 0.6rem;
        max-width: 76px;
    }

    .staff-info p {
        font-size: 0.5rem;
        max-width: 76px;
    }
}

/* ── Mobile  < 768px ── */
@media (max-width: 767px) {
    html, body {
        overflow-y: auto;
    }

    .outer-flip-container {
        height: auto;
        min-height: 100vh;
    }

    .dashboard-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 8px 10px;
        gap: 8px;
    }

    .dash-section {
        flex-shrink: 0;
    }

    .dash-header {
        height: auto;
        min-height: 44px;
    }

    .dash-cards {
        height: auto;
        min-height: 60px;
        grid-template-columns: 1fr 1fr;
    }

    .dash-lists {
        height: auto;
        min-height: 120px;
        max-height: none;
        overflow-x: auto;
    }

    .dash-inner-flip {
        min-height: 200px;
        flex: none;
        height: 40vh;
    }

    .dash-carousel {
        height: auto;
        min-height: 110px;
        max-height: none;
    }

    .dash-countdown {
        height: auto;
    }

    .list-col h5 {
        font-size: 0.65rem;
    }

    .member-name {
        font-size: 0.6rem;
    }

    .member-session {
        font-size: 0.52rem;
    }

    .clock-time {
        font-size: 0.9rem;
    }

    .clock-date {
        font-size: 0.62rem;
    }

    .announcement-message-scroll {
        height: 80px;
    }

    .staff-card {
        width: 70px;
        min-width: 70px;
    }

    .staff-img {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

    .staff-info h3 {
        font-size: 0.52rem;
        max-width: 64px;
    }

    .staff-info p {
        font-size: 0.44rem;
        max-width: 64px;
    }
}
