  /* === Leave Page - Unique Styles ===
   Shared base styles are in functionPages.css
*/

/* ===== HERO ===== */

/* Hero floaters */

.hero-floaters {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
    }

.hero-floater {
        position: absolute;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px;
        backdrop-filter: blur(4px);
        padding: 14px 18px;
    }

.hero-floater.left {
            left: 4%;
            bottom: 12%;
            transform: rotate(-6deg);
            animation: float-left 8s ease-in-out infinite;
        }

.hero-floater.right {
            right: 4%;
            top: 18%;
            transform: rotate(5deg);
            animation: float-right 7s ease-in-out infinite;
        }

.floater-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
    }

.floater-row:last-child {
            margin-bottom: 0;
        }

.floater-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

.floater-dot.green {
            background: rgba(22,163,74,.6);
        }

.floater-dot.blue {
            background: rgba(21,93,238,.6);
        }

.floater-dot.amber {
            background: rgba(217,119,6,.6);
        }

.floater-dot.red {
            background: rgba(220,38,38,.6);
        }

.floater-bar {
        height: 6px;
        border-radius: 3px;
        background: rgba(255,255,255,.08);
    }

.floater-check {
        color: rgba(22,163,74,.7);
        font-size: .7rem;
        font-weight: 700;
    }

.floater-time {
        font-size: .65rem;
        color: rgba(255,255,255,.3);
        font-family: var(--font-body);
    }

@media (max-width: 900px) {
        .hero-floater {
            display: none;
        }
    }

/* ===== SHARED SECTION ===== */

/* ===== SECTION 1: INTERACTIVE LEAVE DEMO ===== */

.demo-wrapper {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 0;
        background: var(--surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-xl);
        overflow: hidden;
        min-height: 480px;
    }

@media (max-width: 800px) {
        .demo-wrapper {
            grid-template-columns: 1fr;
        }
    }

.demo-sidebar {
        background: linear-gradient(180deg, #0f2044, #1a3a7a);
        padding: 24px 18px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

.demo-sidebar-title {
        color: rgba(255,255,255,.5);
        font-size: .68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 4px;
    }

.demo-sidebar-label {
        color: #fff;
        font-size: .9rem;
        font-weight: 600;
        margin-bottom: 12px;
    }

.demo-emp-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 12px;
        border-radius: var(--radius-sm);
        border: none;
        background: rgba(255,255,255,.04);
        color: rgba(255,255,255,.6);
        font-family: var(--font-body);
        font-size: .82rem;
        font-weight: 500;
        cursor: pointer;
        transition: all .2s;
    }

.demo-emp-btn:hover {
            background: rgba(255,255,255,.1);
            color: #fff;
        }

.demo-emp-btn.active {
            background: var(--accent);
            color: #fff;
        }

.demo-emp-role {
        font-size: .62rem;
        background: rgba(255,255,255,.12);
        padding: 2px 8px;
        border-radius: 100px;
        white-space: nowrap;
    }

.demo-emp-btn.active .demo-emp-role {
        background: rgba(255,255,255,.25);
    }

.demo-main {
        padding: 20px;
        overflow-x: auto;
    }

.demo-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

.demo-toolbar-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.demo-emp-heading {
        font-size: .95rem;
        font-weight: 600;
        color: var(--text);
    }

.demo-badge {
        font-size: .66rem;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 100px;
    }

.demo-badge.green {
            background: var(--green-light);
            color: var(--green);
        }

.demo-badge.amber {
            background: var(--amber-light);
            color: var(--amber);
        }

.demo-badge.blue {
            background: var(--accent-light);
            color: var(--accent);
        }

/* Balances grid */

.demo-balances {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        margin-bottom: 18px;
    }

.demo-balance-card {
        background: var(--surface-alt);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 14px;
        text-align: center;
        transition: border-color .2s;
    }

.demo-balance-card:hover {
            border-color: var(--accent);
        }

.demo-balance-type {
        font-size: .68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--text-light);
        margin-bottom: 4px;
    }

.demo-balance-val {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--text);
        line-height: 1.2;
    }

.demo-balance-sub {
        font-size: .66rem;
        color: var(--text-light);
        margin-top: 2px;
    }

/* Leave request table */

.demo-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: .8rem;
        min-width: 520px;
    }

.demo-table thead th {
            text-align: left;
            padding: 7px 8px;
            color: var(--text-light);
            font-weight: 600;
            font-size: .65rem;
            text-transform: uppercase;
            letter-spacing: .04em;
            border-bottom: 2px solid var(--border);
            white-space: nowrap;
        }

.demo-table tbody td {
            padding: 10px 8px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

.demo-table tbody tr {
            transition: background .15s;
        }

.demo-table tbody tr:hover {
                background: var(--surface-alt);
            }

.demo-leave-type {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        font-size: .8rem;
    }

.demo-leave-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }

.demo-status-tag {
        font-size: .66rem;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 100px;
        white-space: nowrap;
    }

.demo-status-tag.approved {
            background: var(--green-light);
            color: var(--green);
        }

.demo-status-tag.pending {
            background: var(--amber-light);
            color: var(--amber);
        }

.demo-status-tag.declined {
            background: var(--red-light);
            color: var(--red);
        }

.demo-dates {
        font-size: .78rem;
        color: var(--text-mid);
    }

.demo-days {
        font-size: .82rem;
        font-weight: 700;
        color: var(--text);
    }

.demo-action-btns {
        display: flex;
        gap: 4px;
    }

.demo-action-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: 1.5px solid var(--border);
        background: var(--surface);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all .15s;
    }

.demo-action-btn svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

.demo-action-btn.approve-btn {
            color: var(--green);
        }

.demo-action-btn.approve-btn:hover {
                background: var(--green-light);
                border-color: var(--green);
            }

.demo-action-btn.decline-btn {
            color: var(--red);
        }

.demo-action-btn.decline-btn:hover {
                background: var(--red-light);
                border-color: var(--red);
            }

/* ===== SECTION 2: FLOW DIAGRAM ===== */

.flow-track {
        display: flex;
        gap: 0;
        align-items: stretch;
        overflow-x: auto;
        padding-bottom: 10px;
    }

.flow-node {
        flex: 1;
        min-width: 180px;
        text-align: center;
        padding: 2rem 1.2rem;
        position: relative;
    }

.flow-node::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 14px solid transparent;
            border-bottom: 14px solid transparent;
            border-left: 14px solid var(--border);
        }

.flow-node:last-child::after {
            display: none;
        }

.flow-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.flow-icon svg {
            width: 26px;
            height: 26px;
        }

.flow-icon.blue {
            background: var(--accent-light);
        }

.flow-icon.blue svg {
                fill: var(--accent);
            }

.flow-icon.green {
            background: var(--green-light);
        }

.flow-icon.green svg {
                fill: var(--green);
            }

.flow-icon.amber {
            background: var(--amber-light);
        }

.flow-icon.amber svg {
                fill: var(--amber);
            }

.flow-icon.purple {
            background: var(--purple-light);
        }

.flow-icon.purple svg {
                fill: var(--purple);
            }

.flow-icon.teal {
            background: var(--teal-light);
        }

.flow-icon.teal svg {
                fill: var(--teal);
            }

.flow-node h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: .4rem;
    }

.flow-node p {
        font-size: .85rem;
        color: var(--text-mid);
        line-height: 1.55;
    }

@media (max-width: 768px) {
        .flow-track {
            flex-direction: column;
            gap: 8px;
        }

        .flow-node::after {
            display: none;
        }

        .flow-node {
            min-width: 0;
            padding: 1.2rem;
        }
    }

/* ===== SECTION 3: SPLIT SHOWCASES ===== */

.showcase-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        margin-bottom: 5rem;
    }

.showcase-row:last-child {
            margin-bottom: 0;
        }

.showcase-row.reverse {
            direction: rtl;
        }

.showcase-row.reverse > * {
                direction: ltr;
            }

@media (max-width: 800px) {
        .showcase-row, .showcase-row.reverse {
            grid-template-columns: 1fr;
            direction: ltr;
        }
    }

.showcase-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        border-radius: 100px;
        font-size: .72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 1rem;
    }

.showcase-label.blue {
            background: var(--accent-light);
            color: var(--accent);
        }

.showcase-label.green {
            background: var(--green-light);
            color: var(--green);
        }

.showcase-label.amber {
            background: var(--amber-light);
            color: var(--amber);
        }

.showcase-label.purple {
            background: var(--purple-light);
            color: var(--purple);
        }

.showcase-label.teal {
            background: var(--teal-light);
            color: var(--teal);
        }

.showcase-text h3 {
        font-family: var(--font-display);
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 400;
        margin-bottom: .75rem;
        line-height: 1.2;
    }

.showcase-text p {
        font-size: .95rem;
        color: var(--text-mid);
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

.showcase-bullets {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

.showcase-bullet {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: .88rem;
        color: var(--text-mid);
    }

.showcase-bullet-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--green-light);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--green);
        font-size: .7rem;
        font-weight: 700;
    }

.showcase-visual {
        display: flex;
        justify-content: center;
    }

/* Visual cards */

.vis-card {
        background: var(--surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        width: 100%;
        max-width: 440px;
    }

.vis-card-header {
        background: linear-gradient(135deg, #0f2044, #1a3a7a);
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.vis-card-header span {
            color: #fff;
            font-size: .82rem;
            font-weight: 600;
        }

.vis-card-header-pills {
        display: flex;
        gap: 4px;
    }

.vis-pill {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.2);
    }

.vis-pill.active {
            background: var(--green);
        }

.vis-card-body {
        padding: 18px;
    }

/* Leave calendar visual */

.leave-cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
        margin-bottom: 14px;
    }

.leave-cal-header {
        font-size: .58rem;
        font-weight: 600;
        color: var(--text-light);
        text-align: center;
        padding: 4px 0;
        text-transform: uppercase;
    }

.leave-cal-day {
        aspect-ratio: 1;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .7rem;
        font-weight: 500;
        color: var(--text-mid);
        background: var(--surface-alt);
        border: 1px solid transparent;
        transition: all .15s;
    }

.leave-cal-day.empty {
            background: transparent;
        }

.leave-cal-day.today {
            border-color: var(--accent);
            font-weight: 700;
            color: var(--accent);
        }

.leave-cal-day.leave-annual {
            background: rgba(21,93,238,.12);
            color: var(--accent);
            font-weight: 600;
        }

.leave-cal-day.leave-sick {
            background: rgba(220,38,38,.1);
            color: var(--red);
            font-weight: 600;
        }

.leave-cal-day.leave-pending {
            background: rgba(217,119,6,.1);
            color: var(--amber);
            font-weight: 600;
            border: 1px dashed var(--amber);
        }

.leave-cal-legend {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
    }

.leave-cal-legend-item {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: .66rem;
        color: var(--text-light);
    }

.leave-cal-legend-dot {
        width: 8px;
        height: 8px;
        border-radius: 3px;
    }

/* Balance bar visual */

.bal-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

.bal-row:last-child {
            border-bottom: none;
        }

.bal-label {
        font-size: .8rem;
        font-weight: 600;
        color: var(--text);
        min-width: 80px;
    }

.bal-track {
        flex: 1;
        height: 10px;
        background: var(--surface-alt);
        border-radius: 100px;
        overflow: hidden;
    }

.bal-fill {
        height: 100%;
        border-radius: 100px;
        transition: width .5s ease;
    }

.bal-value {
        font-size: .78rem;
        font-weight: 700;
        color: var(--text);
        min-width: 50px;
        text-align: right;
    }

/* Notification visual */

.notif-card {
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 14px;
        margin-bottom: 10px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        transition: border-color .2s;
    }

.notif-card:last-child {
            margin-bottom: 0;
        }

.notif-card:hover {
            border-color: var(--accent);
        }

.notif-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1rem;
    }

.notif-body {
        flex: 1;
    }

.notif-title {
        font-size: .82rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 2px;
    }

.notif-desc {
        font-size: .72rem;
        color: var(--text-light);
        line-height: 1.4;
    }

.notif-time {
        font-size: .62rem;
        color: var(--text-light);
        margin-top: 4px;
    }

/* ===== SECTION 4: STATS BAR ===== */

.stats-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

@media (max-width: 700px) {
        .stats-bar {
            grid-template-columns: repeat(2, 1fr);
        }
    }

.stat-card {
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: var(--radius-lg);
        padding: 2rem 1.5rem;
        text-align: center;
        backdrop-filter: blur(6px);
        transition: transform .3s, border-color .3s;
    }

.stat-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255,255,255,.25);
        }

.stat-number {
        font-family: var(--font-display);
        font-size: 2.2rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: .25rem;
    }

.stat-label {
        font-size: .88rem;
        color: rgba(255,255,255,.5);
    }

/* ===== SCROLL REVEAL ===== */

/* ===== KEYFRAMES ===== */

/* ===== MOBILE ===== */

@media (max-width: 600px) {
        .hero {
            min-height: 70vh;
            padding: 4rem 1.5rem;
        }

        .section {
            padding: 3.5rem 1.5rem;
        }
    }

/* FAQ */

.faq-list {
        max-width: 720px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 8px
    }

.faq-item {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        transition: border-color .25s
    }

.faq-item.open {
            border-color: var(--accent)
        }

.faq-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        background: none;
        border: none;
        font-family: var(--font-body);
        font-size: .95rem;
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        text-align: left;
        gap: 12px
    }

.faq-chevron {
        width: 20px;
        height: 20px;
        fill: var(--text-light);
        transition: transform .3s;
        flex-shrink: 0
    }

.faq-item.open .faq-chevron {
        transform: rotate(180deg)
    }

.faq-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease
    }

.faq-body-inner {
        padding: 0 20px 18px;
        font-size: .9rem;
        color: var(--text-mid);
        line-height: 1.7
    }