.navbar {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06) !important;
    top: 0 !important;
    background-color: #fff !important;
}

section.profile {
    min-height: calc(100vh - var(--navbar-height));
    margin-top: var(--navbar-height);
}

section.profile .profile-card .user-icon {
    width: 80px;
    height: 80px;
    bottom: -40px;
}

section.profile .profile-card .btn {
    padding: 11px 15px;
}

section.profile .profile-card .btn.settings {
    background-color: var(--main-color);
    color: #fff;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1380px;
    }
}

section.profile .nav-tabs button.active {
    color: white !important;
    background-color: var(--main-color) !important;
    box-shadow: 0 6px 15px rgba(28, 176, 152, 0.4);
    transform: scale(1.02);
    border: none !important;
}

section.profile .nav-tabs button {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: #e9ecef;
    margin: 0 0.5rem;
}

.circular-progress {
    /* margin-top: 60px; */
    position: relative;
    display: inline-block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.circular-progress svg {
    transform: rotate(270deg);
}

.circular-progress circle {
    stroke-width: 7;
    fill: none;
    stroke-linecap: round;
}

.circular-progress circle:nth-of-type(1) {
    stroke: #dee2e6;
}

.circular-progress circle:nth-of-type(2) {
    stroke: var(--main-color);
    stroke-dasharray: 251.42857;
    stroke-dashoffset: 75.42857;
}

.circular-progress .pct {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.unit-card {
    border: 1px solid rgb(230, 230, 230) !important;
    transition: all .2s ease-in-out;
    min-height: 100%;
}

.unit-card:hover {
    border-color: var(--main-color) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.unit-card:hover .unit-title {
    transition: all .2s ease-in-out;
}

.unit-card:hover .unit-title {
    color: var(--main-color);
}

.unit-card .icon {
    width: 60px;
    height: 60px;
    background-color: #edfaf0;
    color: #6cceb4;
}

.unit-details div {
    font-size: 11px;
    padding: 3px 10px;
    background-color: #edfaf0;
}

/* --- Modern Exam Card Styles --- */
.modern-exam-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f1f5f9 !important;
    border-radius: 30px !important;
    padding: 2.5rem 1.5rem !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none !important;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Background Decoration */
.modern-exam-card::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-primary-rgb), 0) 100%);
    border-radius: 50%;
    transition: all 0.6s ease;
    z-index: -1;
}

.modern-exam-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12), 0 18px 36px -18px rgba(15, 23, 42, 0.15);
    border-color: rgba(var(--bs-primary-rgb), 0.3) !important;
}

.modern-exam-card:hover::after {
    transform: scale(4);
    opacity: 0.5;
}

.modern-exam-card .icon-wrapper {
    position: relative;
    width: 84px;
    height: 84px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    color: var(--main-color);
    font-size: 2.2rem;
}

.modern-exam-card:hover .icon-wrapper {
    background: var(--main-color);
    color: #fff;
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 12px 24px rgba(var(--bs-primary-rgb), 0.25);
}

.modern-exam-card .exam-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.modern-exam-card:hover .exam-title {
    color: var(--main-color);
}

.modern-exam-card .exam-meta {
    margin-top: auto;
}

.modern-exam-card .exam-count-badge {
    padding: 10px 20px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modern-exam-card:hover .exam-count-badge {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--main-color);
    border-color: transparent;
}

.modern-exam-card .arrow-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    color: var(--main-color);
    font-size: 1.4rem;
}

.modern-exam-card:hover .arrow-hint {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .modern-exam-card {
        padding: 1.5rem !important;
    }

    .modern-exam-card .icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .modern-exam-card .exam-title {
        font-size: 1rem;
    }

    .modern-exam-card .arrow-hint {
        display: none !important;
    }
}

/* --- Course Hero Styles --- */
.course-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-hero::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.course-hero .course-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2dd4bf;
    margin-bottom: 0.5rem;
    display: block;
}

.course-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-hero .hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.course-hero .stat-item {
    display: flex;
    flex-direction: column;
}

.course-hero .stat-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.course-hero .stat-label {
    font-size: 0.75rem;
    opacity: 0.65;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #2dd4bf;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(45, 212, 191, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
}

.course-hero .hero-actions {
    z-index: 2;
}

.btn-glass {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* --- Modern Tab Navigation --- */
.modern-tab-nav {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 18px;
    margin-bottom: 2rem;
    width: fit-content;
}

.modern-tab-nav .nav-link {
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

.modern-tab-nav .nav-link.active {
    background: #fff !important;
    color: var(--main-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* --- Creative Material Card --- */
.creative-unit-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    margin-bottom: 1rem;
}

.creative-unit-card:hover {
    transform: translateX(-10px);
    border-color: var(--main-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.creative-unit-card .unit-icon {
    width: 64px;
    height: 64px;
    background: #f0fdfa;
    color: var(--main-color);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.creative-unit-card:hover .unit-icon {
    background: var(--main-color);
    color: #fff;
    transform: scale(1.1);
}

.creative-unit-card .unit-content {
    flex: 1;
}

.creative-unit-card .unit-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.creative-unit-card .unit-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 12px;
}

.creative-unit-card .btn-start {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.creative-unit-card:hover .btn-start {
    background: var(--main-color);
    color: #fff;
    transform: rotate(-90deg);
}

.tab-pane {
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exam-card {
    border-color: #dbdbdb !important;
    transition: all .2s ease-in-out;

}

.exam-card:hover {
    border-color: var(--main-color) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.exam-card .end-tip {
    padding: 3px 11px;
    background-color: #e6fbf3;
    color: #6ecaab;
}

.exam-card hr {
    border-color: #c3c3c3 !important;
    opacity: .40 !important;
}

.exam-card ul li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99;
    width: 1px;
    height: 100%;
    background-color: #c3c3c3;
    opacity: .40;
}

.exam-card ul li:last-child::after {
    display: none;
}

.exam-card ul li div:last-child {
    font-size: 16px !important;
    margin-top: 2px;
}

.exam-card .start-button .btn {
    background-color: #566ffb;
    color: #fff;
    padding: 10px 15px;
}


/* BreadCrumbs */


#crumbs ul {
    list-style: none;
    overflow-x: scroll;
}

#crumbs ul li {
    display: inline;
    scrollbar-width: none;
}

#crumbs ul::-webkit-scrollbar {
    display: none;
}

#crumbs ul li a {
    display: block;
    float: right;
    height: 60px;
    background: #F3F5FA;
    text-align: center;
    padding: 0 60px 0 10px;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 10px 0 0;
    font-size: 13px;
    text-decoration: none;
    color: #8093A7;
    gap: 2;
}

#crumbs ul li:first-child a {
    padding-right: 30px;
}

#crumbs ul li a:after,
#crumbs ul li a.active :after {
    content: "";
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-right: 30px solid #F3F5FA;
    position: absolute;
    left: -30px;
    top: 0;
    z-index: 1;
}

#crumbs ul li a:before {
    content: "";
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-right: 30px solid #fff;
    position: absolute;
    right: 0;
    top: 0;
}

#crumbs ul li:first-child a {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#crumbs ul li:first-child a:before {
    display: none;
}

#crumbs ul li:last-child a {
    padding-left: 40px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: #566ffb;
    color: #fff;
}

#crumbs ul li:last-child a:after {
    display: none;
}

#crumbs ul li a:hover {
    background: #566ffb;
    color: #fff;
}

#crumbs ul li a:hover:after {
    border-right-color: #566ffb;
    color: #fff;
}

/* End */


/* Start notification page */

.dark-link {
    color: #333;
}

.heading-line {
    position: relative;
    padding-bottom: 5px;
}

.heading-line:after {
    content: "";
    height: 4px;
    width: 75px;
    background-color: var(--main-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.notification-ui_dd-content {
    margin-bottom: 30px;
}

.notification-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 7px;
    background: #fff;
    -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.notification-list-unread {
    border-left: 2px solid var(--main-color);
}

.notification-list .notification-list-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.notification-list .notification-list-content .notification-list-img img {
    height: 60px;
    width: 60px;
}

.notification-list .notification-list-content .notification-list-detail p {
    margin-bottom: 5px;
    line-height: 1.2;
}

.notification-list .notification-list-type {
    margin-left: 10px;
}

/* End notification page */


.main-color {
    color: var(--main-color) !important;
}

.bg-main-color {
    background-color: var(--main-color) !important;
    color: #fff !important;
}

.bg-opacity-50 {
    background-color: rgba(242, 242, 246, .5) !important;
}

.main-card {
    box-shadow: 0px 5px 10px rgba(2, 2, 76, 0.02);
    border: 1px solid #f2f2f6 !important;
}

.main-card .card-body::-webkit-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    display: none !important;
}

.main-card.layer .card-body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), 0) 0%, var(--bs-body-bg) 63.79%);
    opacity: 0.8;
    height: 75px;
    width: 100%;
    pointer-events: none;
}

.upcoming-card .card-body {
    max-height: 300px;
    overflow: scroll;
}

.upcoming-card img {
    min-width: 20px !important;
    min-height: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.upcoming-card .block.active {
    border: 1px solid var(--main-color) !important;
}

.upcoming-card .block.active .btn {
    font-size: 12px !important;
}

.upcoming-card .block {
    border: 1px solid #eee !important;
}

.navbar {
    background-color: #fff !important;
    margin: 0 !important;
    top: 0 !important;
    width: 100% !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
}

section.profile .units-card .nav-tabs button {
    font-size: 13px !important;
    font-weight: bold;
}

section.profile .units-card .nav-tabs button.active {
    background-color: #d3fbdc;
    color: #42ab8f;
}

.main-card .dropdown-toggle {
    width: 30px;
    height: 30px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-body.accord {
    display: none;
    max-height: none;
    overflow: visible;
    transition: max-height .4s ease;
}

.card-body.accord.active {
    display: block;
}

.toggleBtnDropdown.open {
    transform: rotate(180deg);
    transition: .3s;
}

.main-card .owl-dots {
    display: none !important;
}


/* --- Course Card Styles (Component) --- */
.my-courses .course-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.my-courses .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.my-courses .course-img-top {
    height: 200px;
    object-fit: cover;
}

/* Title Link Styling */
.my-courses .course-title a {
    color: var(--course-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.25rem;
}

.my-courses .course-title a:hover {
    text-decoration: underline;
}

/* Badge Styling */
.my-courses .course-badge {
    background-color: var(--course-primary);
    color: white;
    padding: 0.3em 0.7em;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Button Styling */
.my-courses .course-button {
    background-color: var(--course-primary);
    border-color: var(--course-primary);
    font-weight: 600;
    transition: background-color 0.3s;
}

.my-courses .course-button:hover {
    background-color: #158b7a;
    border-color: #158b7a;
}

/* Info Block (Duration/Students) Styling */
.my-courses .info-block {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--course-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.my-courses .info-block-icon {
    color: var(--course-primary);
    margin-right: 0.4rem;
    font-size: 1rem;
}

/* --- EMPTY STATE CARD (New Design) --- */
.my-courses .empty-state-card {
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    padding: 3rem;
    text-align: center;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Abstract background for flair */
.my-courses .empty-state-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(28, 176, 152, 0.1);
    /* Light Primary Color */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: rotate-bg 15s infinite linear;
}

.my-courses .empty-state-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(28, 176, 152, 0.1);
    /* Light Primary Color */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: rotate-bg 15s infinite linear;
}

.my-courses .empty-state-content {
    position: relative;
    /* Bring content above the pseudo element */
    z-index: 1;
}

@keyframes rotate-bg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.my-courses .empty-text {
    color: #6c757d;
    margin-bottom: 1.3rem;
    font-size: 1.1rem;
    line-height: 2.2rem;
}

#areaChart {
    position: absolute;
    bottom: -48px;
}

.chart-card .card-footer {
    height: 100px;
}

.chart-card .percent {
    padding: 3px 7px;
}

.chart-card .percent.up {
    background-color: #f0f9f6;
    color: green;
}

.chart-card .percent.down {
    background-color: #fff3f3;
    color: red;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    overflow-y: auto;
}

.event-status {
    font-size: 14px;
}

/* --- Premium Rating Modal --- */
.rating-modal-content {
    border-radius: 35px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.rating-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
}

.rating-hero-icon {
    color: #2dd4bf;
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.5));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.rating-card {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.modern-star-label {
    font-size: 2.5rem;
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.modern-star-label:hover {
    transform: scale(1.3) rotate(12deg);
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.modern-star-label.active,
.modern-star-label.hover-effect {
    color: #fbbf24;
    transform: scale(1.15);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.rating-status-text {
    color: #64748b;
    font-size: 1rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.modern-textarea {
    border-radius: 20px !important;
    resize: none;
    transition: all 0.3s ease;
}

.modern-textarea:focus {
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1) !important;
    border-color: #2dd4bf !important;
}

.btn-premium-gradient {
    background: linear-gradient(90deg, #1e293b, #334155);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.3);
}

.btn-premium-gradient:hover {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(30, 41, 59, 0.4);
}

@media (max-width: 768px) {
    .modern-exam-card {
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
    }

    .modern-exam-card .icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modern-exam-card .exam-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .modern-exam-card .exam-count-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .modern-exam-card::after {
        width: 60px;
        height: 60px;
    }

    .course-hero {
        padding-bottom: 80px !important;
    }

    .course-hero h1 {
        max-width: 50% !important;
        font-size: 1.3rem !important;
    }

    .course-hero .hero-actions {
        position: absolute !important;
        bottom: 25px !important;
        left: 0 !important;
        width: 100% !important;
        padding: 0 1rem !important;
        display: flex !important;
        gap: 10px !important;
        margin: 0 !important;
        z-index: 10 !important;
    }

    .course-hero .hero-actions .btn {
        flex: 1 !important;
        margin: 0 !important;
        padding: 12px 5px !important;
        font-size: 0.8rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 12px !important;
    }
}
/* --- Results Page Styles --- */
.results-summary-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.summary-stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.summary-stat-card:hover {
    transform: translateY(-5px);
}

.summary-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(45, 212, 191, 0.1);
    color: #2dd4bf;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.summary-stat-card .stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.modern-result-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.modern-result-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #2dd4bf;
}

.result-main-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.result-score-indicator {
    min-width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.result-score-indicator.score-high { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.result-score-indicator.score-mid { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.result-score-indicator.score-low { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.result-score-indicator .score-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: -2px;
}

.result-title-wrapper {
    display: flex;
    flex-direction: column;
}

.result-title-wrapper .exam-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.result-details-row {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item.correct { color: #10b981; }
.detail-item.wrong { color: #f43f5e; }

.result-meta-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.result-date-badge {
    font-size: 0.85rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .results-summary-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modern-result-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1rem;
    }

    .result-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .result-score-indicator {
        width: 80px;
        height: 80px;
    }

    .result-title-wrapper .exam-name {
        font-size: 1.1rem;
    }

    .result-details-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .result-meta-info {
        align-items: center;
    }

    .result-meta-info .btn {
        width: 100%;
    }
}

/* --- Ultra-Modern Premium Result Cards --- */
.premium-result-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    direction: rtl; /* Ensure RTL support */
}

.premium-result-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.premium-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #2dd4bf, #0ea5e9);
}

.card-score-wrapper {
    position: relative;
    z-index: 2;
}

.score-orb {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.score-orb::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.5s ease;
}

.premium-result-card:hover .score-orb::after {
    transform: scale(1.1);
    opacity: 0;
}

.score-orb .orb-percentage {
    font-size: 1.4rem;
    line-height: 1;
}

.score-orb .orb-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 600;
}

/* Score Variants */
.score-orb.success { 
    background: linear-gradient(135deg, #10b981, #34d399); 
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}
.score-orb.primary { 
    background: linear-gradient(135deg, #3b82f6, #60a5fa); 
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}
.score-orb.danger { 
    background: linear-gradient(135deg, #ef4444, #f87171); 
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.card-content-main {
    flex: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-exam-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.card-date-badge {
    background: rgba(45, 212, 191, 0.1);
    color: #0d9488;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.card-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.card-stat-item i {
    font-size: 1.2rem;
}

.card-stat-item.correct i { color: #10b981; }
.card-stat-item.wrong i { color: #f43f5e; }
.card-stat-item.total i { color: #6366f1; }

.card-progress-mini {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    transition: width 1s ease-out;
}

.card-footer-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-review-premium {
    background: #1e293b;
    color: white !important;
    padding: 10px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-review-premium:hover {
    background: #0f172a;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .premium-result-card {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }

    .card-score-wrapper {
        position: absolute;
        top: -45px;
        left: 50%;
        transform: translateX(-50%);
    }

    .card-header-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .card-exam-title {
        font-size: 1.1rem;
    }

    .card-stats-grid {
        justify-content: center;
        gap: 1rem;
    }

    .card-footer-actions {
        justify-content: center;
    }

    .btn-review-premium {
        width: 100%;
        justify-content: center;
    }
}

/* --- Compact Version of Premium Result Cards --- */
.premium-result-card.compact {
    padding: 1.25rem;
    gap: 1.25rem;
    border-radius: 20px;
    margin-bottom: 0; /* Let the row gutter handle it */
}

.premium-result-card.compact .score-orb {
    width: 70px;
    height: 70px;
}

.premium-result-card.compact .score-orb .orb-percentage {
    font-size: 1.2rem;
}

.premium-result-card.compact .score-orb .orb-label {
    font-size: 0.6rem;
}

.premium-result-card.compact .card-exam-title {
    font-size: 1.05rem;
}

.premium-result-card.compact .card-stats-grid {
    gap: 0.75rem;
}

.premium-result-card.compact .card-stat-item {
    font-size: 0.85rem;
}

.premium-result-card.compact .card-stat-item i {
    font-size: 1rem;
}

.premium-result-card.compact .btn-review-premium {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 12px;
}

@media (min-width: 992px) {
    .premium-result-card.compact {
        height: 100%; /* Ensure same height in a row */
    }
}

/* --- Minimalist Dashboard Result Cards --- */
.dashboard-result-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    direction: rtl;
}

.dashboard-result-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
    transform: translateY(-3px);
}

.card-status-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.status-success { background: #10b981; }
.status-primary { background: #3b82f6; }
.status-danger { background: #ef4444; }

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.exam-info-main {
    flex: 1;
}

.exam-info-main h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.exam-date-text {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.score-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.pill-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.pill-primary { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.pill-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.dashboard-card-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f8fafc;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.stat-pill i { font-size: 0.9rem; }
.stat-pill.correct i { color: #10b981; }
.stat-pill.wrong i { color: #f43f5e; }

.card-action-link {
    margin-right: auto;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.card-action-link:hover {
    color: #2dd4bf;
    gap: 8px;
}

@media (max-width: 768px) {
    .dashboard-result-card {
        padding: 1rem;
    }
    .dashboard-card-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .card-action-link {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        padding: 8px;
        background: #f8fafc;
        border-radius: 8px;
    }
}
