
/* =========================================
   ACADEMIA - MAIN STYLESHEET
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* 1. GLOBAL VARIABLES */

:root {
    --primary: #172B4D;
    --primary-dark: #102039;
    --primary-light: #EAF0F5;
    --accent: #477B6A;
    --accent-light: #E5F0EB;
    --background: #F5F7FA;
    --white: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #718096;
    --text-muted: #A0AAB8;
    --border: #E2E8F0;
    --shadow: 0 8px 30px rgba(23, 43, 77, 0.07);
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 20px;
}

/* 2. RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
}

button, input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

/* 3. LOGIN PAGE */

.page-container {
    min-height: 100vh;
    display: flex;
}

/* 4. LOGIN LEFT SECTION */

.left-section {
    width: 50%;
    min-height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 65px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.logo-name {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}

/* 5. LOGIN WELCOME */

.left-section .welcome-section {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

.left-section .welcome-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 9px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 25px;
}

.left-section .welcome-section h1 {
    font-size: 43px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.left-section .welcome-section h1 span {
    color: var(--primary);
}

.left-section .welcome-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 35px;
}

/* 6. LOGIN FORM */

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 54px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: 0 45px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: 0.25s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 43, 77, 0.09);
}

.input-wrapper input::placeholder {
    color: #A0AAB8;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #A0AAB8;
    font-size: 14px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 15px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* 7. FORGOT PASSWORD */

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -5px;
    margin-bottom: 25px;
}

.forgot-password {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    transition: 0.2s;
}

.forgot-password:hover {
    color: var(--accent);
}

/* 8. LOGIN BUTTON */

.login-button {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-medium);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 7px 18px rgba(23, 43, 77, 0.18);
    transition: 0.25s ease;
}

.login-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-message {
    min-height: 18px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* 9. REGISTER TEXT */

.register-text {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 13px;
}

.register-text a {
    color: var(--primary);
    font-weight: 600;
    margin-left: 3px;
}

.register-text a:hover {
    color: var(--accent);
}

/* 10. LOGIN FOOTER */

.left-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 11px;
}

/* 11. LOGIN RIGHT SECTION */

.right-section {
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(
        145deg,
        #172B4D 0%,
        #244B63 55%,
        #477B6A 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* 12. FAINT ACADEMIC DECORATIONS */

.right-section::before,
.right-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Soft academic glow */

.right-section::before {
    inset: 0;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(111, 183, 157, 0.16),
            transparent 38%
        );
}

/* Graduation caps and book illustrations */

.right-section::after {
    inset: 0;
    opacity: 0.10;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 150'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 42L90 15l70 27-70 27z'/%3E%3Cpath d='M48 53v27c25 19 59 19 84 0V53'/%3E%3Cpath d='M160 42v40'/%3E%3Ccircle cx='160' cy='85' r='4'/%3E%3Cpath d='M28 112c20-12 39-12 59 0v27c-20-12-39-12-59 0z'/%3E%3Cpath d='M87 112c20-12 39-12 59 0v27c-20-12-39-12-59 0z'/%3E%3Cpath d='M87 112v27'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 260px 220px;
    background-position: 25px 20px;
}

/* 13. DECORATIVE CIRCLES */

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    pointer-events: none;
    z-index: 1;
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -180px;
    right: -180px;
}

.circle-2 {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -120px;
}

.circle-3 {
    width: 220px;
    height: 220px;
    top: 40%;
    left: 10%;
}

/* 14. LOGIN RIGHT CONTENT */

.right-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* 15. STUDY CARD */

.study-card {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    padding: 25px;
    margin-bottom: 42px;
}

.study-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card-small-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.study-card-title {
    font-size: 16px;
    font-weight: 600;
}

.study-card-icon {
    width: 43px;
    height: 43px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.progress-information {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
}

.progress-information strong {
    font-weight: 700;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 72%;
    background: var(--white);
    border-radius: 20px;
}

.progress-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 12px;
}

/* 16. BRAND MESSAGE */

.brand-message {
    margin-bottom: 30px;
}

.brand-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.75;
    margin-bottom: 17px;
}

.brand-message h2 {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 17px;
}

.brand-message p {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.9;
    opacity: 0.85;
}

/* 17. FEATURES */

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
}

/* 18. LOGIN RESPONSIVE DESIGN */

@media (max-width: 1100px) {
    .left-section {
        padding: 35px;
    }

    .left-section .welcome-section h1 {
        font-size: 37px;
    }

    .right-section {
        padding: 35px;
    }

    .brand-message h2 {
        font-size: 32px;
    }
}

@media (max-width: 750px) {
    .page-container {
        flex-direction: column;
    }

    .left-section {
        width: 100%;
        min-height: 100vh;
        padding: 25px;
    }

    .left-section .welcome-section {
        margin-top: 65px;
        margin-bottom: 65px;
    }

    .left-section .welcome-section h1 {
        font-size: 36px;
    }

    .right-section {
        display: none;
    }

    .left-footer {
        justify-content: center;
        text-align: center;
    }

    .left-footer span:last-child {
        display: none;
    }
}

@media (max-width: 380px) {
    .left-section {
        padding: 20px;
    }

    .left-section .welcome-section h1 {
        font-size: 32px;
    }

    .left-section .welcome-description {
        font-size: 13px;
    }
}

/* 19. DASHBOARD LAYOUT */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--background);
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo h2 {
    font-size: 21px;
    color: var(--text-primary);
    font-weight: 800;
}

.menu-heading {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 15px 10px;
}

.account-heading {
    margin-top: 35px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    margin-bottom: 7px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-item:hover,
.menu-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-bottom {
    margin-top: auto;
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    border: none;
    background: transparent;
    color: #DC2626;
    font-size: 14px;
    border-radius: 10px;
}

.logout-button:hover {
    background: #FFF1F1;
}

/* 20. DASHBOARD MAIN CONTENT */

.dashboard-main {
    flex: 1;
    padding: 35px 45px;
    min-width: 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.dashboard-header .header-date {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.dashboard-header h1 {
    font-size: 27px;
    color: var(--text-primary);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 13px;
}

.notification-icon,
.profile-avatar {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.profile-avatar {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
}

.profile-details h4 {
    font-size: 13px;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.profile-details p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 21. DASHBOARD WELCOME BANNER */

.dashboard-main .welcome-section {
    background: linear-gradient(120deg, #172B4D, #244B63);
    border-radius: 18px;
    padding: 35px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
    width: 100%;
    max-width: none;
}

.dashboard-main .welcome-section .welcome-label {
    color: #DCE8E5;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 8px;
}

.dashboard-main .welcome-section h2 {
    font-size: 25px;
    margin-bottom: 10px;
}

.dashboard-main .welcome-section p {
    font-size: 13px;
    color: #E8EFF2;
}

.welcome-icon {
    font-size: 65px;
    opacity: 0.25;
    padding-right: 20px;
}

/* 22. DASHBOARD SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* 23. OVERVIEW CARDS */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.overview-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 22px;
    transition: 0.2s ease;
}

.overview-card:hover,
.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 43, 77, 0.07);
}

.overview-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.overview-icon.purple {
    background: #EAF0F5;
    color: #244B63;
}

.overview-icon.blue {
    background: #E7EEF5;
    color: #315D7B;
}

.overview-icon.green {
    background: var(--accent-light);
    color: var(--accent);
}

.overview-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.overview-card h3 {
    font-size: 27px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.overview-card span {
    font-size: 11px;
    color: var(--text-muted);
}

/* 24. QUICK ACCESS */

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.quick-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 24px;
    transition: 0.2s ease;
}

.quick-card > i {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 18px;
}

.quick-card h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 9px;
}

.quick-card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
    min-height: 42px;
    margin-bottom: 18px;
}

.quick-card a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.quick-card a i {
    margin-left: 5px;
}

/* 25. DASHBOARD RESPONSIVE DESIGN */

@media (max-width: 1000px) {
    .dashboard-main {
        padding: 30px 25px;
    }

    .overview-grid,
    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 18px;
    }

    .sidebar-logo {
        margin-bottom: 20px;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .menu-heading,
    .account-heading,
    .sidebar-bottom {
        display: none;
    }

    .menu-item {
        white-space: nowrap;
        margin-bottom: 0;
    }

    .dashboard-main {
        padding: 25px 18px;
    }

    .dashboard-header {
        gap: 15px;
    }

    .profile-details {
        display: none;
    }

    .dashboard-main .welcome-section {
        padding: 25px;
    }

    .dashboard-main .welcome-section h2 {
        font-size: 20px;
    }

    .welcome-icon {
        display: none;
    }

    .overview-grid,
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}


/* =================================
   ACADEMIA REGISTRATION PAGE
================================= */

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--background);
    overflow: hidden;
}

.auth-container .left-section {
    width: 50%;
    min-height: 100vh;
    padding: 55px 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.auth-container .brand {
    margin-bottom: 45px;
}

.auth-container .brand h2 {
    color: var(--primary);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-container .welcome-section {
    margin-bottom: 30px;
}

.auth-container .welcome-section h1 {
    color: var(--text-primary);
    font-size: 34px;
    font-weight: 750;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.auth-container .welcome-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.auth-container #registerForm {
    width: 100%;
    max-width: 430px;
}

.auth-container .input-group {
    margin-bottom: 19px;
}

.auth-container .input-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.auth-container .input-group input {
    width: 100%;
    height: 51px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #FAFBFC;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.25s ease;
}

.auth-container .input-group input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(71, 123, 106, 0.10);
}

.auth-container .input-group input::placeholder {
    color: var(--text-muted);
}

.auth-container #registerMessage {
    min-height: 20px;
    margin: 8px 0 12px;
    font-size: 13px;
}

.auth-container #registerButton {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 9px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: 0.25s ease;
}

.auth-container #registerButton:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-container #registerButton:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.auth-container .register-link {
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-container .register-link a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-container .register-link a:hover {
    text-decoration: underline;
}

/* RIGHT PANEL */

.auth-container .right-section {
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px;
    background: linear-gradient(
        145deg,
        #102039 0%,
        #172B4D 55%,
        #315E59 100%
    );
}

.auth-container .right-section::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    top: -130px;
    right: -100px;
}

.auth-container .right-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    bottom: -150px;
    left: -100px;
}

.auth-container .right-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    color: white;
}

.auth-container .right-content h1 {
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.auth-container .right-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.9;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 900px) {
    .auth-container .left-section {
        width: 60%;
        padding: 45px 6%;
    }

    .auth-container .right-section {
        width: 40%;
        padding: 35px;
    }

    .auth-container .right-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 650px) {
    .auth-container {
        display: block;
    }

    .auth-container .left-section {
        width: 100%;
        padding: 35px 25px;
        min-height: 100vh;
    }

    .auth-container .right-section {
        display: none;
    }

    .auth-container .welcome-section h1 {
        font-size: 29px;
    }
}



/* =========================
   ACADEMIA STUDY PAGE
========================= */

.study-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 24px 70px;
    color: var(--text-primary, #1E293B);
}

.study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 65px;
}

.study-back {
    text-decoration: none;
    color: var(--text-secondary, #718096);
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.study-back:hover {
    color: var(--primary, #172B4D);
}

.study-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
}

.study-brand-icon {
    background: var(--primary, #172B4D);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-intro {
    max-width: 700px;
    margin-bottom: 55px;
}

.study-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent, #477B6A);
}

.study-intro h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 15px 0;
    letter-spacing: -1.5px;
}

.study-intro p,
.study-description {
    color: var(--text-secondary, #718096);
    line-height: 1.7;
    font-size: 15px;
}

.study-section {
    margin-bottom: 45px;
}

.study-section h2 {
    font-size: 23px;
    margin-bottom: 10px;
}

.level-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.level-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 28px;
    min-height: 210px;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 18px;
    background: white;
    cursor: pointer;
    transition: 0.2s ease;
    color: var(--text-primary, #1E293B);
}

.level-card:hover {
    border-color: var(--accent, #477B6A);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(23, 43, 77, 0.08);
}

.level-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-light, #EAF0F5);
    color: var(--primary, #172B4D);
    font-size: 20px;
    margin-bottom: 22px;
}

.level-title {
    font-size: 19px;
    font-weight: 700;
}

.level-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary, #718096);
}

.level-arrow {
    position: absolute;
    right: 25px;
    bottom: 28px;
    color: var(--accent, #477B6A);
}

.study-filters {
    background: white;
    border: 1px solid var(--border, #E2E8F0);
    padding: 28px;
    border-radius: 18px;
}

.study-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.study-filter {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.study-filter label {
    font-size: 14px;
    font-weight: 600;
}

.study-filter select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 10px;
    background: #fff;
    color: var(--text-primary, #1E293B);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.study-filter select:focus {
    border-color: var(--accent, #477B6A);
    box-shadow: 0 0 0 3px rgba(71, 123, 106, 0.1);
}

.study-reset {
    margin-top: 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary, #718096);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.study-reset:hover {
    color: var(--primary, #172B4D);
}

.resources-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.resource-card {
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 16px;
    background: white;
    padding: 24px;
}

.resource-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light, #E5F0EB);
    color: var(--accent, #477B6A);
    font-size: 18px;
}

.resource-card h3 {
    font-size: 17px;
    margin: 18px 0 8px;
}

.resource-card p {
    color: var(--text-secondary, #718096);
    font-size: 14px;
    line-height: 1.6;
}

.resource-open-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 12px 15px;
    background: var(--primary-light, #EAF0F5);
    border: none;
    border-radius: 9px;
    color: var(--primary, #172B4D);
    font-weight: 600;
    font-family: inherit;
    font-size: 13px;
}

.resource-open-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.empty-resources {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed var(--border, #E2E8F0);
    border-radius: 16px;
    color: var(--text-secondary, #718096);
}

.empty-resources > i {
    font-size: 35px;
    margin-bottom: 15px;
}

[hidden] {
    display: none !important;
}

/* MOBILE */

@media (max-width: 650px) {

    .study-page {
        padding: 22px 17px 50px;
    }

    .study-header {
        margin-bottom: 45px;
    }

    .study-intro {
        margin-bottom: 40px;
    }

    .level-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .level-card {
        min-height: 175px;
        padding: 22px;
    }

    .study-filters {
        padding: 20px;
    }

    .study-filter-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   DASHBOARD FIX - MATCH CURRENT HTML
========================================= */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--background);
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 45px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.sidebar-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 15px 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 12px;
    border: none;
    background: transparent;
    color: #DC2626;
    font-size: 14px;
    border-radius: 10px;
}

.logout-button:hover {
    background: #FFF1F1;
}

/* MAIN CONTENT */

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 35px 45px;
}

/* TOPBAR */

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    gap: 20px;
}

.topbar-left h1 {
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-left p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 7px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-button {
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.notification-button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info span:first-child {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.user-info span:last-child {
    color: var(--text-secondary);
    font-size: 11px;
}

/* WELCOME BANNER */

.welcome-banner {
    width: 100%;
    background: linear-gradient(120deg, #172B4D, #244B63, #477B6A);
    border-radius: 18px;
    padding: 35px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
    overflow: hidden;
    position: relative;
}

.welcome-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.welcome-text > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #C9DDD6;
}

.welcome-text h2 {
    font-size: 27px;
    font-weight: 700;
    margin: 12px 0;
    line-height: 1.3;
}

.welcome-text p {
    font-size: 13px;
    line-height: 1.8;
    color: #E5EDF0;
    max-width: 500px;
    margin-bottom: 23px;
}

.welcome-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--primary);
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.welcome-button:hover {
    transform: translateY(-2px);
    background: #EAF0F5;
}

.welcome-decoration {
    font-size: 85px;
    color: white;
    opacity: 0.14;
    padding: 0 25px;
}

/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* STATISTICS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 23px;
    transition: 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 17px;
}

.stat-icon.navy {
    background: #EAF0F5;
    color: #244B63;
}

.stat-icon.green {
    background: var(--accent-light);
    color: var(--accent);
}

.stat-icon.gold {
    background: #FFF4DB;
    color: #B8860B;
}

.stat-card h3 {
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* QUICK ACCESS */

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.quick-card {
    display: block;
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 24px;
    transition: 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #CBD5E1;
}

.quick-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 19px;
    margin-bottom: 18px;
}

.quick-card h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.quick-card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.quick-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

/* STUDY PROGRESS */

.progress-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 35px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.progress-header h2 {
    font-size: 18px;
    color: var(--text-primary);
}

.progress-header a {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.progress-empty {
    text-align: center;
    padding: 35px 20px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #FAFBFC;
}

.progress-empty > i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
}

.progress-empty h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 9px;
}

.progress-empty p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 400px;
    margin: auto;
}

/* FOOTER */

.dashboard-footer {
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    border-top: 1px solid var(--border);
}

/* DASHBOARD RESPONSIVE */

@media (max-width: 1050px) {
    .dashboard-main {
        padding: 30px 25px;
    }

    .stats-grid,
    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 18px;
    }

    .sidebar-brand {
        margin-bottom: 20px;
    }

    .sidebar-label,
    .sidebar-bottom {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 5px;
    }

    .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 11px 13px;
    }

    .dashboard-main {
        padding: 25px 18px;
    }

    .user-info {
        display: none;
    }

    .welcome-banner {
        padding: 25px;
    }

    .welcome-text h2 {
        font-size: 22px;
    }

    .welcome-decoration {
        display: none;
    }

    .stats-grid,
    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .progress-section {
        padding: 18px;
    }
}

@media (max-width: 450px) {
    .dashboard-topbar {
        align-items: flex-start;
    }

    .topbar-left h1 {
        font-size: 23px;
    }

    .welcome-banner {
        padding: 22px;
    }

    .welcome-text h2 {
        font-size: 20px;
    }

    .progress-header {
        align-items: flex-start;
    }
}


/* =========================================
   MY LIBRARY
========================================= */

.library-page {
    background: #f5f7fa;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.library-layout {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.library-sidebar {
    width: 250px;
    min-width: 250px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
}

.library-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #172b4d;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 40px;
}

.library-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #172b4d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.library-sidebar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #94a3b8;
    margin: 0 0 14px 10px;
}

.library-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.library-nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.library-nav-link i {
    width: 20px;
    text-align: center;
}

.library-nav-link:hover {
    background: #f1f5f9;
    color: #172b4d;
}

.library-nav-link.active {
    background: #eaf0f5;
    color: #172b4d;
    font-weight: 700;
}

.library-sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
}

.library-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: transparent;
    padding: 13px;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    border-radius: 10px;
}

.library-logout:hover {
    background: #fff1f2;
    color: #dc2626;
}


/* MAIN */

.library-main {
    flex: 1;
    padding: 45px;
    min-width: 0;
}

.library-header h1 {
    font-size: 32px;
    margin: 8px 0;
    font-weight: 800;
    color: #172b4d;
}

.library-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #477b6a;
    margin: 0;
}

.library-subtitle {
    color: #718096;
    font-size: 14px;
    margin: 0;
}


/* SUMMARY */

.library-summary {
    margin-top: 30px;
}

.library-summary-card {
    display: flex;
    align-items: center;
    gap: 17px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 22px;
    border-radius: 16px;
    max-width: 320px;
}

.library-summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eaf0f5;
    color: #172b4d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.library-summary-card p {
    font-size: 13px;
    color: #718096;
    margin: 0 0 5px;
}

.library-summary-card h2 {
    font-size: 25px;
    color: #172b4d;
    margin: 0;
}


/* SEARCH AND FILTER */

.library-controls {
    margin: 35px 0 25px;
    display: flex;
    gap: 15px;
}

.library-search {
    flex: 1;
    position: relative;
}

.library-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.library-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
}

.library-search input:focus {
    border-color: #477b6a;
    box-shadow: 0 0 0 3px rgba(71, 123, 106, 0.1);
}

.library-controls select {
    min-width: 180px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    outline: none;
}


/* RESOURCE GRID */

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.library-resource-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.library-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.library-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.library-resource-icon {
    width: 45px;
    height: 45px;
    background: #eaf0f5;
    color: #172b4d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.library-type-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.library-resource-title {
    color: #172b4d;
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.library-resource-subject {
    color: #477b6a;
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 7px;
}

.library-resource-topic {
    color: #64748b;
    font-size: 12px;
    margin: 0 0 12px;
}

.library-resource-description {
    color: #718096;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.library-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.library-open-button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 11px;
    background: #172b4d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
}

.library-open-button:hover {
    background: #102039;
}

.library-remove-button {
    width: 40px;
    height: 40px;
    border: 1px solid #fee2e2;
    background: #fff1f2;
    color: #dc2626;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.2s;
}

.library-remove-button:hover {
    background: #fee2e2;
}


/* EMPTY STATES */

.library-empty {
    text-align: center;
    padding: 70px 20px;
}

.library-empty-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    background: #eaf0f5;
    color: #172b4d;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.library-empty h3 {
    color: #172b4d;
    font-size: 20px;
    margin: 0 0 10px;
}

.library-empty p {
    color: #718096;
    font-size: 14px;
    margin: 0 0 25px;
}

.library-browse-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: #172b4d;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.library-browse-button:hover {
    background: #102039;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 750px) {

    .library-layout {
        flex-direction: column;
    }

    .library-sidebar {
        width: auto;
        min-width: 0;
        padding: 18px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .library-brand {
        margin-bottom: 20px;
    }

    .library-sidebar-label {
        display: none;
    }

    .library-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .library-nav-link {
        padding: 10px;
        white-space: nowrap;
    }

    .library-sidebar-bottom {
        display: none;
    }

    .library-main {
        padding: 25px 18px;
    }

    .library-header h1 {
        font-size: 27px;
    }

    .library-controls {
        flex-direction: column;
    }

    .library-controls select {
        width: 100%;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

}
/* =====================================
   ACADEMIA DARK MODE
===================================== */

html[data-theme="dark"] {
    --primary: #e4e4e7;
    --primary-dark: #f4f4f5;
    --primary-light: #27272a;

    --background: #09090b;
    --white: #18181b;

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border: #303036;

    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}


/* Main page */
html[data-theme="dark"] body {
    background: var(--background) !important;
    color: var(--text-primary) !important;
}


/* Common page containers and cards */
html[data-theme="dark"] .card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .resource-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .study-card,
html[data-theme="dark"] .library-card {
    background: #18181b !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
    box-shadow: var(--shadow);
}


/* Headers and navigation */
html[data-theme="dark"] header,
html[data-theme="dark"] .header,
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .sidebar {
    background: #111114 !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}


/* Text */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] p,
html[data-theme="dark"] label,
html[data-theme="dark"] span,
html[data-theme="dark"] .section-title {
    color: var(--text-primary);
}


/* Secondary text */
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .description,
html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .muted,
html[data-theme="dark"] small {
    color: var(--text-secondary) !important;
}


/* Inputs and dropdowns */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #202024 !important;
    color: #f4f4f5 !important;
    border-color: #3f3f46 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #8b8b95 !important;
}


/* Buttons */
html[data-theme="dark"] button,
html[data-theme="dark"] .btn {
    border-color: var(--border);
}


/* Links and selected items */
html[data-theme="dark"] a {
    color: var(--selected-accent, #a78bfa);
}

html[data-theme="dark"] .selected,
html[data-theme="dark"] .active {
    border-color: var(--selected-accent, #a78bfa) !important;
}


/* Dividers */
html[data-theme="dark"] hr,
html[data-theme="dark"] .divider {
    border-color: var(--border) !important;
}


/* Tables and lists */
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    background: #18181b;
    color: var(--text-primary);
    border-color: var(--border);
}


/* Appearance settings page */
html[data-theme="dark"] .settings-container,
html[data-theme="dark"] .appearance-container {
    background: var(--background) !important;
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .theme-option,
html[data-theme="dark"] .colour-option {
    background: #202024 !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}


/* FIX: DASHBOARD QUICK ACCESS CARDS */

html[data-theme="dark"] .quick-card {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .quick-card h3,
html[data-theme="dark"] .quick-card p,
html[data-theme="dark"] .quick-card span {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .quick-card p {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .quick-card-link {
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .quick-icon {
    background: #27272a !important;
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .quick-icon i {
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .quick-card:hover {
    background: #202024 !important;
    border-color: var(--selected-accent, #a78bfa) !important;
}
/* FIX: DASHBOARD STUDY PROGRESS */

html[data-theme="dark"] .progress-section {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
}

html[data-theme="dark"] .progress-header h2 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .progress-header a {
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .progress-empty {
    background: #18181b !important;
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .progress-empty h3 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .progress-empty p {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .progress-empty > i {
    color: var(--selected-accent, #a78bfa) !important;
}


/* =====================================
   ACADEMIA STUDY PAGE - DARK MODE
===================================== */

/* Main Study page */
html[data-theme="dark"] .study-page {
    background: #09090b !important;
    color: #f4f4f5 !important;
}

/* Header */
html[data-theme="dark"] .study-header {
    background: #09090b !important;
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .study-brand,
html[data-theme="dark"] .study-back {
    color: #f4f4f5 !important;
}

/* Intro and section headings */
html[data-theme="dark"] .study-intro h1,
html[data-theme="dark"] .study-section h2,
html[data-theme="dark"] .resources-heading h2 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .study-intro p,
html[data-theme="dark"] .study-description {
    color: #a1a1aa !important;
}

/* Education level cards */
html[data-theme="dark"] .level-card {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
}

html[data-theme="dark"] .level-title {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .level-subtitle {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .level-icon {
    background: #27272a !important;
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .level-icon i,
html[data-theme="dark"] .level-arrow {
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .level-card:hover {
    background: #202024 !important;
    border-color: var(--selected-accent, #a78bfa) !important;
}

/* Filter panel */
html[data-theme="dark"] .study-filters {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
}

/* Filter labels */
html[data-theme="dark"] .study-filter label {
    color: #e4e4e7 !important;
}

/* Dropdowns */
html[data-theme="dark"] .study-filter select {
    background: #27272a !important;
    color: #f4f4f5 !important;
    border: 1px solid #3f3f46 !important;
}

/* Reset button */
html[data-theme="dark"] .study-reset {
    color: var(--selected-accent, #a78bfa) !important;
}

/* Resource cards */
html[data-theme="dark"] .resource-grid .resource-card {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
}

/* Empty resources */
html[data-theme="dark"] .empty-resources {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
}

html[data-theme="dark"] .empty-resources h3 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .empty-resources p {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .empty-resources i {
    color: var(--selected-accent, #a78bfa) !important;
}



/* =====================================
   ACADEMIA MY LIBRARY - DARK MODE
===================================== */

/* Main page */
html[data-theme="dark"] body.library-page {
    background: #09090b !important;
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .library-layout,
html[data-theme="dark"] .library-main {
    background: #09090b !important;
    color: #f4f4f5 !important;
}

/* Sidebar */
html[data-theme="dark"] .library-sidebar {
    background: #111114 !important;
    border-color: #303036 !important;
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .library-brand,
html[data-theme="dark"] .library-nav-link,
html[data-theme="dark"] .library-logout {
    color: #e4e4e7 !important;
}

html[data-theme="dark"] .library-nav-link:hover,
html[data-theme="dark"] .library-nav-link.active {
    background: #27272a !important;
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .library-sidebar-label {
    color: #71717a !important;
}

/* Header */
html[data-theme="dark"] .library-header h1,
html[data-theme="dark"] .library-eyebrow {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .library-subtitle {
    color: #a1a1aa !important;
}

/* Summary card */
html[data-theme="dark"] .library-summary-card {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
}

html[data-theme="dark"] .library-summary-card p {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .library-summary-card h2 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .library-summary-icon {
    background: #27272a !important;
    color: var(--selected-accent, #a78bfa) !important;
}

/* Search and filter */
html[data-theme="dark"] .library-controls {
    background: transparent !important;
}

html[data-theme="dark"] .library-search {
    background: #18181b !important;
    border: 1px solid #303036 !important;
}

html[data-theme="dark"] .library-search i {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .library-search input,
html[data-theme="dark"] #libraryFilter {
    background: #202024 !important;
    color: #f4f4f5 !important;
    border: 1px solid #3f3f46 !important;
}

/* Resource cards */
html[data-theme="dark"] .library-grid > *,
html[data-theme="dark"] .library-resource-card {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border-color: #303036 !important;
}

html[data-theme="dark"] .library-grid h3,
html[data-theme="dark"] .library-grid h4,
html[data-theme="dark"] .library-grid p,
html[data-theme="dark"] .library-grid span {
    color: #f4f4f5 !important;
}

/* Empty library and search results */
html[data-theme="dark"] .library-empty {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #303036 !important;
}

html[data-theme="dark"] .library-empty h3 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .library-empty p {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .library-empty-icon {
    background: #27272a !important;
    color: var(--selected-accent, #a78bfa) !important;
}

/* Browse button */
html[data-theme="dark"] .library-browse-button {
    background: var(--selected-accent, #8b5cf6) !important;
    color: #ffffff !important;
}





/* =====================================
   ACADEMIA SETTINGS - DARK MODE
===================================== */

html[data-theme="dark"] body.settings-page {
    background: #09090b !important;
    color: #f4f4f5 !important;
}

/* Sidebar */
html[data-theme="dark"] .settings-page .sidebar {
    background: #111114 !important;
    border-color: #303036 !important;
}

html[data-theme="dark"] .settings-page .logo {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .settings-page .nav-link {
    color: #a1a1aa !important;
}

html[data-theme="dark"] .settings-page .nav-link:hover,
html[data-theme="dark"] .settings-page .nav-link.active {
    background: #27272a !important;
    color: var(--selected-accent, #a78bfa) !important;
}

/* Main content */
html[data-theme="dark"] .settings-page .main {
    background: #09090b !important;
}

html[data-theme="dark"] .settings-page .page-heading h1,
html[data-theme="dark"] .settings-page .section-heading h2 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .settings-page .page-heading p,
html[data-theme="dark"] .settings-page .section-heading p {
    color: #a1a1aa !important;
}

/* Introduction banner */
html[data-theme="dark"] .settings-page .settings-intro {
    background: linear-gradient(110deg, #18181b, #252535) !important;
    border: 1px solid #303036 !important;
}

html[data-theme="dark"] .settings-page .settings-intro h2 {
    color: #ffffff !important;
}

html[data-theme="dark"] .settings-page .settings-intro p {
    color: #d4d4d8 !important;
}

/* Settings cards */
html[data-theme="dark"] .settings-page .setting-card {
    background: #18181b !important;
    border-color: #303036 !important;
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .settings-page .setting-card:hover {
    background: #202024 !important;
    border-color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .settings-page .setting-info h3 {
    color: #f4f4f5 !important;
}

html[data-theme="dark"] .settings-page .setting-info p {
    color: #a1a1aa !important;
}

/* Setting icons */
html[data-theme="dark"] .settings-page .setting-icon {
    background: #27272a !important;
    color: var(--selected-accent, #a78bfa) !important;
}

html[data-theme="dark"] .settings-page .arrow {
    color: #a1a1aa !important;
}

/* Footer */
html[data-theme="dark"] .settings-page .footer {
    color: #71717a !important;
}

/* =========================================
   ACADEMIA PDF VIEWER
========================================= */

.pdf-viewer-section {
    margin-top: 35px;
    padding: 22px;
    background: var(--card-bg, #141414);
    border: 1px solid var(--border-color, #292929);
    border-radius: 16px;
}

.pdf-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.pdf-viewer-header h2 {
    margin-top: 8px;
}

.pdf-close-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.pdf-viewer-frame {
    display: block;
    width: 100%;
    height: 750px;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 600px) {
    .pdf-viewer-section {
        padding: 12px;
    }

    .pdf-viewer-frame {
        height: 600px;
    }

    .pdf-viewer-header {
        align-items: flex-start;
    }
}

/* FIX PDF VIEWER TEXT VISIBILITY */

.pdf-viewer-header,
.pdf-viewer-header h2,
.pdf-viewer-header .study-eyebrow {
    color: #ffffff !important;
}

.pdf-close-button {
    color: #ffffff !important;
    background: #242424 !important;
    border: 1px solid #555555 !important;
}

.pdf-close-button i {
    color: #ffffff !important;
}

.pdf-close-button:hover {
    background: #383838 !important;
    color: #ffffff !important;
}

/* =========================================
   RESOURCE LIBRARY BOOKMARK
========================================= */

.resource-library-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: #ffffff;

    border: 1px solid #444444;
    border-radius: 9px;

    cursor: pointer;
    transition: 0.2s ease;
}

.resource-library-button i {
    font-size: 17px;
}

.resource-library-button:hover {
    background: #292929;
    border-color: #888888;
}

.resource-library-button.saved {
    color: #ffffff;
    background: #292929;
    border-color: #ffffff;
}

.resource-library-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resource-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =====================================
   ACADEMIA LIBRARY RESOURCE CARDS
   THEME-AWARE DESIGN
===================================== */

/* DARK THEME */

:root[data-theme="dark"] {
    --library-card-bg: #141414;
    --library-card-hover: #191919;
    --library-card-border: #292929;
    --library-card-hover-border: #505050;
    --library-card-text: #ffffff;
    --library-card-secondary: #c5c5c5;
    --library-card-muted: #888888;
    --library-card-icon-bg: #242424;
    --library-card-icon-border: #333333;
    --library-card-button-bg: #252525;
    --library-card-button-border: #444444;
}

/* LIGHT THEME */

:root[data-theme="light"] {
    --library-card-bg: #ffffff;
    --library-card-hover: #f8f8f8;
    --library-card-border: #e5e7eb;
    --library-card-hover-border: #c5c5c5;
    --library-card-text: #171717;
    --library-card-secondary: #404040;
    --library-card-muted: #737373;
    --library-card-icon-bg: #f3f4f6;
    --library-card-icon-border: #e5e7eb;
    --library-card-button-bg: #f3f4f6;
    --library-card-button-border: #d4d4d4;
}

/* RESOURCE CARD */

.library-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--library-card-bg);
    border: 1px solid var(--library-card-border);
    border-radius: 16px;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease;
}

.library-card:hover {
    background: var(--library-card-hover);
    border-color: var(--library-card-hover-border);
    transform: translateY(-3px);
}

/* ICON */

.library-card-icon {
    width: 52px;
    min-width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--library-card-icon-bg);
    border: 1px solid var(--library-card-icon-border);
    border-radius: 13px;
    color: var(--library-card-text);
    font-size: 21px;
}

/* CARD CONTENT */

.library-card-content {
    flex: 1;
    min-width: 0;
}

.library-resource-type {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: var(--library-card-icon-bg);
    border: 1px solid var(--library-card-border);
    border-radius: 6px;
    color: var(--library-card-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.library-resource-title {
    margin: 0 0 9px;
    color: var(--library-card-text);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.library-resource-subject {
    margin: 0 0 8px;
    color: var(--library-card-secondary);
    font-size: 14px;
    font-weight: 500;
}

.library-resource-topic {
    margin: 0 0 8px;
    color: var(--library-card-secondary);
    font-size: 13px;
}

.library-resource-description {
    margin: 0 0 13px;
    color: var(--library-card-muted);
    font-size: 13px;
    line-height: 1.6;
}

.library-resource-details {
    margin: 0 0 8px;
    color: var(--library-card-muted);
    font-size: 12px;
}

.library-resource-filename {
    margin: 0 0 18px;
    color: var(--library-card-muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

/* BUTTONS */

.library-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.library-card-actions button {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.library-open-button {
    background: var(--accent, #8b5cf6);
    color: #ffffff;
    border: 1px solid var(--accent, #8b5cf6);
}

.library-open-button:hover {
    filter: brightness(1.1);
}

.library-remove-button {
    background: transparent;
    color: var(--library-card-secondary);
    border: 1px solid var(--library-card-button-border);
}

.library-remove-button:hover {
    background: var(--library-card-button-bg);
    border-color: #d65b5b;
    color: #d65b5b;
}

.library-card-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* LOADING AND ERROR */

.library-loading,
.library-error {
    padding: 30px;
    color: var(--library-card-secondary);
    text-align: center;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .library-card {
        gap: 14px;
        padding: 17px;
    }

    .library-card-icon {
        width: 43px;
        min-width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .library-resource-title {
        font-size: 16px;
    }

    .library-card-actions {
        width: 100%;
    }

    .library-card-actions button {
        flex: 1;
        padding: 0 10px;
    }
}

/* =====================================
   ACADEMIA NOTIFICATION SYSTEM
===================================== */

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-button {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color, #303030);
    border-radius: 12px;
    background: var(--card-background, #171717);
    color: var(--text-color, #ffffff);
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.notification-button:hover {
    background: #292929;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--background-color, #080808);
    border-radius: 20px;
    background: #e5484d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.notification-badge[hidden],
.notification-panel[hidden] {
    display: none !important;
}

.notification-panel {
    position: absolute;
    top: 55px;
    right: 0;
    width: 370px;
    max-width: calc(100vw - 30px);
    max-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    background: var(--card-background, #151515);
    border: 1px solid var(--border-color, #303030);
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    color: var(--text-color, #ffffff);
}

.notification-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid var(--border-color, #303030);
}

.notification-panel-header h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.notification-panel-header p {
    margin: 0;
    font-size: 12px;
    color: var(--muted-text, #999999);
}

#closeNotificationPanel {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

#closeNotificationPanel:hover {
    background: #303030;
}

.notification-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color, #303030);
}

.notification-actions button {
    border: none;
    background: transparent;
    color: var(--muted-text, #aaaaaa);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.notification-actions button:hover {
    color: var(--text-color, #ffffff);
}

#deleteAllNotifications:hover {
    color: #ff6666;
}

.notification-list {
    overflow-y: auto;
    min-height: 150px;
}

.notification-empty {
    padding: 35px 20px;
    text-align: center;
}

.notification-empty > i {
    font-size: 28px;
    color: #777777;
    margin-bottom: 12px;
}

.notification-empty h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.notification-empty p {
    margin: 0;
    color: var(--muted-text, #999999);
    font-size: 12px;
    line-height: 1.6;
}

/* INDIVIDUAL NOTIFICATION */

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color, #303030);
}

.notification-item.unread {
    background: rgba(255, 255, 255, 0.035);
}

.notification-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #242424;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-content h4 {
    margin: 0 0 5px;
    font-size: 13px;
}

.notification-item-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted-text, #aaaaaa);
}

.notification-item-content small {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    color: var(--muted-text, #777777);
}

.notification-delete-button {
    border: none;
    background: transparent;
    color: #888888;
    cursor: pointer;
    padding: 5px;
}

.notification-delete-button:hover {
    color: #ff6666;
}

@media (max-width: 600px) {
    .notification-panel {
        position: fixed;
        top: 75px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: none;
    }
}


/* =========================================
   DELETE CONFIRMATION POPUP
========================================= */

.delete-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.delete-confirm-modal {
    width: 100%;
    max-width: 390px;
    padding: 30px 26px;
    text-align: center;
    background: #151515;
    border: 1px solid #303030;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: deletePopupIn 0.2s ease;
}

.delete-confirm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6565;
    background: rgba(255, 75, 75, 0.12);
    border-radius: 50%;
    font-size: 23px;
}

.delete-confirm-modal h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.delete-confirm-modal p {
    margin: 0;
    color: #a5a5a5;
    font-size: 14px;
    line-height: 1.6;
}

.delete-confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.delete-confirm-actions button {
    flex: 1;
    min-height: 44px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.delete-cancel-button {
    color: #ffffff;
    background: #252525;
    border: 1px solid #3a3a3a;
}

.delete-cancel-button:hover {
    background: #333333;
}

.delete-confirm-button {
    color: #ffffff;
    background: #d93636;
    border: 1px solid #d93636;
}

.delete-confirm-button:hover {
    background: #b92525;
}

@keyframes deletePopupIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
