* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f8fc;
    color: #1e293b;
}

a {
    text-decoration: none;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 290px;
    background: #ffffff;
    padding: 25px;
    border-right: 1px solid #eceef5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sidebar-logo {
    text-align: center;
}

.sidebar-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.sidebar-logo h1 {
    font-size: 30px;
    font-weight: 900;
    color: #0b2a5b;
    margin-top: 10px;
    letter-spacing: 1px;
}

.sidebar-logo h2 {
    font-size: 26px;
    font-weight: 800;
    color: #2e9e44;
    margin-top: -3px;
}

.sidebar-logo p {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}

/* MENU */

.sidebar-menu {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    transition: .3s;
}

.sidebar-menu a i {
    width: 20px;
    font-size: 17px;
}

.sidebar-menu a:hover {
    background: #f3f5ff;
}

.sidebar-menu a.active {
    background: #eef2ff;
    color: #5b5cf0;
}

.logout {
    color: #ef4444 !important;
}

/* STAY CONSISTENT */

.consistent-card {
    margin-top: 30px;
    background: #eef2ff;
    border-radius: 24px;
    padding: 15px;
    text-align: center;
}

.consistent-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.consistent-card p {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

/* STUDENT ILLUSTRATION */

.student-illustration {
    position: relative;
    width: 160px;
    height: 140px;
    margin: 25px auto 0;
}

.student-head {
    width: 38px;
    height: 38px;
    background: #f8c9a4;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 60px;
}

.student-body {
    width: 70px;
    height: 55px;
    background: #6d5efc;
    border-radius: 18px;
    position: absolute;
    top: 42px;
    left: 45px;
}

.laptop {
    width: 60px;
    height: 35px;
    background: #ffffff;
    border-radius: 8px;
    position: absolute;
    top: 58px;
    left: 82px;
    border: 2px solid #dbe1ff;
}

.desk {
    width: 130px;
    height: 10px;
    background: #cbd5e1;
    position: absolute;
    bottom: 18px;
    left: 15px;
    border-radius: 10px;
}

.mini-books {
    width: 35px;
    height: 25px;
    background: #f59e0b;
    position: absolute;
    bottom: 25px;
    left: 25px;
    border-radius: 6px;
}

/* MAIN CONTENT */

.main-content {
    flex: 1;
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.topbar h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
}

.topbar p {
    color: #64748b;
    margin-top: 6px;
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* NOTIFICATION */

.notification {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    cursor: pointer;
}

.notification i {
    font-size: 18px;
    color: #475569;
}

.notification span {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PROFILE */

.profile-box {
    background: #fff;
    padding: 10px 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.profile-box img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-box h4 {
    font-size: 15px;
    font-weight: 700;
}

.profile-box i {
    color: #64748b;
}

/* GRID */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.center-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* DASHBOARD CARD */

.dashboard-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}

/* TITLES */

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h3 {
    font-size: 20px;
    font-weight: 800;
}

.title-icon {
    font-size: 22px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header a {
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
}

/* SMALL ICONS */

.small-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.purple-bg {
    background: #6d5efc;
}

.green-bg {
    background: #22c55e;
}

.orange-bg {
    background: #f59e0b;
}

.navy-bg {
    background: #0b2a5b;
}

/* STUDY RESOURCE */

.resource-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.resource-card {
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.resource-card.purple {
    background: #6d5efc;
}

.resource-card.green {
    background: #22c55e;
}

.resource-card.orange {
    background: #f59e0b;
}

.resource-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.resource-card h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 13px;
    line-height: 1.6;
    opacity: .95;
}

.arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    font-size: 18px;
}

/* UPCOMING TEST */

.test-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.test-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #eef1f6;
    border-radius: 18px;
}

.test-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.test-info h4 {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.test-info p {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.test-date,
.test-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.test-row button {
    border: none;
    background: #6d5efc;
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.test-row button:hover {
    background: #5848f0;
}

/* CURRENT AFFAIRS */

.current-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.current-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #eef1f6;
    border-radius: 18px;
}

.current-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.current-row h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.current-row p {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.new-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
}

.download-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    color: #475569;
    cursor: pointer;
    margin-left: auto;
}

.download-btn:hover {
    background: #e5e7eb;
}

.books-icon {
    font-size: 24px;
}

/* PERFORMANCE CARD */

.performance-card h3 {
    font-size: 20px;
    font-weight: 800;
}

.circle-progress {
    width: 190px;
    height: 190px;
    margin: 25px auto;
    border-radius: 50%;
    background: conic-gradient(#6d5efc 0 78%, #eef2ff 78% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-inner {
    width: 145px;
    height: 145px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.circle-inner h2 {
    font-size: 34px;
    font-weight: 900;
    color: #1e293b;
}

.circle-inner span {
    font-size: 18px;
}

.circle-inner p {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 18px;
    margin-top: 15px;
}

.purple-soft {
    background: #f3f1ff;
}

.green-soft {
    background: #ecfdf3;
}

.orange-soft {
    background: #fff7ed;
}

.score-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.score-card p {
    font-size: 13px;
    color: #64748b;
}

.score-card h3 {
    font-size: 20px;
    margin-top: 4px;
    color: #1e293b;
}

/* LATEST RESULT */

.latest-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
}

.result-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
}

.result-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.result-box p {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.result-score {
    margin-top: 18px;
}

.result-score h2 {
    font-size: 32px;
    color: #6d5efc;
    font-weight: 900;
}

.result-score span {
    font-size: 16px;
}

.result-btn {
    width: 100%;
    border: none;
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #6d5efc;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.result-btn:hover {
    background: #5848f0;
}

/* RESPONSIVE */

@media(max-width:1200px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

    .right-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media(max-width:900px) {

    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eceef5;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .test-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .current-row {
        flex-direction: column;
        text-align: center;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .right-column {
        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {

    .main-content {
        padding: 15px;
    }

    .topbar h2 {
        font-size: 22px;
    }

    .dashboard-card {
        padding: 18px;
    }

    .circle-progress {
        width: 150px;
        height: 150px;
    }

    .circle-inner {
        width: 115px;
        height: 115px;
    }

    .circle-inner h2 {
        font-size: 28px;
    }

    .profile-box h4 {
        display: none;
    }
}

/* FINAL DASHBOARD FIX - MATCH APPROVED IMAGE */

body {
    background: #ffffff;
}

.sidebar {
    width: 320px;
    padding: 28px 22px;
}

.sidebar-logo img {
    width: 115px;
    height: 115px;
}

.sidebar-logo h1 {
    font-size: 38px;
    color: #0B2A5B;
    margin-top: 6px;
}

.sidebar-logo h2 {
    font-size: 32px;
    color: #2E9E44;
}

.sidebar-logo p {
    color: #0B2A5B;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-menu a.active {
    background: #0B2A5B;
    color: #fff;
}

.sidebar-menu a {
    font-size: 17px;
    font-weight: 700;
    padding: 16px 20px;
}

.main-content {
    background: #fafbff;
}

.dashboard-card {
    border: 1px solid #edf0f6;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    border-radius: 16px;
}

.resource-card {
    background: #fff !important;
    color: #07152e !important;
    border: 1px solid #edf0f6;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.resource-card p {
    color: #111827;
}

.resource-card.purple .resource-icon {
    background: #f0eaff;
    color: #5b21d9;
}

.resource-card.green .resource-icon {
    background: #e7f8ec;
    color: #15803d;
}

.resource-card.orange .resource-icon {
    background: #fff3e2;
    color: #f97316;
}

.resource-card.purple .arrow {
    color: #5b21d9;
}

.resource-card.green .arrow {
    color: #15803d;
}

.resource-card.orange .arrow {
    color: #f97316;
}

.test-row button {
    background: #fff;
    color: #0B2A5B;
    border: 1.5px solid #0B2A5B;
}

.test-row button:hover {
    background: #0B2A5B;
    color: #fff;
}

.circle-progress {
    background: conic-gradient(#0B2A5B 0 78%, #dbe7ff 78% 100%);
}

.result-score h2 {
    color: #15803d;
}

.result-btn {
    background: #fff;
    color: #0B2A5B;
    border: 1.5px solid #0B2A5B;
}

.result-btn:hover {
    background: #0B2A5B;
    color: #fff;
}

.consistent-card {
    background: #0B2A5B;
    color: #fff;
}

.consistent-card h3,
.consistent-card p {
    color: #fff;
}

/* FINAL SIZE FIX */

.sidebar {
    width: 250px;
    padding: 22px 20px;
}

.sidebar-logo {
    margin-bottom: 15px;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo-row img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #0B2A5B;
    line-height: 1;
}

.logo-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #1E9C45;
    line-height: 1;
}

.logo-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.logo-tagline span {
    width: 20px;
    height: 2px;
    background: #1E9C45;
}

.logo-tagline p {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: #1F2937;
}

.sidebar-menu {
    margin-top: 10px;
}

.sidebar-menu a {
    padding: 12px 16px;
    font-size: 15px;
}

.main-content {
    padding: 18px 12px;
}

.topbar {
    margin-bottom: 22px;
}

.topbar h2 {
    font-size: 22px;
}

.dashboard-card {
    padding: 18px;
}

.resource-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.resource-card {
    min-height: 130px;
    padding: 14px;
}

.resource-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
}

.resource-card h4 {
    font-size: 17px;
    line-height: 1.25;
}

.resource-card p {
    font-size: 13px;
}

.circle-progress {
    width: 140px;
    height: 140px;
}

.circle-inner {
    width: 100px;
    height: 100px;
}

.profile-box img {
    width: 48px;
    height: 48px;
}

.profile-box {
    position: relative;
    cursor: pointer;
}

.profile-dropdown {
    position: absolute;
    top: 65px;
    right: 0;
    width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    padding: 10px;
    display: none;
    z-index: 100;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
}

.profile-dropdown a:hover {
    background: #f3f6fb;
}

.profile-dropdown a:last-child {
    color: #ef4444;
}

.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.profile-modal.show {
    display: flex;
}

.profile-modal-box {
    width: 460px;
    max-width: 90%;
    background: #fff;
    border-radius: 16px;
    padding: 18px 28px;
}

.modal-close {
    position: absolute;
    right: 22px;
    top: 18px;
    border: none;
    background: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
}

.profile-modal-box h2 {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 12px;
    color: #0f172a;
}

.modal-profile-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
    display: block;
    border-radius: 50%;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info div {
    display: grid;
    grid-template-columns: 35px 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.profile-info i {
    color: #0B2A5B;
}

.profile-info span {
    color: #475569;
    font-weight: 600;
}

.profile-info span,
.profile-info strong {
    font-size: 14px;
}

.profile-info strong {
    color: #0f172a;
    font-weight: 700;
}

.active-status {
    background: #dcfce7;
    color: #15803d !important;
    padding: 6px 14px;
    border-radius: 8px;
    width: max-content;
}

.close-btn {
    margin: 15px auto 0 auto;
    width: 160px;
    height: 42px;
    display: block;
    border: none;
    border-radius: 8px;
    background: #0B2A5B;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.profile-modal {
    overflow-y: auto;
    padding: 20px;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.image-modal.show {
    display: flex;
}

.large-profile-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
}

.image-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.edit-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.edit-modal.show {
    display: flex;
}

.edit-modal-box {
    width: 460px;
    max-width: 90%;
    background: #fff;
    border-radius: 16px;
    padding: 22px 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
}

.edit-modal-box h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-form input,
.edit-form select {
    height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.edit-actions button {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

#saveEditBtn {
    background: #0B2A5B;
    color: #fff;
}

#cancelEditBtn {
    background: #e5e7eb;
    color: #111827;
}

.upload-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 15px;
    padding: 9px 16px;
    border-radius: 8px;
    background: #eef2ff;
    color: #0B2A5B;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.upload-photo-btn:hover {
    background: #dbe7ff;
}

.error-msg {
    display: block;
    text-align: left;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    margin-top: -8px;
    margin-bottom: 2px;
    min-height: 14px;
}

.edit-form input.error {
    border-color: #dc2626;
    background: #fff5f5;
}

.upload-photo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 14px;
    padding: 8px 15px;
    border-radius: 8px;
    background: #eef2ff;
    color: #0B2A5B;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.edit-field small {
    display: block;
    text-align: left;
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    min-height: 14px;
}

.edit-form input.error {
    border-color: #dc2626;
    background: #fff7f7;
}

.edit-form input.success {
    border-color: #16a34a;
}

/* EDIT PROFILE DESIGN FIX */

.edit-modal-box {
    width: 430px;
    padding: 20px 28px;
}

.edit-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.edit-field {
    width: 100%;
    max-width: 320px;
}

.edit-form input,
.edit-form select {
    width: 100%;
    height: 44px;
}

.edit-field small {
    text-align: left;
    margin-left: 0;
}

.edit-actions {
    width: 100%;
    max-width: 400px;
    margin: 18px auto 0;
}

.photo-success-msg {
    display: block;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

/* EDIT PROFILE COMPACT FIX */

.edit-modal-box {
    width: 420px;
    padding: 14px 26px;
}

.edit-modal-box h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.edit-modal-box .modal-profile-img {
    width: 68px;
    height: 68px;
    margin-bottom: 6px;
}

.upload-photo-btn {
    margin: 0 auto 8px;
    padding: 7px 14px;
    font-size: 13px;
}

.edit-form {
    gap: 6px;
}

.edit-field {
    max-width: 320px;
}

.edit-form input,
.edit-form select {
    height: 40px;
    font-size: 13px;
}

.edit-field small {
    min-height: 12px;
    font-size: 11px;
    margin-top: 2px;
}

.edit-actions {
    margin-top: 10px;
}

.edit-actions button {
    height: 40px;
}

/* DASHBOARD ALIGNMENT CLEANUP */

.dashboard-wrapper {
    align-items: stretch;
}

.sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.main-content {
    width: 100%;
    min-width: 0;
}

.topbar {
    min-height: 70px;
}

.content-grid {
    align-items: start;
}

.dashboard-card {
    width: 100%;
}

.resource-card {
    min-height: 170px;
}

.test-row {
    grid-template-columns: 55px 1.6fr 1fr 1fr 110px;
}

.test-row button {
    width: 100%;
    white-space: nowrap;
}

.current-row>div:nth-child(2) {
    flex: 1;
}

.download-btn {
    margin-left: 0;
}

.performance-card {
    text-align: left;
}

.profile-box {
    min-width: 190px;
    justify-content: space-between;
}

.consistent-card {
    margin-top: 20px;
}

/* TEST RESULTS PAGE */
.need-help-card {
    margin-top: auto;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    color: #0f172a;
    border: 1px solid #edf0f6
}

.need-help-card h3 {
    color: #0f172a;
    font-size: 16px
}

.need-help-card p {
    color: #64748b;
    font-size: 13px
}

.need-help-card button {
    margin-top: 12px;
    width: 135px;
    height: 38px;
    border: none;
    border-radius: 7px;
    background: #0057ff;
    color: #fff;
    font-weight: 800;
    cursor: pointer
}

.test-results-page {
    width: 100%
}

.result-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 20px
}

.result-summary-card {
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 118px
}

.summary-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px
}

.summary-icon.blue {
    background: #eaf2ff;
    color: #0057ff
}

.summary-icon.green {
    background: #dcfce7;
    color: #16a34a
}

.summary-icon.orange {
    background: #fff4db;
    color: #d89000
}

.summary-icon.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.result-summary-card p {
    font-size: 14px;
    color: #334155;
    font-weight: 700;
    margin-bottom: 6px
}

.result-summary-card h3 {
    font-size: 31px;
    font-weight: 900;
    color: #07152e;
    line-height: 1;
    margin-bottom: 8px
}

.result-summary-card span {
    font-size: 13px;
    color: #64748b;
    font-weight: 600
}

.results-main-grid {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 20px
}

.results-card,
.performance-overview-card,
.test-type-summary-card {
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05)
}

.results-card {
    padding: 18px
}

.results-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px
}

.results-card-header h3,
.performance-overview-card h3,
.test-type-summary-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a
}

.result-filters {
    display: flex;
    gap: 14px
}

.result-filters select {
    width: 135px;
    height: 38px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    outline: none
}

.result-table-head {
    height: 44px;
    background: #fbfcff;
    border-top: 1px solid #e5eaf2;
    border-bottom: 1px solid #e5eaf2;
    display: grid;
    grid-template-columns: 1.7fr .85fr .8fr .7fr .75fr .7fr .9fr;
    align-items: center;
    padding: 0 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 900
}

.result-row {
    display: grid;
    grid-template-columns: 1.7fr .85fr .8fr .7fr .75fr .7fr .9fr;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #e5eaf2;
    gap: 8px
}

.result-row:last-child {
    border-bottom: none
}

.test-name-cell {
    display: flex;
    align-items: center;
    gap: 12px
}

.result-icon {
    width: 39px;
    height: 39px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0
}

.result-icon.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.result-icon.blue,
.result-icon.light-blue {
    background: #eaf2ff;
    color: #0057ff
}

.result-icon.orange {
    background: #fff7ed;
    color: #f97316
}

.result-icon.green {
    background: #ecfdf3;
    color: #16a34a
}

.test-name-cell h4 {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 5px
}

.test-name-cell p,
.date-cell span,
.score-cell span {
    font-size: 12px;
    color: #64748b;
    font-weight: 600
}

.type-pill {
    width: max-content;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800
}

.type-pill.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.type-pill.blue {
    background: #eaf2ff;
    color: #0057ff
}

.type-pill.orange {
    background: #fff7ed;
    color: #ea580c
}

.type-pill.green {
    background: #dcfce7;
    color: #15803d
}

.date-cell,
.score-cell {
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45
}

.score-cell {
    font-weight: 900
}

.accuracy-cell strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 900;
    display: block;
    margin-bottom: 8px
}

.accuracy-track {
    width: 80px;
    height: 5px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden
}

.accuracy-track span {
    display: block;
    height: 100%;
    background: #16a34a;
    border-radius: 20px
}

.status-pill {
    width: max-content;
    padding: 6px 11px;
    border-radius: 6px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 800
}

.view-analysis-btn {
    width: 120px;
    height: 36px;
    border: 1.5px solid #0057ff;
    background: #fff;
    color: #0057ff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer
}

.view-analysis-btn:hover {
    background: #0057ff;
    color: #fff
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px
}

.pagination button {
    width: 31px;
    height: 31px;
    border: 1px solid #dbe3ef;
    background: #fff;
    border-radius: 6px;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer
}

.pagination button.active {
    background: #0057ff;
    color: #fff;
    border-color: #0057ff
}

.performance-overview-card {
    padding: 18px
}

.performance-overview-card>p,
.test-type-summary-card>p {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 18px
}

.overview-list {
    display: flex;
    flex-direction: column
}

.overview-item {
    display: grid;
    grid-template-columns: 44px 1fr 100px;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e5eaf2
}

.overview-item.overall {
    border-top: 1px dashed #dbe3ef;
    margin-top: 2px
}

.overview-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px
}

.overview-icon.green {
    background: #dcfce7;
    color: #16a34a
}

.overview-icon.blue {
    background: #eaf2ff;
    color: #0057ff
}

.overview-icon.orange {
    background: #fff7ed;
    color: #f97316
}

.overview-icon.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.overview-icon.navy {
    background: #e5edf8;
    color: #0B2A5B
}

.overview-text h4 {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px
}

.overview-text p {
    color: #64748b;
    font-size: 12px;
    font-weight: 600
}

.overview-progress {
    text-align: right
}

.overview-progress strong {
    font-size: 16px;
    color: #0f172a;
    font-weight: 900;
    display: block;
    margin-bottom: 8px
}

.overview-progress div {
    height: 5px;
    width: 92px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden
}

.overview-progress span {
    display: block;
    height: 100%;
    border-radius: 20px
}

.overview-progress span.green {
    background: #16a34a
}

.overview-progress span.blue {
    background: #2563eb
}

.overview-progress span.orange {
    background: #f97316
}

.overview-progress span.purple {
    background: #7c3aed
}

.overview-progress span.navy {
    background: #0B2A5B
}

.motivation-box {
    margin-top: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center
}

.motivation-box i {
    color: #0057ff;
    font-size: 26px
}

.motivation-box h4 {
    color: #0057ff;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 5px
}

.motivation-box p {
    color: #475569;
    font-size: 13px;
    line-height: 1.4
}

.test-type-summary-card {
    padding: 18px
}

.summary-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px
}

.summary-type-card {
    border: 1px solid #edf0f6;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff
}

.type-icon {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0
}

.type-icon.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.type-icon.blue {
    background: #eaf2ff;
    color: #0057ff
}

.type-icon.orange {
    background: #fff7ed;
    color: #f97316
}

.type-icon.cyan {
    background: #cffafe;
    color: #0891b2
}

.summary-type-card h4 {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 7px
}

.summary-type-card strong {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a
}

.summary-type-card strong span {
    font-size: 13px;
    font-weight: 800
}

.summary-type-card p {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    margin-top: 6px
}

@media(max-width:1250px) {
    .result-summary-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .results-main-grid {
        grid-template-columns: 1fr
    }

    .summary-type-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:850px) {
    .result-table-head {
        display: none
    }

    .result-row {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: flex-start
    }

    .result-filters {
        width: 100%;
        flex-direction: column
    }

    .result-filters select {
        width: 100%
    }

    .results-card-header {
        flex-direction: column;
        align-items: flex-start
    }

    .overview-item {
        grid-template-columns: 44px 1fr
    }

    .overview-progress {
        grid-column: 2;
        text-align: left
    }
}

@media(max-width:600px) {

    .result-summary-grid,
    .summary-type-grid {
        grid-template-columns: 1fr
    }

    .result-summary-card {
        min-height: auto
    }

    .view-analysis-btn {
        width: 150px
    }
}

/* PERFORMANCE PAGE FINAL */

.performance-page {
    width: 100%;
}

.time-filter {
    width: 140px;
    height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    padding: 0 12px;
    outline: none;
}

.performance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.performance-summary-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    padding: 18px;
    min-height: 135px;
}

.performance-summary-card.purple-border {
    border-color: #ddd6fe;
}

.summary-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5eaf2;
}

.performance-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.performance-icon.blue {
    background: #eaf2ff;
    color: #0057ff;
}

.performance-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.performance-icon.purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.performance-icon.orange {
    background: #ffedd5;
    color: #f97316;
}

.performance-summary-card p {
    font-size: 13px;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 5px;
}

.performance-summary-card h3 {
    font-size: 32px;
    font-weight: 900;
    color: #0057ff;
    line-height: 1;
    margin-bottom: 8px;
}

.performance-summary-card h3.green-number {
    color: #16a34a;
}

.performance-summary-card h3.purple-number {
    color: #7c3aed;
}

.performance-summary-card h3.orange-number {
    color: #ea580c;
}

.performance-summary-card span {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.summary-note {
    margin-top: 13px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
}

.green-text {
    color: #16a34a;
}

.purple-text {
    color: #7c3aed;
}

.performance-middle-grid {
    display: grid;
    grid-template-columns: 1.55fr 1.1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.performance-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    padding: 18px;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.card-title-row h3,
.area-card h3,
.monthly-card h3,
.insights-card h3 {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
}

.card-title-row select {
    width: 105px;
    height: 38px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    padding: 0 10px;
    outline: none;
}

.card-title-row a {
    font-size: 13px;
    font-weight: 900;
    color: #0057ff;
}

.line-chart {
    height: 300px;
    position: relative;
    margin-left: 30px;
    margin-top: 8px;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    left: 35px;
    right: 15px;
    height: 1px;
    background: #dbe3ef;
}

.line100 {
    top: 35px
}

.line75 {
    top: 92px
}

.line50 {
    top: 149px
}

.line25 {
    top: 206px
}

.line0 {
    top: 263px
}

.y-label {
    position: absolute;
    left: 0;
    font-size: 12px;
    color: #475569;
    font-weight: 700;
}

.y100 {
    top: 28px
}

.y75 {
    top: 85px
}

.y50 {
    top: 142px
}

.y25 {
    top: 199px
}

.y0 {
    top: 256px
}

.chart-fill {
    position: absolute;
    left: 70px;
    right: 70px;
    bottom: 37px;
    height: 170px;
    background: linear-gradient(180deg, rgba(0, 87, 255, .18), rgba(0, 87, 255, .02));
    clip-path: polygon(0 70%, 25% 62%, 50% 52%, 75% 45%, 100% 38%, 100% 100%, 0 100%);
}

.line-svg {
    position: absolute;
    left: 35px;
    right: 15px;
    top: 35px;
    width: calc(100% - 50px);
    height: 228px;
}

.point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0057ff;
    border: 3px solid #fff;
    position: absolute;
    box-shadow: 0 0 0 2px #0057ff;
}

.point span {
    position: absolute;
    top: -28px;
    left: -12px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.p1 {
    left: 96px;
    top: 158px
}

.p2 {
    left: 232px;
    top: 145px
}

.p3 {
    left: 368px;
    top: 132px
}

.p4 {
    left: 505px;
    top: 118px
}

.p5 {
    left: 642px;
    top: 108px
}

.month {
    position: absolute;
    bottom: 7px;
    font-size: 12px;
    color: #0f172a;
    font-weight: 700;
}

.m1 {
    left: 90px
}

.m2 {
    left: 226px
}

.m3 {
    left: 362px
}

.m4 {
    left: 500px
}

.m5 {
    left: 637px
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    margin-left: 38px;
    margin-top: 3px;
}

.chart-legend span {
    width: 18px;
    height: 3px;
    background: #0057ff;
    border-radius: 20px;
}

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subject-row {
    display: grid;
    grid-template-columns: 44px 1fr 48px 56px;
    align-items: center;
    gap: 12px;
}

.subject-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.subject-icon.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.subject-icon.orange {
    background: #fff7ed;
    color: #f97316
}

.subject-icon.blue {
    background: #eaf2ff;
    color: #0057ff
}

.subject-icon.green {
    background: #dcfce7;
    color: #16a34a
}

.subject-icon.yellow {
    background: #fef3c7;
    color: #f59e0b
}

.subject-icon.cyan {
    background: #cffafe;
    color: #0891b2
}

.subject-main h4 {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.subject-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden
}

.subject-track span {
    display: block;
    height: 100%;
    border-radius: 20px
}

.subject-track span.purple {
    background: #7c3aed
}

.subject-track span.orange {
    background: #f97316
}

.subject-track span.blue {
    background: #0057ff
}

.subject-track span.green {
    background: #16a34a
}

.subject-track span.yellow {
    background: #f59e0b
}

.subject-track span.cyan {
    background: #06b6d4
}

.subject-row strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900
}

.subject-row p {
    font-size: 12px;
    font-weight: 700;
    color: #334155
}

.analysis-btn {
    width: 100%;
    height: 38px;
    margin-top: 15px;
    border: 1.5px solid #0057ff;
    border-radius: 7px;
    background: #fff;
    color: #0057ff;
    font-weight: 900;
    cursor: pointer
}

.analysis-btn:hover {
    background: #0057ff;
    color: #fff
}

.performance-lower-grid {
    display: grid;
    grid-template-columns:0.9fr 0.9fr 1.6fr;
    gap: 16px;
    margin-bottom: 16px
}

.area-card {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    overflow: hidden;
    background: #fff
}

.strong-card {
    background: linear-gradient(180deg, #ecfdf3 0, #fff 42%)
}

.weak-card {
    background: linear-gradient(180deg, #fff1f2 0, #fff 42%)
}

.area-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 10px
}

.strong-card .area-card-head i {
    color: #16a34a
}

.weak-card .area-card-head i {
    color: #ef4444
}

.area-list {
    padding: 0 18px
}

.area-row {
    display: grid;
    grid-template-columns: 28px 1fr 80px 42px;
    align-items: center;
    gap: 9px;
    margin: 14px 0
}

.area-row span {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900
}

.weak-card .area-row span {
    background: #ef4444
}

.area-row h4 {
    font-size: 13px;
    color: #0f172a;
    font-weight: 900
}

.mini-track {
    height: 4px;
    background: #dbe3ef;
    border-radius: 20px;
    overflow: hidden
}

.mini-track b {
    display: block;
    height: 100%;
    background: #16a34a
}

.mini-track.red b {
    background: #ef4444
}

.area-row strong {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a
}

.success-box,
.warning-box {
    margin: 18px;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center
}

.success-box {
    background: #dcfce7;
    border: 1px solid #bbf7d0
}

.warning-box {
    background: #fee2e2;
    border: 1px solid #fecaca
}

.success-box i {
    color: #16a34a;
    font-size: 24px
}

.warning-box i {
    color: #ef4444;
    font-size: 23px
}

.success-box h4,
.warning-box h4 {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 4px
}

.success-box h4 {
    color: #16a34a
}

.warning-box h4 {
    color: #ef4444
}

.success-box p,
.warning-box p {
    font-size: 12px;
    font-weight: 700;
    color: #334155
}

.monthly-card {
    padding: 18px
}

.bar-chart {
    position: relative;
    height: 205px;
    margin-top: 12px;
    padding-left: 46px;
    border-bottom: 1px solid #dbe3ef
}

.bar-y {
    position: absolute;
    left: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700
}

.bar-y.y100 {
    top: 6px
}

.bar-y.y75 {
    top: 45px
}

.bar-y.y50 {
    top: 85px
}

.bar-y.y25 {
    top: 125px
}

.bar-y.y0 {
    top: 165px
}

.bar {
    position: absolute;
    bottom: 0;
    width: 48px;
    text-align: center
}

.bar strong {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px
}

.bar span {
    display: block;
    width: 30px;
    background: #60a5fa;
    border-radius: 7px 7px 0 0;
    margin: 0 auto
}

.bar p {
    margin-top: 8px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700
}

.b1 {
    left: 78px
}

.b2 {
    left: 150px
}

.b3 {
    left: 222px
}

.b4 {
    left: 294px
}

.b5 {
    left: 366px
}

.b1 span {
    height: 86px
}

.b2 span {
    height: 96px
}

.b3 span {
    height: 105px
}

.b4 span {
    height: 114px
}

.b5 span {
    height: 123px
}

.monthly-note {
    margin-top: 14px;
    background: #eaf2ff;
    color: #0057ff;
    padding: 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800
}

.monthly-note i {
    margin-right: 6px
}

.insights-card {
    padding: 18px
}

.insight-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px
}

.insight-title i {
    color: #0057ff;
    font-size: 20px
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 14px
}

.insight-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0
}

.insight-icon.blue {
    background: #eaf2ff;
    color: #0057ff
}

.insight-icon.green {
    background: #dcfce7;
    color: #16a34a
}

.insight-icon.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.insight-item h4 {
    font-size: 13px;
    color: #0057ff;
    font-weight: 900;
    margin-bottom: 6px
}

.insight-item p {
    font-size: 12px;
    color: #334155;
    line-height: 1.45;
    font-weight: 600
}

.performance-help-card {
    margin-top: auto;
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05)
}

.performance-help-card h3 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900
}

.performance-help-card p {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px
}

.performance-help-card button {
    width: 150px;
    height: 40px;
    border: none;
    border-radius: 7px;
    background: #0057ff;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer
}

.help-illustration {
    width: 130px;
    height: 100px;
    position: relative;
    margin: 20px auto 14px;
    background: #eef2ff;
    border-radius: 45% 45% 15px 15px
}

.help-head {
    width: 34px;
    height: 34px;
    background: #f8c9a4;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    left: 48px
}

.help-body {
    width: 58px;
    height: 42px;
    background: #6d5efc;
    border-radius: 18px 18px 8px 8px;
    position: absolute;
    top: 46px;
    left: 36px
}

.help-laptop {
    width: 52px;
    height: 30px;
    background: #fff;
    border: 2px solid #dbe3ef;
    border-radius: 7px;
    position: absolute;
    top: 56px;
    left: 66px
}

.help-books {
    width: 45px;
    height: 12px;
    background: #f59e0b;
    border-radius: 6px;
    position: absolute;
    bottom: 5px;
    left: 16px
}

@media(max-width:1250px) {
    .performance-summary-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .performance-middle-grid,
    .performance-lower-grid {
        grid-template-columns: 1fr
    }

    .insight-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .performance-summary-grid {
        grid-template-columns: 1fr
    }

    .subject-row {
        grid-template-columns: 40px 1fr
    }

    .subject-row strong,
    .subject-row p {
        grid-column: 2
    }

    .topbar-right {
        flex-wrap: wrap
    }

    .time-filter {
        width: 100%
    }
}