/*==========================================================
    SCHOOLEAD
    DASHBOARD SLIDER (HOMEPAGE HERO COMPONENT)
    COMPLETE UNIFIED STYLESHEET
==========================================================*/

/*=========================================
RESET & CONTAINER SCOPING
=========================================*/
.hero-image * {
    box-sizing: border-box;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

/*=========================================
SLIDER CONTAINER
=========================================*/
.dashboard-slider {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 500px;
    border-radius: 28px;
    overflow: hidden;
}

/*=========================================
SLIDES
=========================================*/
.dashboard-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition:
        opacity .6s ease,
        transform .6s ease,
        visibility .6s;
}

.dashboard-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/*=========================================
WINDOW GLASSMORPHISM
=========================================*/
.dashboard-window {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        rgba(18, 24, 38, .96),
        rgba(10, 16, 28, .94)
    );
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .45),
        inset 0 1px 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform .45s ease, box-shadow .45s ease;
}

.dashboard-window:hover {
    transform: translateY(-4px);
    box-shadow:
        0 35px 80px rgba(0, 0, 0, .55),
        inset 0 1px 1px rgba(255, 255, 255, .05);
}

/*=========================================
HEADER
=========================================*/
.dashboard-header {
    margin-bottom: 12px;
}

.dashboard-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.dashboard-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 12px #3b82f6;
}

.dashboard-header h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

/*=========================================
COMMON CARDS & BUTTONS
=========================================*/
.dashboard-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    padding: 8px 12px;
    transition: .35s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, .40);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .35);
}

.dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: .35s;
}

.dashboard-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/*=========================================
ARROWS & NAVIGATION DOTS
=========================================*/
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: rgba(20, 27, 41, .90);
    color: #fff;
    cursor: pointer;
    transition: .35s;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    backdrop-filter: blur(20px);
}

.slider-arrow:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-50%) scale(1.08);
}

.slider-prev {
    left: -18px;
}

.slider-next {
    right: -18px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 50;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, .30);
    transition: .35s;
}

.slider-dot.active {
    width: 32px;
    border-radius: 100px;
    background: #3b82f6;
}

.slider-dot:hover {
    background: #60a5fa;
}

/*=========================================
ANIMATION & SCROLLBAR
=========================================*/
@keyframes dashboardFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-window > * {
    animation: dashboardFade .8s ease;
}

.dashboard-window::-webkit-scrollbar {
    width: 6px;
}

.dashboard-window::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 20px;
}

.dashboard-window::-webkit-scrollbar-track {
    background: transparent;
}


/*==========================================================
    PART 2A-1: SCREEN 1 — DASHBOARD
==========================================================*/
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-stat-card {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .06),
        rgba(255, 255, 255, .03)
    );
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 12px 10px;
    overflow: hidden;
    transition: .35s;
    animation: floatCard 6s ease-in-out infinite, dashboardCard .8s ease;
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, .12),
        transparent
    );
    opacity: 0;
    transition: .35s;
}

.dashboard-stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, .35);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .35);
}

.dashboard-stat-card:hover::before {
    opacity: 1;
}

.dashboard-stat-card:nth-child(2) {
    animation-delay: .15s, .4s;
}

.dashboard-stat-card:nth-child(3) {
    animation-delay: .30s, .8s;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number.blue { color: #3b82f6; }
.stat-number.orange { color: #f59e0b; }
.stat-number.green { color: #22c55e; }

.stat-title {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: .02em;
}

.dashboard-summary {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, .14),
        rgba(37, 99, 235, .05)
    );
    border: 1px solid rgba(59, 130, 246, .18);
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.dashboard-summary::before {
    content: "●";
    color: #3b82f6;
    margin-right: 8px;
}

.dashboard-summary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .12),
        transparent
    );
    animation: summaryGlow 5s linear infinite;
}


/*==========================================================
    PART 2A-2: SCREEN 1 — PROGRESS & FOOTER
==========================================================*/
.dashboard-progress-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-head span:first-child {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.progress-head span:last-child {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    transition: transform .3s;
}

.progress-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .05),
        rgba(255, 255, 255, .01)
    );
}

.progress-fill {
    position: relative;
    height: 100%;
    width: 0;
    border-radius: 50px;
    transition: width 1.8s ease;
}

.progress-fill.green {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 15px rgba(34, 197, 94, .45);
}

.progress-fill.blue {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    box-shadow: 0 0 15px rgba(37, 99, 235, .45);
}

.progress-fill.orange {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 15px rgba(245, 158, 11, .45);
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, .45);
    transform: skewX(-25deg);
    animation: progressShine 2.5s infinite;
}

.progress-item:hover .progress-bar {
    transform: scaleY(1.15);
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 500;
}

.footer-item strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.footer-dot.green {
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, .8);
}

.footer-dot.orange {
    background: #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, .8);
}

.footer-dot.blue {
    background: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, .8);
}


/*==========================================================
    PART 2B-1 & 2B-2: SCREEN 2 — SCOLARITÉ / REPORT CARD
==========================================================*/
.student-report-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .05),
        rgba(255, 255, 255, .025)
    );
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .30);
    transition: .35s;
}

.student-report-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, .35);
}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.student-header h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 2px;
    font-weight: 700;
}

.student-header span {
    color: #94a3b8;
    font-size: 11px;
}

.pdf-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: .30s;
    opacity: 0;
    animation: subjectFade .7s forwards;
}

.subject-row:hover {
    transform: translateX(6px);
    background: rgba(59, 130, 246, .10);
    border-color: rgba(59, 130, 246, .30);
}

.subject-row span { color: #e2e8f0; font-size: 12px; font-weight: 500; }
.subject-row strong { color: #ffffff; font-size: 12px; font-weight: 700; text-align: right; }

.subject-row:nth-child(1) strong { color: #22c55e; }
.subject-row:nth-child(2) strong { color: #f59e0b; }
.subject-row:nth-child(3) strong { color: #3b82f6; }
.subject-row:nth-child(4) strong { color: #22c55e; }
.subject-row:nth-child(5) strong { color: #8b5cf6; }

.subject-row:nth-child(1) { animation-delay: .10s; }
.subject-row:nth-child(2) { animation-delay: .20s; }
.subject-row:nth-child(3) { animation-delay: .30s; }
.subject-row:nth-child(4) { animation-delay: .40s; }
.subject-row:nth-child(5) { animation-delay: .50s; }

.average-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, .16),
        rgba(30, 41, 59, .55)
    );
    border: 1px solid rgba(59, 130, 246, .25);
    opacity: 0;
    animation: averageAppear .8s .45s forwards;
}

.average-card span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.average-card h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.average-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, .12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .30);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    animation: averageAppear .8s .65s forwards;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
}

.download-report {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .25);
}

.download-report:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}


/*==========================================================
    PART 3: SCREEN 3 — PORTAIL PARENTS
==========================================================*/
.parent-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.parent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .35s;
    opacity: 0;
    animation: portalFade .7s forwards;
}

.parent-card:hover {
    transform: translateY(-4px);
    background: rgba(37, 99, 235, .12);
    border-color: rgba(59, 130, 246, .35);
}

.parent-icon {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.parent-content h4 {
    color: #fff;
    font-size: 12px;
    margin-bottom: 2px;
}

.parent-content p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.parent-notifications {
    margin-top: 8px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.notification-title i { color: #3b82f6; }

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .05);
    transition: .3s;
    opacity: 0;
    animation: portalFade .7s forwards;
}

.notification-item:hover {
    background: rgba(37, 99, 235, .10);
    transform: translateX(4px);
}

.notification-item i {
    color: #22c55e;
    margin-top: 2px;
    font-size: 13px;
}

.notification-item span {
    color: #cbd5e1;
    line-height: 1.4;
    font-size: 11px;
}

.parent-card:nth-child(1) { animation-delay: .1s; }
.parent-card:nth-child(2) { animation-delay: .2s; }
.parent-card:nth-child(3) { animation-delay: .3s; }
.parent-card:nth-child(4) { animation-delay: .4s; }

.notification-item:nth-child(1) { animation-delay: .5s; }
.notification-item:nth-child(2) { animation-delay: .6s; }
.notification-item:nth-child(3) { animation-delay: .7s; }


/*==========================================================
    PART 4: SCREEN 4 — DOCUMENTS / STUDENT CARDS
==========================================================*/
.school-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .30);
    transition: .35s;
    opacity: 0;
    animation: documentFade .7s .15s forwards;
}

.school-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, .35);
}

.school-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.school-card-header h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 2px;
}

.school-card-header span {
    color: #94a3b8;
    font-size: 11px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(34, 197, 94, .12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .30);
    font-size: 11px;
    font-weight: 700;
}

.school-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-photo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.student-details h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.student-details p {
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.5;
}

.school-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}

.qr-box {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 20px;
    flex-shrink: 0;
}

.qr-info h5 {
    color: #fff;
    font-size: 12px;
    margin-bottom: 2px;
}

.qr-info p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.document-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.document-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: .35s;
    opacity: 0;
    animation: documentFade .7s forwards;
}

.document-feature:hover {
    background: rgba(37, 99, 235, .10);
    border-color: rgba(59, 130, 246, .35);
    transform: translateY(-2px);
}

.document-feature i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
}

.document-feature span {
    color: #fff;
    font-weight: 600;
    font-size: 11px;
}

.document-feature:nth-child(1) { animation-delay: .25s; }
.document-feature:nth-child(2) { animation-delay: .35s; }
.document-feature:nth-child(3) { animation-delay: .45s; }
.document-feature:nth-child(4) { animation-delay: .55s; }


/*==========================================================
    PART 5: SCREEN 5 — FINANCES & INVOICES
==========================================================*/
.invoice-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .30);
    transition: .35s;
    opacity: 0;
    animation: financeFade .7s .1s forwards;
}

.invoice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, .35);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.invoice-number {
    color: #94a3b8;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.invoice-header h4 {
    color: #fff;
    font-size: 15px;
    margin-top: 2px;
}

.invoice-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #22c55e;
    font-size: 11px;
    font-weight: 700;
}

.invoice-school {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

.invoice-school strong {
    display: block;
    color: #fff;
    font-size: 12px;
    margin-bottom: 2px;
}

.invoice-school p {
    color: #94a3b8;
    font-size: 11px;
}

.invoice-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    font-size: 11px;
    transition: .3s;
}

.invoice-row:hover {
    background: rgba(37, 99, 235, .08);
}

.invoice-row span { color: #cbd5e1; }
.invoice-row strong { color: #fff; }

.invoice-row.total {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .25);
}

.invoice-row.total strong {
    color: #22c55e;
    font-size: 12px;
}

.payment-information {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.payment-item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    transition: .3s;
    opacity: 0;
    animation: financeFade .7s forwards;
}

.payment-item:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, .10);
}

.payment-item i {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}

.payment-item strong {
    display: block;
    color: #fff;
    font-size: 11px;
}

.payment-item span {
    color: #94a3b8;
    font-size: 10px;
}

.payment-item:nth-child(1) { animation-delay: .2s; }
.payment-item:nth-child(2) { animation-delay: .3s; }
.payment-item:nth-child(3) { animation-delay: .4s; }

.finance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.finance-box {
    padding: 8px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: .35s;
    opacity: 0;
    animation: financeFade .7s forwards;
}

.finance-box:hover {
    transform: translateY(-3px);
    background: rgba(37, 99, 235, .10);
}

.finance-box h4 {
    color: #22c55e;
    font-size: 14px;
    margin-bottom: 2px;
}

.finance-box span {
    color: #94a3b8;
    font-size: 10px;
}

.finance-box:nth-child(1) { animation-delay: .5s; }
.finance-box:nth-child(2) { animation-delay: .6s; }
.finance-box:nth-child(3) { animation-delay: .7s; }


/*=========================================
KEYFRAME ANIMATIONS
=========================================*/
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes summaryGlow {
    from { left: -60%; }
    to { left: 130%; }
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: .6; }
}

@keyframes progressShine {
    0% { left: -35%; }
    100% { left: 120%; }
}

@keyframes subjectFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes averageAppear {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes portalFade {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes documentFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes financeFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/*==========================================================
    PART 6: BREAKPOINT & MOBILE RESPONSIVENESS
==========================================================*/
@media (max-width: 1200px) {
    .dashboard-slider {
        max-width: 480px;
    }
}

@media (max-width: 992px) {
    .dashboard-slider {
        max-width: 100%;
        min-height: 480px;
    }
    .payment-information,
    .finance-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-slider {
        min-height: 460px;
        border-radius: 20px;
    }
    .dashboard-window {
        padding: 16px;
        border-radius: 20px;
    }
    .slider-prev { left: -10px; }
    .slider-next { right: -10px; }
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .parent-dashboard {
        grid-template-columns: 1fr;
    }
    .document-features {
        grid-template-columns: 1fr;
    }
    .dashboard-header h3 {
        font-size: 18px;
    }
    .stat-number {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .dashboard-slider {
        min-height: 440px;
    }
    .dashboard-window {
        padding: 12px;
    }
    .school-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    .student-photo {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 360px) {
    .dashboard-slider {
        min-height: 420px;
    }
    .slider-dots {
        bottom: 8px;
    }
    .dashboard-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
