/* ── Dashboard (Premium Dark Hero Aesthetic) ── */
:root {
    --navy: #0B1F3A;
    --navy-mid: #1A3358;
    --navy-dark: #061121;
    --accent: #F58732;
    --teal: #0F6E56;
    --slate: #4A5568;
    --slate-light: #94A3B8;
    --surface: #F7F9FC;
    --card-radius: 16px;
    --pill-radius: 100px;
}

header.dash-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background: white;
}

/* Add subtle glowing orbs to the background for depth */
header.dash-header::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: white;
    filter: blur(60px);
    pointer-events: none;
}

header.dash-header::after {
    content: "";
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 135, 50, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-decor-1,
.hero-decor-2 {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 40px 20px;
    /* Reduced upper and lower space */
}

/* ── Quick Access Grid ── */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Generic entry animation for all grid items */
.qa-grid>* {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.4s forwards;
    /* Sped up animation */
}

/* Premium Dark Cards */
.qa-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* bouncy smooth transition */
    min-height: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow top border */
.qa-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.5;
}

/* Icons */
.qa-icon {
    font-size: 32px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.theme-orange .qa-icon {
    color: #F58732;
    filter: drop-shadow(0 0 8px rgba(245, 135, 50, 0.4));
}

.theme-teal .qa-icon {
    color: #14B8A6;
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.4));
}

.theme-blue .qa-icon {
    color: #60A5FA;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
}

.theme-pink .qa-icon {
    color: #F472B6;
    filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.4));
}

/* Card Hover */
a.qa-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

a.qa-card:hover .qa-icon {
    transform: scale(1.15) translateY(-2px);
}

/* Theme Hover Glows */
a.qa-card.theme-orange:hover {
    border-color: rgba(245, 135, 50, 0.4);
}

a.qa-card.theme-teal:hover {
    border-color: rgba(20, 184, 166, 0.4);
}

a.qa-card.theme-blue:hover {
    border-color: rgba(96, 165, 250, 0.4);
}

a.qa-card.theme-pink:hover {
    border-color: rgba(244, 114, 182, 0.4);
}

/* Typography */
.qa-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.qa-desc {
    font-size: 13px;
    color: var(--slate);
    margin: 8px 0 0 0;
    line-height: 1.5;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation */
.qa-grid>*:nth-child(1) {
    animation-delay: 0.02s;
}

.qa-grid>*:nth-child(2) {
    animation-delay: 0.04s;
}

.qa-grid>*:nth-child(3) {
    animation-delay: 0.06s;
}

.qa-grid>*:nth-child(4) {
    animation-delay: 0.08s;
}

.qa-grid>*:nth-child(5) {
    animation-delay: 0.10s;
}

.qa-grid>*:nth-child(6) {
    animation-delay: 0.12s;
}

.qa-grid>*:nth-child(7) {
    animation-delay: 0.14s;
}

.qa-grid>*:nth-child(8) {
    animation-delay: 0.16s;
}

.qa-grid>*:nth-child(9) {
    animation-delay: 0.18s;
}

.qa-grid>*:nth-child(10) {
    animation-delay: 0.20s;
}

.qa-grid>*:nth-child(11) {
    animation-delay: 0.22s;
}

.qa-grid>*:nth-child(12) {
    animation-delay: 0.24s;
}

/* ── Notifications Section (Light Theme) ── */
/* Creating a striking contrast between the dark hero and the light notifications below */
.notifications-section {
    background-color: #ffffff;
    padding: 60px 40px;
}

.notifications-container {
    max-width: 1200px;
    margin: 0 auto;
}

.noti-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.noti-nav-arrows {
    position: absolute;
    right: 0;
    display: flex;
    gap: 10px;
}

.noti-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #cdd5e0;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(11, 31, 58, 0.08);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    line-height: 1;
}

.noti-arrow-btn:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

@media (max-width: 768px) {
    .noti-nav-arrows { display: none; }
}

.noti-section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--navy);
    margin: 0;
}

.noti-scroll-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 24px;
    padding-top: 4px;
    -webkit-overflow-scrolling: touch;
}

.noti-scroll-row::-webkit-scrollbar {
    height: 6px;
}

.noti-scroll-row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.noti-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(245, 135, 50, 0.5);
    border-radius: 10px;
}

.noti-scroll-row::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.noti-card {
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.noti-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.noti-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(11, 31, 58, 0.06);
}

.noti-card:hover::before {
    transform: scaleX(1);
}

.noti-card-empty {
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.noti-empty-icon {
    font-size: 32px;
    color: var(--slate-light);
    margin-bottom: 12px;
}

.noti-empty-text {
    color: var(--slate);
    text-align: center;
    margin: 0;
}

.noti-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F1F5F9;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 16px;
}

.noti-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-mid);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noti-card-desc {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.noti-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--slate-light);
    margin-bottom: 8px;
}

.noti-meta i {
    color: var(--accent);
    font-size: 14px;
}

.noti-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 16px 0;
}

.noti-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    transition: color 0.2s;
}

.noti-footer i {
    color: var(--accent);
    font-size: 16px;
    transition: transform 0.2s;
}

.noti-card:hover .noti-footer {
    color: var(--accent);
}

.noti-card:hover .noti-footer i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1199px) {
    .hero-content {
        padding: 20px 40px 40px;
    }
}

@media (max-width: 1024px) {
    .qa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-content {
        padding: 20px 20px 30px;
    }
}

@media (max-width: 768px) {
    header.dash-header .hero-content {
        padding: 20px 20px 30px;
    }

    .qa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .qa-card {
        min-height: 140px;
        padding: 24px 20px;
    }

    .qa-card-flip-container {
        min-height: 140px;
    }

    .notifications-section {
        padding: 40px 20px;
    }

    .noti-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 20px 20px 30px;
    }
}

@media (max-width: 480px) {
    .qa-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Locked card (3D Flip Animation) ── */
.qa-card-flip-container {
    perspective: 1200px;
    background: transparent;
    min-height: 160px;
    display: flex;
}

.qa-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.qa-card-flip-container:hover .qa-card-inner {
    transform: rotateY(180deg);
}

.qa-card-front,
.qa-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

/* Front Face */
.qa-card-front {
    /* Slightly muted so it reads as not fully available */
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.04);
}

.qa-card-front .qa-icon {
    filter: grayscale(100%) opacity(0.5);
    color: var(--slate);
}

.qa-card-front .qa-title {
    color: var(--slate);
}

.qa-card-front .qa-desc {
    color: var(--slate-light);
}

/* Back Face */
.qa-card-back {
    transform: rotateY(180deg);
    background: rgba(6, 17, 33, 0.85);
    /* Deep dark glass */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hover lift on the whole flip container */
.qa-card-flip-container:hover .qa-card-back {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.qa-lock-icon {
    font-size: 24px;
    color: #ffffff;
    margin: 0;
    transform: translateZ(20px);
    /* 3D pop out effect */
}

.qa-lock-text {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin: 8px 0;
    transform: translateZ(20px);
}

.qa-lock-btn {
    padding: 8px 20px;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--pill-radius);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    transform: translateZ(30px);
}

.qa-lock-btn:hover {
    background: #d9711f;
    color: #ffffff;
    transform: translateZ(30px) scale(1.05);
}