/* =========================================
   EXAMGENIUS STUDENT DASHBOARD
   LARGE / PROFESSIONAL VERSION
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;

    width: 285px;
    height: 100vh;

    background: #ffffff;
    border-right: 1px solid #e5e7eb;

    z-index: 100;

    overflow-y: auto;
}


/* LOGO */

.logo {
    height: 90px;

    display: flex;
    align-items: center;

    padding: 0 28px;

    gap: 13px;

    border-bottom: 1px solid #eef0f4;
}

.logo img {
    width: 45px;
    height: 45px;

    object-fit: contain;
}

.logo h2 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo h2 span {
    color: #2563eb;
}


/* NAVIGATION */

.sidebar nav {
    padding: 25px 17px;
}

.nav-title {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.2px;

    color: #94a3b8;

    padding: 0 13px;

    margin: 18px 0 10px;
}

.nav-link {
    display: flex;
    align-items: center;

    gap: 15px;

    min-height: 48px;

    padding: 12px 14px;

    margin-bottom: 5px;

    border-radius: 9px;

    color: #64748b;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.nav-link i {
    width: 22px;

    text-align: center;

    font-size: 16px;
}

.nav-link:hover {
    color: #2563eb;
    background: #eff6ff;
}

.nav-link.active {
    color: #ffffff;
    background: #2563eb;

    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.18);
}

.nav-link.logout {
    margin-top: 15px;

    color: #ef4444;
}

.nav-link.logout:hover {
    background: #fef2f2;
}


/* =========================================
   MAIN AREA
========================================= */

.main {
    margin-left: 285px;

    min-height: 100vh;

    width: calc(100% - 285px);
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    height: 90px;

    padding: 0 40px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 {
    font-size: 25px;

    margin-bottom: 6px;

    font-weight: 750;
}

.topbar p {
    font-size: 13px;

    color: #94a3b8;
}

.top-actions {
    display: flex;
    align-items: center;

    gap: 25px;
}


/* NOTIFICATION */

.notification {
    width: 46px;
    height: 46px;

    border-radius: 10px;

    background: #f8fafc;

    color: #64748b;

    position: relative;

    font-size: 17px;

    transition: .2s;
}

.notification:hover {
    background: #eff6ff;
    color: #2563eb;
}

.notification span {
    position: absolute;

    width: 8px;
    height: 8px;

    right: 8px;
    top: 7px;

    border-radius: 50%;

    background: #ef4444;

    border: 2px solid #ffffff;
}


/* USER */

.user {
    display: flex;
    align-items: center;

    gap: 12px;
}

.avatar {
    width: 46px;
    height: 46px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dbeafe;
    color: #2563eb;

    font-size: 16px;

    font-weight: 800;
}

.user strong {
    display: block;

    font-size: 13px;

    margin-bottom: 4px;
}

.user small {
    display: block;

    color: #94a3b8;

    font-size: 11px;
}

.user > i {
    color: #94a3b8;

    font-size: 11px;

    margin-left: 4px;
}

.mobile-menu {
    display: none;
}


/* =========================================
   CONTENT
========================================= */

.content {
    padding: 38px 40px;

    width: 100%;

    max-width: 1800px;

    margin: auto;
}


/* =========================================
   WELCOME BANNER
========================================= */

.welcome {
    min-height: 245px;

    padding: 40px 45px;

    border-radius: 18px;

    color: #ffffff;

    background:
        linear-gradient(
            120deg,
            #0f3d91,
            #2563eb
        );

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;

    position: relative;

    box-shadow:
        0 12px 35px rgba(37, 99, 235, 0.14);
}

.welcome::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    right: -100px;
    top: -180px;
}

.welcome::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    right: 100px;
    bottom: -220px;
}

.welcome > div:first-child {
    position: relative;

    z-index: 2;
}

.welcome small {
    color: #bfdbfe;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.4px;
}

.welcome h2 {
    font-size: 34px;

    line-height: 1.25;

    margin: 12px 0 13px;

    font-weight: 750;
}

.welcome h2 span {
    color: #bfdbfe;
}

.welcome p {
    max-width: 700px;

    color: #dbeafe;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 24px;
}

.primary-btn {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 20px;

    border-radius: 8px;

    background: #ffffff;

    color: #2563eb;

    font-size: 13px;

    font-weight: 800;

    transition: .2s;
}

.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.welcome-icon {
    width: 165px;
    height: 165px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 75px;

    color: #bfdbfe;

    margin-right: 65px;

    z-index: 2;
}


/* =========================================
   SECTION
========================================= */

.section {
    margin-top: 35px;
}

.section-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 19px;
}

.section-heading h3 {
    font-size: 21px;

    margin-bottom: 6px;

    font-weight: 750;
}

.section-heading p {
    font-size: 13px;

    color: #94a3b8;
}

.section-heading > a {
    color: #2563eb;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================
   FEATURE CARDS
========================================= */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.feature-card {
    padding: 25px;

    min-height: 180px;

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 14px;

    display: flex;

    gap: 17px;

    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: #dbeafe;

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    min-width: 52px;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 20px;
}

.blue {
    background: #eff6ff;
    color: #2563eb;
}

.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.orange {
    background: #fff7ed;
    color: #ea580c;
}

.green {
    background: #ecfdf5;
    color: #059669;
}

.feature-content {
    min-width: 0;

    flex: 1;
}

.feature-content h4 {
    font-size: 16px;

    margin-bottom: 8px;
}

.feature-content p {
    color: #94a3b8;

    font-size: 12px;

    line-height: 1.6;

    margin-bottom: 16px;
}

.feature-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #2563eb;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================
   STATISTICS
========================================= */

.stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-top: 22px;
}

.stat {
    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 13px;

    padding: 23px;

    display: flex;

    align-items: center;

    gap: 17px;

    transition: .2s;
}

.stat:hover {
    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.06);
}

.stat-icon {
    width: 52px;
    height: 52px;

    border-radius: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.stat small {
    color: #94a3b8;

    font-size: 11px;
}

.stat h3 {
    font-size: 24px;

    margin-top: 6px;
}


/* =========================================
   PURCHASE CARDS
========================================= */

.purchase-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.purchase-card {
    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 14px;

    padding: 25px;

    transition: .2s;
}

.purchase-card:hover {
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06);
}

.purchase-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.purchase-icon {
    width: 52px;
    height: 52px;

    border-radius: 11px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.active-badge {
    padding: 7px 11px;

    border-radius: 20px;

    background: #ecfdf5;

    color: #059669;

    font-size: 10px;

    font-weight: 800;
}

.active-badge.permanent {
    background: #f5f3ff;

    color: #7c3aed;
}

.purchase-card h4 {
    font-size: 16px;

    margin-bottom: 7px;
}

.purchase-card > p {
    color: #94a3b8;

    font-size: 12px;

    margin-bottom: 20px;
}

.purchase-info {
    display: grid;

    grid-template-columns: 1fr 1fr;

    padding: 16px 0;

    border-top: 1px solid #f0f2f5;

    border-bottom: 1px solid #f0f2f5;
}

.purchase-info small {
    display: block;

    color: #94a3b8;

    font-size: 10px;

    margin-bottom: 5px;
}

.purchase-info strong {
    font-size: 12px;
}

.days {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin: 16px 0;

    padding: 8px 11px;

    background: #fff7ed;

    color: #ea580c;

    border-radius: 6px;

    font-size: 10px;

    font-weight: 700;
}

.ebook-access {
    background: #f5f3ff;

    color: #7c3aed;
}

.continue-btn {
    display: block;

    text-align: center;

    width: 100%;

    padding: 12px;

    border-radius: 7px;

    background: #2563eb;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    transition: .2s;
}

.continue-btn:hover {
    background: #1d4ed8;
}


/* =========================================
   PRODUCT CARDS
========================================= */

.product-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.product-card {
    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 14px;

    padding: 25px;

    position: relative;

    transition: .25s;
}

.product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.08);
}

.product-label {
    display: inline-block;

    padding: 6px 9px;

    border-radius: 5px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 9px;

    font-weight: 800;
}

.ebook-label {
    background: #f5f3ff;

    color: #7c3aed;
}

.pyq-label {
    background: #fff7ed;

    color: #ea580c;
}

.product-icon {
    width: 55px;
    height: 55px;

    margin: 17px 0;

    border-radius: 11px;

    background: #eff6ff;

    color: #2563eb;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 21px;
}

.purple-bg {
    background: #f5f3ff;

    color: #7c3aed;
}

.orange-bg {
    background: #fff7ed;

    color: #ea580c;
}

.product-card h4 {
    font-size: 16px;

    margin-bottom: 8px;
}

.product-card > p {
    color: #94a3b8;

    font-size: 12px;

    line-height: 1.6;

    min-height: 39px;
}

.product-meta {
    display: flex;

    gap: 9px;

    margin: 17px 0;
}

.product-meta span {
    padding: 6px 9px;

    border-radius: 5px;

    background: #f8fafc;

    color: #64748b;

    font-size: 9px;
}

.price {
    font-size: 23px;

    font-weight: 800;

    margin-bottom: 15px;
}

.price del {
    color: #94a3b8;

    font-size: 11px;

    font-weight: 400;

    margin-left: 6px;
}

.product-card button {
    width: 100%;

    padding: 12px;

    border-radius: 7px;

    background: #2563eb;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    transition: .2s;
}

.product-card button:hover {
    background: #1d4ed8;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1350px) {

    .sidebar {
        width: 260px;
    }

    .main {
        margin-left: 260px;

        width: calc(100% - 260px);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 1000px) {

    .sidebar {
        width: 230px;
    }

    .main {
        margin-left: 230px;

        width: calc(100% - 230px);
    }

    .content {
        padding: 30px;
    }

    .welcome-icon {
        width: 130px;
        height: 130px;

        font-size: 55px;

        margin-right: 25px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 800px) {

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;

        width: 100%;
    }

    .mobile-menu {
        display: block;

        color: #64748b;

        margin-right: 15px;

        font-size: 19px;
    }

    .topbar {
        padding: 0 25px;
    }

    .content {
        padding: 25px;
    }

    .welcome-icon {
        display: none;
    }

    .purchase-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .topbar {
        height: 75px;

        padding: 0 17px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .topbar p {
        font-size: 11px;
    }

    .top-actions {
        gap: 10px;
    }

    .user > div,
    .user > i {
        display: none;
    }

    .content {
        padding: 18px;
    }

    .welcome {
        min-height: auto;

        padding: 28px;

        border-radius: 13px;
    }

    .welcome h2 {
        font-size: 27px;
    }

    .welcome p {
        font-size: 12px;
    }

    .feature-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .section {
        margin-top: 28px;
    }

    .section-heading h3 {
        font-size: 18px;
    }

    .section-heading p {
        font-size: 11px;
    }
}


@media (max-width: 400px) {

    .content {
        padding: 13px;
    }

    .welcome {
        padding: 23px;
    }

    .welcome h2 {
        font-size: 23px;
    }

    .feature-card,
    .purchase-card,
    .product-card {
        padding: 20px;
    }
}