/* Fonts */
@import url('fonts/dm-sans/dm-sans.css');
@import url('fonts/gilroy/Gilroy.css');

/* Inter Regular */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}

/* Inter Medium */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}

/* Inter SemiBold */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}

/* Inter Bold */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
    --primary-color: #667eea;
    --primary-color2: #764ba2;
    --secondary-color: #cf2626;
    --text-color: #6c757d;
    --heading-color: #333333;
    --border-color: #dddddd;
    --border-light-color:#F5F5F5;
    --card-hover:#f8f8f8;
    --badge-color:#fad25a;
    --success-color: #198754;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --pending-color: #f39c12;
    --verified-color: #2ecc71;
    --inactive-color: #95a5a6;
    --read-bg: #f9f9f9;
    --unread-bg: #f0f4ff;
    --light-text: #777;
    --selected-color: #e6edff;
    --title-color: #404040;
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Body */
body {
    font-size: 13px;
    font-family: var(--font);
    color: #6c757d;
    overflow-x: hidden;
    background-color: #ececec !important;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
}


/* FAQ */
.faq-page .accordion-button {
    font-size: 14px;
}

.feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    font-size: 1.5rem;
}

/* Slider */
.account-slider.slick-initialized {
    visibility: visible;
    opacity: 1;
}
.account-slider {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    -webkit-transition: opacity 1s ease;
}
.slick-track{
    display:flex;
}
.slick-slide{
    display:flex;
    justify-content:center;
}

.trail-slider .slick-dots {
    bottom: -5px !important;
}

.slick-slider {
    margin-bottom: 0px !important;
}
.slick-dots {
    bottom: 11px;
}
.slick-arrow {
    background: #fff !important;
    width: 35px;
    height: 35px;
    border-radius: 50px;
    box-shadow: 0 .5px 10px rgba(0,0,0,.20)!important;
    z-index: 9;
}
.slick-arrow:hover, .slick-arrow:focus {
    background: var(--primary-color) !important;
}
.slick-arrow:hover:before, .slick-arrow:focus:before {
    color: #ffffff;
}
.slick-prev:before, .slick-next:before {
    color: #000;
    font-size: 20px;
    font-weight: 700;
}
.slick-next {
    right: 15px;
}
.slick-prev {
    left: 15px !important;
}
.slick-prev:before {
    content: "\eac9";
    font-family: IcoFont!important;
}
.slick-next:before {
    content: "\eaca";
    font-family: IcoFont!important;
}


::-webkit-scrollbar-button {
	width: 0;
	height: 0;
	display: none;
}
::-webkit-scrollbar-corner {
	background-color: transparent;
}
::-webkit-scrollbar-thumb {
	height: 6px;
	border: 4px solid transparent;
	background-clip: padding-box;
	-webkit-border-radius: 7px;
	border-radius: 7px;
	background-color: rgba(0, 0, 0, .15);
	-webkit-box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .05), inset 1px 1px 0 rgba(0, 0, 0, .05);
	box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .05), inset 1px 1px 0 rgba(0, 0, 0, .05);
}
::-webkit-scrollbar {
	width: 4px;
	background-color: #ffffff;
}
::-webkit-scrollbar-thumb {
	height: 50px;
	background: hsla(0, 0%, 53.3%, 0.4);
}

/* Basic Css */
.dropdown-menu.fs-13.dropdown-menu-end {
    padding: 6px 6px;
    border-radius: 8px;
}

.dropdown-menu.fs-13.dropdown-menu-end .dropdown-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
}

.dropdown-menu.fs-13.dropdown-menu-end .dropdown-item span {
    margin: 0 8px 0 0 !important;
}
.bg-light {
    /* background-color: #edf2f6 !important; */
    background-color: #fff !important;
}
.small {
    font-size: .875em !important;
}
.fs-3 {
    font-size: 3px !important;
}
.fs-13 {
    font-size: 13px !important;
}
.fs-11 {
    font-size: 11px !important;
}
.fw-500 {
    font-weight: 500 !important;
}
.ln-0 {
    line-height: 0px !important;
}
.ln-18 {
    line-height: 18px;
}
.ln-25 {
    line-height: 25px !important;
}
.rounded-4 {
    border-radius: 14px;
}
.rounded-5{
    border-radius: 8px !important;
}
.form-control:focus {
    border-color: none;
    box-shadow: none;
}
.bg-warning-100 {
    background-color: #f6f3e6;
}
.fix-sidebar {
    position: sticky;
    top: 20px;
}
.sticky-sidebar2 {
    position: sticky;
    top: 20px;
}
.rotate-320 {
    transform: rotate(320deg);
}
.c-form-check-input {
  border:2px solid #909090;
  cursor: pointer;
}
.form-check-input:checked, .c-form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.chat-text {
    padding: 9px 13px !important;
}
.ltsp-n5 {
    letter-spacing: -5px !important;
}

/* Material icons css */
.md-3 {
    font-size: 3px !important;
}
.md-13 {
    font-size: 13px !important;
}
.md-14 {
    font-size: 14px !important;
}
.md-16 {
    font-size: 16px !important;
}
.md-18 {
    font-size: 18px !important;
}
.md-20 {
    font-size: 20px !important;
}
.md-28 {
  font-size: 28px !important;
}
.md-30 {
  font-size: 30px !important;
}
.md-32 {
  font-size: 32px !important;
}
.md-36 {
    font-size: 36px !important;
}
.md-48 {
    font-size: 48px !important;
}
.h6, h6 {
    font-size: 14px;
}

/* Modal */
#commentModal .modal-dialog {
    max-width: 815px;
}
#commentModal .modal-content, #commentModal .modal-content .h-600 {
    height: 600px;
}
#commentModal .content-body .user-img {
    height: 40px;
}

/* Sidebar */
.logo {
    height: 56px;
}
.navbar {
    justify-content: start;
    align-items: start;
}
.top-osahan-nav-tab {
    z-index: 9;
}
.top-osahan-nav-tab .nav-link {
    text-transform: capitalize;
    letter-spacing: 1px;
}
.navbar .navbar-item{
    width: 100%;
}
.sidebar-nav .navbar-nav a {
   display: flex;
    align-items: center;
    text-transform: capitalize;
    font-size: 15px !important;
    letter-spacing: 1px;
    color: #6c757d;
    padding: 2px 16px !important;
    border-radius: 11px;
    background: #fff;
    margin-bottom: 5px !important;
}

/* ========================================== */
/* SIDEBAR NAV LINKS — BASE                    */
/* ========================================== */
.sidebar-nav .nav-link {
    color: #4b5563 !important;
    border-left: 3px solid transparent !important;   /* reserve space so active doesn't shift layout */
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition:
        background-color 0.15s ease,
        color            0.15s ease,
        border-color     0.15s ease;
}

/* Hover state — applies to ALL nav links */
.sidebar-nav .nav-link:hover {
    background-color: #f3f4f6 !important;
    color: #6366f1 !important;
}

.sidebar-nav .nav-link:hover .material-icons {
    color: #6366f1 !important;
}

/* ========================================== */
/* ACTIVE STATE                                */
/* ========================================== */
.sidebar-nav .nav-link.active {
    background-color: #e7f1ff !important;
    color: #6366f1 !important;
    font-weight: 600;
    border-left: 3px solid #6366f1 !important;
}

.sidebar-nav .nav-link.active .material-icons {
    color: #6366f1 !important;
}

/* ========================================== */
/* ACTIVE + HOVER — "ALIVE" DEEPEN             */
/* ========================================== */
/* Slightly darker background + deeper indigo so the user
   feels the item is still interactive, while staying
   visually distinct from the plain :hover state. */
.sidebar-nav .nav-link.active:hover {
    background-color: #dbe8ff !important;    /* one step deeper than #e7f1ff */
    color: #4f46e5 !important;               /* deeper indigo */
    border-left-color: #4f46e5 !important;
}

.sidebar-nav .nav-link.active:hover .material-icons {
    color: #4f46e5 !important;
}

.sidebar-nav .navbar-nav .dropdown-menu {
    position: static !important;
    transform: unset !important;
    padding: 0px !important;
    border: none;
    background: transparent;
}
.sidebar-nav .navbar-nav .dropdown-menu a {
    padding: 7px 14px !important;
    font-size: 13px !important;
    margin: 2px 0px !important;
    border-radius: 3px !important;
    color: blue !important;
}
.sidebar-nav .navbar-nav a:hover, .sidebar-nav .navbar-nav a.active {
    color: #000000;
    background: #f8f8f8;
    /* box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; */
}
.dropdown-toggle::after {
    margin-left: auto;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: #f8f9fa;
    border-bottom: 2px solid #0d6efd;
    border-radius: 0px;
    color: #000 !important;
}
.image-slider .slick-prev {
    z-index: 9;
    left: 20px;
}
.image-slider .slick-next {
    z-index: 9;
    right: 10px;
}
.image-slider img {
    width: 489px;
    height: 600px;
    object-fit: cover;
}
.slick-prev:before, .slick-next:before {
    color: #f8c146 !important;
}

/* Index */
.user-list-item .img-fluid {
    height: 60px;
    width: 60px;
}
.btn-check:active+.btn-outline-primary .follow, .btn-check:checked+.btn-outline-primary .follow {
    display: none;
}
.btn-check:active+.btn-outline-primary .following, .btn-check:checked+.btn-outline-primary .following {
    display: block !important;
}


/* ========================================== */
/* SIDEBAR NAVIGATION STYLES */
/* ========================================== */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100vh;          /* or your sidebar's height */
    overflow: hidden;       /* outer container doesn't scroll */
    padding: 0;
}

.sidebar-nav > .pb-4 {
    flex-shrink: 0;         /* logo stays put */
}

.sidebar-nav .navbar-nav {
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s;
}

.sidebar-nav .navbar-nav:hover {
    scrollbar-color: rgba(0,0,0,0.3) transparent;
}

/* WebKit */
.sidebar-nav .navbar-nav::-webkit-scrollbar {
    width: 6px;
}
.sidebar-nav .navbar-nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}
.sidebar-nav .navbar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
}

.sidebar-nav .logo { max-width: 120px; height: auto; }

.nav-group-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    padding: 12px 16px 6px;
    font-weight: 600;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    color: #495057;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.nav-item .nav-link:hover {
    background: #f8f9fa;
}

.nav-item .nav-link.active {
    background: linear-gradient(135deg, #f0edff, #e8e5f5);
    font-weight: 600;
}

.nav-item .nav-link .material-icons { font-size: 20px; flex-shrink: 0; }
.nav-item .nav-link span:last-child { flex: 1; }

/* Nav Badges */
.nav-badge {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    background: #dc3545;
    color: #fff;
    font-weight: 600;
    margin-left: auto;
    animation: badgePulse 2s ease-in-out infinite;
}

.nav-badge.new { background: #ff6b6b; }
.nav-badge.completed { background: #00b894; }
.nav-badge.success { background: #28a745; }

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Coin Display */
.nav-coin-display {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    background: #f8f9fa;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.nav-coin-display .coin-emoji { font-size: 14px; }
.nav-coin-display .coin-amount { color: #f39c12; }

/* Auth Section */
.auth-section {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
}

/* The clickable wrapper becomes the flex row */
.user-info .user-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;                 /* take remaining width, push logout to the right */
    min-width: 0;            /* allow text truncation to work */
    text-decoration: none;   /* remove underline from <a> */
    color: inherit;          /* don't inherit link blue */
    border-radius: 10px;
    padding: 4px;
    margin: -4px;            /* offset the padding so layout is unchanged */
    transition: background 0.2s ease;
}

.user-info .user-profile-link:hover {
    background: #f8f9fa;
}

.user-info .user-profile-link:focus-visible {
    outline: 2px solid #6c5ce7;
    outline-offset: 2px;
}

.user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

.user-info .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info .user-details { flex: 1; min-width: 0; }

.user-info .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .user-email {
    font-size: 12px;
    color: #6c757d;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .logout-btn {
    color: #adb5bd;
    text-decoration: none;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.user-info .logout-btn:hover {
    color: #dc3545;
    background: #f8f9fa;
}

.user-info .logout-btn .material-icons { font-size: 20px; }

/* Login/Register Buttons */
.auth-buttons { display: flex; flex-direction: column; gap: 10px; }

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.btn-login:hover {
    background: #e9ecef;
    border-color: #6c5ce7;
    color: #6c5ce7;
}

.btn-login .material-icons { font-size: 20px; }

.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-register .arrow { transition: transform 0.3s ease; }
.btn-register:hover .arrow { transform: translateX(4px); }

.auth-message {
    text-align: center;
    font-size: 12px;
    color: #adb5bd;
    margin: 12px 0 4px;
}

.in label {
  font-weight: 600 !important;
  font-size: 16px !important;
  margin-bottom: 3px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-group-label { display: none; }
    .nav-item .nav-link { padding: 8px 12px; font-size: 14px; }
    .nav-item .nav-link .material-icons { font-size: 18px; }
    .nav-coin-display { font-size: 12px; padding: 1px 8px; }
    .auth-section { padding: 8px 12px; }
    .user-info .user-avatar { width: 32px; height: 32px; }
    .user-info .user-name { font-size: 13px; }
    .btn-login, .btn-register { font-size: 13px; padding: 8px 12px; }
}

/* Menu Container — ✅ FIX: removed duplicate block */
#menuDesktopContainer {
    display: block !important;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item { display: list-item !important; }

.nav-item .nav-link {
    display: flex !important;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    color: #495057;
    transition: all 0.25s ease;
    text-decoration: none;
    font-weight: 500;
}

.nav-item .nav-link:hover {
    background: #f8f9fa;
    color: #6c5ce7;
}

.nav-item .nav-link.active {
    background: linear-gradient(135deg, #f0edff, #e8e5f5);
    color: #6c5ce7;
    font-weight: 600;
}


.c-group-img-lg{
  border-top-left-radius:15px !important;
  border-bottom-left-radius:15px !important;
  object-fit:cover !important;
}

.c-group-card .card-body{
  border-top-left-radius:0px !important;
  border-top-right-radius:15px !important;
  border-bottom-left-radius:0px !important;
  border-bottom-right-radius:15px !important;
}

.c-group-card .col-md-4 {
  border-top-left-radius:15px !important;
  border-bottom-left-radius:15px !important;
}

.c-group-card .col-md-8 {
  border-top-right-radius:15px !important;
  border-bottom-right-radius:15px !important;
}

.pf-item img {
    height: 60px;
}
.pf-item {
    align-items: center;
}
.account-slider .account-item .position-absolute {
    bottom: 4px;
    right: 0;
    left: 0;
}
.feeds .feed-item img.user-img {
    height: 50px;
}
.account-follow .account-item img {
    height: 50px;
}
.langauge-item .btn-language {
    border: 1px solid #dee2e6;
}
.btn-check:active+.btn-language, .btn-check:checked+.btn-language, .btn-language.active, .btn-language.dropdown-toggle.show, .btn-language:active {
    background-color: #0d6efd;
    color: #ffffff;
    font-weight: bold;
    border: 1px solid #0d6efd !important;
}
.btn-check:checked+.btn-language span {
    color: #ffffff !important;
    font-weight: bold !important;
}
.btn-check:focus+.btn, .btn:focus {
    box-shadow: none;
}
#email {
    display: none;
}
.offcanvas.offcanvas-start {
    width: 250px;
}
.comments img {
    height: 36px;
    min-width: 36px;
    width: 36px;
}
.ov-icon {
    font-size: 9px !important;
    padding: 3px !important;
}

/* Profile */
.profile img {
    height: 65px;
}
.followers img {
    height: 25px;
    border: 2px solid #fff;
    margin: 0 -6px 0 0px;
}

/* Media Css */
@media (max-width: 576px) {
    .m-sm-none {
        display: none !important;
    }

    .c-item-content{
      width:72% !important;
      padding-left: 5px !important;
    }

    .c-item-content-p{
      padding-left: 0px !important;
    }

    .c-item-menu{
      width:28% !important;
      padding: 0px !important;
    }

    .c-quiz-title a, .c-group-title a{
      font-size:15px !important;
    }

    .c-category a{
      font-size: 11px !important;
    }

    .c-quiz-tags .btn{
        padding: 1px 2px !important;
        font-size: 10px !important;
    }

    img.c-group-img-lg{
      max-height: 150px !important;
      width: 100% !important;
      border-top-left-radius: 15px !important;
      border-top-right-radius: 15px !important;
      border-bottom-left-radius: 0px !important;
      border-bottom-right-radius: 0px !important;
    }

    .c-group-card .card-body{
      border-top-left-radius:0px !important;
      border-top-right-radius:0px !important;
      border-bottom-left-radius:15px !important;
      border-bottom-right-radius:15px !important;
    }

    .footer-copyright.c-footer-copyright.c-footer {
      display: none;
    }

    .c-instructions-page {
      padding: 0px !important;
    }

    .c-jumbotron {
      padding: 10px !important;
    }

    .instruction-card p {
      font-size: 0.90rem !important;
      line-height: 1.2rem !important;
    }

    .instruction-card .icon {
      font-size: 0.70rem !important;
    }

    .c-read-instructions{
      font-size:0.85rem !important;
    }

    .c-question{
      font-size: 1.1rem !important;
    }

    .c-options-container{
      font-size: 0.9rem !important;
    }

    .c-question-number{
      font-size: 0.9rem !important;
    }

    .c-options-container .option-label {
      padding: 0px !important;
      font-size: 1.0rem !important;
      gap: 0px !important;
    }

    .c-options-container span{
      font-size: 1.0rem !important;
    }

    #options-container {
      gap: 0px !important;
    }

    button.option-button {
      padding: 0px !important;
      font-size: 1.2rem !important;
      margin: 0px !important;
    }

    .c-quiz-title a, .c-group-title a{
      display: inline-block !important;
      width: 240px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .c-questions{
      display: inline-block !important;
      width: 80px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .c-price-sm{
      display: inline-block !important;
      width: 80px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .c-quiz-category{
      display: inline-block !important;
      width: 100px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
}

@media (max-width: 992px) {
    .lg-none {
        display: none;
    }
    .main-content {
        width: 100% !important;
    }
    .web-none.d-flex.align-items-center.px-3.pt-3 {
        background: #fff;
        border-bottom: 1px solid #dee2e6;
        padding: 0.6rem 1rem !important;
    }
    img.img-fluid.logo-mobile {
        height: 36px;
    }
    button.ms-auto.btn.btn-primary.ln-0 {
        padding: 2px 3px !important;
        width: 33px !important;
    }
    .col-md-2.ps-0.offcanvas.offcanvas-start.show{
        padding: 0px !important;
    }

      .c-quiz-title a, .c-group-title a{
        font-size:15px !important;
      }

      .c-category{
        font-size: 11px !important;
      }

      .c-quiz-tags .btn{
        padding: 1px 2px !important;
        font-size: 10px !important;
      }
}
@media (max-width: 1200px) {
    .m-none {
        display: none !important;
    }
    .main-content {
        width: 75%;
    }
    .side-trend {
        width: 25%;
    }
    .web-none.d-flex.align-items-center.px-3.pt-3 {
        background: #fff;
        border-bottom: 1px solid #dee2e6;
        padding: 0.6rem 1rem !important;
    }
    img.img-fluid.logo-mobile {
        height: 36px;
    }
    button.ms-auto.btn.btn-primary.ln-0 {
        padding: 2px 3px !important;
        width: 33px;
    }
    .col-md-2.ps-0.offcanvas.offcanvas-start.show{
        padding: 0px !important;
    }
}
@media (min-width: 1200px) {
    .web-none {
        display: none !important;
    }
    .mt-web-5 {
        margin-top: 1.3rem !important;
    }
    .px-web-0 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    .web-none.d-flex.align-items-center.px-3.pt-3 {
        background: #fff;
        border-bottom: 1px solid #dee2e6;
        padding: 0.6rem 1rem !important;
    }
    img.img-fluid.logo-mobile {
        height: 36px;
    }
    button.ms-auto.btn.btn-primary.ln-0 {
        padding: 2px 3px !important;
        width: 33px;
    }
    .col-md-2.ps-0.offcanvas.offcanvas-start.show{
        padding: 0px !important;
    }
}

/* Dark */
.theme-switch-wrapper {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: fixed;
    z-index: 99999;
}

.theme-switch {
    width: 40px;
    height: 40px;
    background: #000;
    color: #ececec;
    border-radius: 50px;
    font-size: 20px;
    margin: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dark .theme-switch {
    background: #ececec;
    color: #000;
}

.theme-switch-wrapper em {
    display: none;
}

.theme-switch-wrapper #checkbox {
    display: none;
}

.dark body {
    background-color: #000;
    color: #ececec;
}

.dark .web-none{
    background-color: #000 !important;
    border-bottom: 1px solid #292929 !important;
}

.dark .bg-white {
    background-color: #1b1b1b !important;
}
.dark .border-bottom,
.dark .border-top,
.dark .border-start,
.dark .border-end {
    border-color: #292929 !important;
}

.dark .text-body{
    color: #ececec !important;
}

.dark .nav-pills .nav-link.active, .dark .nav-pills .show>.nav-link {
    background-color: #000000;
    border-bottom: 2px solid #0d6efd;
    border-radius: 0px;
    color: #fff !important;
}

.dark .modal-backdrop {
    background-color: #5b5b5b;
}

.dark .modal-footer {
    border-top: 1px solid #000000;
}

.dark .text-black{
    color: #ececec !important;
}

.dark .text-dark {
    color: #ececec !important;
}

.dark .dropdown-menu,
.dark .search-results,
.dark .search-section .search-results,
.dark .search-section .search-container .search-result-item {
    background-color: #000;
}

.dark .dropdown-menu .dropdown-item{
    color: #ececec !important;
}

.dark .dropdown-menu .dropdown-item:hover {
    background: #1b1b1b;
    color: #ececec !important;
}

.dark .search-section .search-container .search-result-item:hover {
    background-color: #1b1b1b;
    color: #ececec !important;
}

.dark .navbar-nav .nav-item .nav-link{
    background-color: #101010;
}

.dark .navbar-nav .nav-item .nav-link.active{
    background-color: #1b1b1b;
    color: #ececec;
}

.dark .navbar-nav .nav-item .nav-link:hover{
    background-color: #1b1b1b;
    color: #ececec;
}

.dark .navbar-nav .dropdown-menu .dropdown-item{
    background-color: #101010;
}

.dark .navbar-nav .dropdown-menu .dropdown-item:hover{
    background-color: #1b1b1b;
    color: #ececec;
}

.dark .accordion .accordion-item{
    background-color: #000;
    color: #ececec;
    border-color: #292929;
}

.dark .accordion .accordion-item button{
    background-color: #000 !important;
    color: #ececec;
}

.dark .accordion .accordion-item button::after{
    color: #ececec !important;
}

.dark .modal-content,
.dark .resume-modal-content,
.dark .resume-modal-card {
    background-color: #000;
}

.dark .bg-light {
    background-color: #101010 !important;
}

.dark .inv-modal,
.dark .inv-modal-header {
   background-color: #000 !important;
}

.dark .modal-header,
.dark .inv-modal-header,
.dark #createQuizModal .modal-header,
.dark .resume-modal-card {
    border: 1px solid #000;
}

.dark .modal-body .bg-white{
    background-color: #1b1b1b !important;
}

.dark .modal-body .bg-light{
    background-color: #101010 !important;
}

.dark .close {
    color: #ececec !important;
}

.dark .btn {
    color: #ececec;
}

.dark a.text-dark:focus,
.dark a.text-dark:hover {
    color: #ececec !important;
}

.dark .list-card-image a.btn,
.dark .cart-items-number .btn {
    border: 3px solid #252525;
    background: #000;
    box-shadow: none;
}

.dark .cart-items-number {
    background: #000000;
}

.dark .hc-nav-trigger {
    color: #0e6dfd;
}

.dark label {
    color: #ececec;
}

.dark .hc-offcanvas-nav .nav-container,
.dark .hc-offcanvas-nav .nav-wrapper,
.dark .hc-offcanvas-nav ul {
    background: #25282e;
}

.dark .hc-offcanvas-nav li:not(.custom-content) a {
    color: #a3a6a9;
    background: rgba(0, 0, 0, 0);
    border-bottom: 1px solid #33353e;
}

.dark .hc-offcanvas-nav li:not(.custom-content) a:hover {
    color: #ececec;
    background: #000000 !important;
    border-bottom: 1px solid #000000;
}

.dark .hc-offcanvas-nav li.nav-close a,
.dark .hc-offcanvas-nav li.nav-back a {
    border-top: 1px solid #33353e;
    border-bottom: 1px solid #33353e;
}

.dark .hc-offcanvas-nav .nav-item {
    background: rgba(0, 0, 0, 0);
    border-bottom: 1px solid #343a40;
}

.dark .hc-offcanvas-nav ul.bottom-nav {
    border-top: 1px solid #343a40;
}

.dark .form-control,
.dark .lbd-dynamic-filter-input,
.dark .lbd-search-input,
.dark .inv-search-input {
    border: 1px solid #333538;
    background-color: transparent !important;
    font-size: 13px;
    box-shadow: none !important;
    color: #ececec;
}

.dark .form-select,
.dark .lbd-filter-select,
.dark .edt-quiz .form-edit-select {
    border: 1px solid #333538;
    background-color: transparent !important;
    font-size: 13px;
    box-shadow: none !important;
    color: #ececec;
}

.dark .form-select option,
.dark .lbd-filter-select option,
.dark .edt-quiz .form-edit-select option {
    background-color: #1b1b1b !important;
    color: #ececec;
}

.dark .text-muted {
    color: #99a2ab !important;
}

.dark .list-card-image img {
    margin: 0;
    background: #ececec;
    padding: 17px;
    min-width: 100%;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.dark .slick-dots li.slick-active button:before {
    opacity: .75;
    color: #ececec;
}

.dark .slick-dots li button:before {
    color: #ececec;
}

.dark .list-card-osahan-2 .img {
    width: 100%;
    padding: 22px;
    margin-bottom: 15px;
}

.dark .schedule .nav-link.active,
.dark .schedule .nav-link:focus {
    color: var(--primary-color) !important;
    background: #1b1b1b;
    border-color: #292929;
}

.dark .schedule .nav-link:hover {
    background: #1b1b1b;
    border-color: #292929;
}

.dark .nav-tabs {
    border-bottom: 1px solid #292929;
}

.dark .btn.btn-light,
.dark .lbd-filter-chip {
    background-color: #292929 !important;
    border-color: #292929;
    color: #757575;
}

.dark .btn.btn-light:hover{
    opacity: 0.9;
}

.dark .c-quiz-title a,
.dark .c-group-title a,
.dark .c-quiz-title,
.dark .item-title,
.dark .c-subtotal,
.dark .c-tax,
.dark .c-total,
.dark .payment-option h4,
.dark .item-price,
.dark .item-price-lg,
.dark .c-quiz-price,
.dark .c-quiz-price-sm,
.dark .c-quiz-container,
.dark .c-quiz-container .price,
.dark .total-price,
.dark .total-price span,
.dark .total .c-total,
.dark .c-total-price,
.dark .c-price-sm,
.dark .c-item-title,
.dark .lbd-filter-chip,
.dark .discard-modal-title {
  color: #ececec !important;
}

.dark .c-user,
.dark .average-rating p,
.dark .c-category a,
.dark .c-questions,
.dark .subtotal,
.dark .tax,
.dark .total,
.dark #question-number {
  color: #99a2ab !important;
}

.dark .c-category svg path {
  fill: #99a2ab !important;
}

.dark .c-answer-label,
.dark .cart-total-quantity,
.dark .item-quantity {
  color: #99a2ab !important;
}

.dark .btn-close,
.dark .inv-close-btn {
  background-color: #101010 !important;
}

.dark .btn-close:hover,
.dark .inv-close-btn:hover {
  background-color: #1b1b1b !important;
}

.dark .qz-image-edit-icon,
.dark .qz-close-btn {
  background-color: #282828 !important;
  opacity:0.7;
}

.dark .qz-image-edit-icon:hover,
.dark .qz-close-btn:hover {
  background-color: #333 !important;
}

.dark .payment-option {
  border: 1px solid #404040;
}

.dark .payment-option:hover{
  opacity: 0.8 !important;
  background-color: inherit !important;
}

.dark .remove-button:hover {
  background-color: #282828;
}

.dark .instruction-card {
  background-color: #1b1b1b !important;
  color: #ececec !important;
  }

 .dark .c-quiz-edit label{
  color: #ccc !important;
 }

 .dark .upload-area,
 .dark ul.list-group.c-list-group li.list-group-item{
  background-color: #000 !important;
 }

 .dark .upload-area {
    border: 1px solid #101010 !important;
 }

 .dark .c-quiz-results,
 .dark ul li.c-list-group-item{
  background-color: #000 !important;
 }

 .dark ul li.c-list-group-item:hover{
    background-color: #1b1b1b !important;
    color: #ececec !important;
 }

.dark .instruction-card p,
.dark .option-button span,
.dark .option-button.selected span,
.dark .c-quiz-edit input[type="text"],
.dark .c-quiz-edit textarea,
.dark .c-quiz-edit select,
.dark .c-container-about .section_2 h2,
.dark .c-container-about .section_2 h3,
.dark .feature .material-icons,
.dark .c-container-about .section_2 p,
.dark .c-modal-heading,
.dark .c-about-group,
.dark .c-about-content h5,
.dark .c-rank h5,
.dark .c-rank h5.c-no,
.dark .c-page-heading,
.dark .empty-state h3,
.dark .c-title-color,
.dark .profile-content .full-name span,
.dark .stat-item .stat-value,
.dark .success-message h3,
.dark .c-competition-title,
.dark .c-ranking-more-info span,
.dark .content-header h2,
.dark .form-check-label.c-options,
.dark ul li.c-list-group-item a,
.dark ul li.c-list-group-item .material-icons,
.dark .modal-content .c-option,
.dark .card-body .card-title,
.dark .c-container-about .introduction h1,
.dark h2.inv-modal-title,
.dark .inv-selected-title,
.dark .inv-selected-count {
  color: #ececec !important;
}

.dark .c-about-content ul li{
  color: #99a2ab !important;
}

.dark .c-page-subheading,
.dark .modal-body .c-input-label{
  color: #ccc !important;
}

.dark .c-not-found,
.dark .stats-card,
.dark .c-not-interested {
  background-color: #1b1b1b !important;
  border: 1px solid #1b1b1b !important;
}

.dark .stats-row .stat-item,
.dark .stats-grid .stat-item {
  background-color: #1b1b1b !important;
}

.dark .stat-item .stat-label,
.dark .performance-text,
.dark .c-report-info strong,
.dark .success-message p,
.dark .c-not-interested .flex-grow-1,
.dark .c-not-interested button{
  color: #99a2ab !important;
}

.dark .modal-content{
  border: 1px solid #282828 !important;
}

.dark .c-inbox .container{
  background-color: #1b1b1b !important;
}

.dark .c-inbox .header .action-bar{
  background-color: #292929 !important;
}

.dark .c-inbox .container .messages-list,
.dark .c-inbox .container .message-detail,
.dark .actions button{
  border: 1px solid #333 !important;
}

.dark .actions button:hover,
.dark .profile-content,
.dark .c-answer-label{
  background-color:#292929 !important;
}

.dark .c-inbox .container .header{
  border-bottom: 1px solid #333 !important;
}

.dark .c-ranking-more-info b{
  color: #99a2ab;
}

.dark .app-container .sidebar,
.dark .content-body{
  background-color: #1b1b1b !important;
}

.dark .history-item:hover {
    background-color: #202020;
}

.dark .history-container .quiz-title,
.dark .quiz-title a,
.dark h3.quiz-title span,
.dark .group-title a{
  color: #ececec !important;
}

.dark a.category-badge,
.dark .quiz-categories span,
.dark .quiz-info .questions-badge{
  color: #808080 !important;
}

.dark .groups-container .joined {
  background-color: #353535 !important;
}

.dark .groups-container .joined:hover {
  background-color: #282828 !important;
}

.dark .settings-nav li:hover,
.dark .settings-nav li.active {
   background-color: #282828 !important;
}

.dark .c-inbox .messages-list,
.dark .c-inbox .message-detail {
  background-color: #1b1b1b !important;
}

.dark .message-item {
  border-bottom: 1px solid #333 !important;
}

.dark .message-item:hover,
.dark .c-inbox .message-item.selected {
  background-color: #202020 !important;
}

.dark .c-inbox .message-item.unread {
        background-color: #292929 !important;
    }

.dark .history-container .stat-badge {
   background-color: #202020 !important;
}

.dark .history-container .filter-btn,
.dark .ge-filter-container .filter-btn {
  background-color: #3C3D3F !important;
  border: 1px solid #3C3D3F !important;
  color: #99a2ab !important;
}

.dark .history-container .filter-btn i,
.dark .ge-filter-container .filter-btn i {
  color: #99a2ab !important;
}

.dark .history-container .filter-btn.active,
.dark .ge-filter-container .filter-btn.active {
    background: var(--primary-color) !important;
    color: #ececec !important;
}

.dark .history-container .filter-btn.active i,
.dark .ge-filter-container .filter-btn.active i {
    color: #ececec !important;
}

.dark .history-item,
.dark .fw-tabs {
  border-bottom: 1px solid #333 !important;
}

.dark .history-container .action-btn {
  background-color: #3C3D3F !important;
}

.dark .history-container .action-btn:hover {
  background-color: #353535 !important;
}

.dark .search-bar input[type='text'],
.dark .cr-search-bar input[type='text'] {
  border:1px solid #353535 !important;
  color: #99a2ab !important;
}

.dark .search-bar input[type='text']:focus{
  outline: 1px solid #505050 !important;
}

.dark .quiz-categories .category-tag{
  background-color: #292929;
  color: var(--primary-color);
}

.dark .quiz-categories .category-tag.subcategory-tag{
  background-color: #292929;
  color: #388e3c;
}

.dark .category-tag,
.dark .tag {
  background-color: #292929;
  color: #99a2ab;
}

.dark .category-tag:hover,
.dark .tag:hover {
  background-color: #333 !important;
  color:#fff !important;
}

.dark .quiz-result-card .quiz-title,
.dark .fw-connection-info h3{
  color: #ececec !important;
}

.dark .fw-connection-info p {
  color: #99a2ab !important;
}

.dark .stats-grid .stat-item {
  border: 1px solid #333 !important;
}

.dark .quiz-history-container .section-title {
    color: #ececec !important;
    border-bottom: 1px solid #505050;
}

.dark .quiz-history-container .details-btn {
  background-color: #292929;
  color: var(--primary-color);
}

.dark .quiz-history-container .details-btn:hover {
  background-color: #292929;
  color: var(--primary-color);
  opacity: 0.9;
}

.dark .competitions-container .competition-section a.competition-title {
  color: #ececec !important;
}

.dark .competitions-container .competition-section a.competition-title:hover {
  color: #ececec !important;
  opacity: 0.9 !important;
}

.dark .config-header{
  background-color: #1b1b1b !important;
}

.dark .config-header h1 {
  color: #ececec !important;
}

.dark .config-container,
.dark .config-tab,
.dark .settings-card,
.dark .challenge-tab {
   background-color: #1b1b1b !important;
}

.dark .config-tab.active {
  background-color: #1b1b1b !important;
}

.dark .config-content .form-section input[type="text"],
.dark .config-content .form-section textarea {
  border: 1px solid #505050;
  color: #99a2ab !important;
}

.dark .config-container .action-buttons {
    border-top: 1px solid #292929;
}

.dark .config-container .form-section h3 {
    border-bottom: 1px solid #292929;
}

.dark .leaderboard-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dark .result-container .quiz-title,
.dark .mg-card-title,
.dark .mg-card-title .material-icons {
  color: #ececec !important;
}

.dark .result-container .category-badge {
  background-color: #292929 !important;
  color: #7d7d7d !important;
}

.dark .result-container .section-title {
  color: #99a2ab;
}

.dark h3.question-text {
  color: #ececec !important;
}

.dark .answer-item {
  background-color: #292929 !important;
  color: #c2c2c2 !important;
}

.dark .questions-grid .question-card,
.dark .questions-list .question-card,
.dark .quiz-intro-container,
.dark .quiz-card,
.dark .gst-container {
  border: 1px solid #1b1b1b !important;
}

.dark .lbd-card {
  border: 1px solid #292929 !important;
}

.dark .quiz-card {
  background-color: #1b1b1b !important;
}

.dark .quiz-card:hover,
.dark .lbd-card:hover,
.dark .lbd-commendation-card:hover {
 background-color: #181818 !important;
}

.dark .btn-outline,
.dark .quiz-section .btn-outline {
  background-color:#292929 !important;
  border: 1px solid #445984 !important;
  color:#fff !important;
}

.dark .btn-outline:hover,
.dark .quiz-section .btn-outline:hover{
  opacity: 0.8 !important;
  background-color:#292929 !important;
  border: 1px solid #445984 !important;
  color:#fff !important;
}

.dark .user-name, .dark .stat-value {
  color: #c2c2c2 !important;
}

.dark .group-header .group-title {
  color: #ececec !important;
}

.dark .competition-card .competition-section{
  background-color:#202020 !important;
  border-bottom: 1px solid #333 !important;
  color: #ececec !important;
}

.dark .competition-card {
  border: 1px solid #333 !important;
}

.dark .competitions-header .competitions-title {
  color: #c2c2c2 !important;
}

.dark .competitions-header .title-icon {
  background-color: #292929 !important;
}

.dark .group-header .group-type-badge {
  background-color: #292929 !important;
}

.dark .dropdown-list,
.dark li.dropdown-item,
.dark .dropdown-link{
  background-color: #000 !important;
}

 .dark li.dropdown-item:hover,
 .dark li.dropdown-link:hover{
   background-color: #99a2ab !important;
}

.dark .group-container .action-btn,
.dark .dropdown-btn{
  background-color: #292929 !important;
  color:#ececec !important;
}

.dark .question-row {
   border: 2px solid #202020 !important;
}

.dark .question-row .option-card {
  border: 1px solid #202020 !important;
}

.dark .feed-item{
     background-color: #101010 !important;
     border: 1px solid #101010 !important;
}

.dark .question-row .options-grid .option-card {
  background-color: #202020 !important;
}

.dark .question-row .options-grid .option-card .option-text {
  color:#ececec !important;
}

.dark .question-row .correct-answer-banner {
  background-color: #292929 !important;
  border: 1px solid #292929 !important;
  color:green;
}

.dark .quiz-header-card .quiz-title-text{
  color:#ececec !important;
}

.dark .quiz-badge,
.dark .subcategory-badge {
  background-color: #292929 !important;
}

.dark .content-container {
  border: 1px solid #292929 !important;
}

.dark .result-card .btn-outline {
  background-color: #292929 !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
}

.dark .quiz-page .quiz-container,
.dark .result-container {
  background-color: #1b1b1b !important;
}

.dark .quiz-header-card,
.dark .rounded-circle {
  background: #1b1b1b !important;
}

.dark .divider {
  /* border-bottom: 1px solid #292929; */
  background-color: #292929;
}

.dark .popular-quiz .quiz-details .quiz-title {
  color: #ececec !important;
}

.dark .category-card {
  background-color: #1b1b1b !important;
  border: 1px solid #292929 !important;
}

.dark .category-cards .quiz-count {
    background: #292929;
    color: #99a2ab;
}

.dark .subcategory a {
    color: #99a2ab;
}

.dark .category-header {
    background: #292929;
    color: #99a2ab;
 }

.dark .subcategory a:hover {
    background: #282828;
}

.dark .search-section .search-container .search-input,
.dark .group-search-container,
.dark .gst-input,
.dark .gst-textarea,
.dark .gst-select,
.dark .review-box textarea,
.dark .fw-search-filter,
.dark .messages-container .search-box input[type='text'] {
  background: #353535 !important;
  border:1px solid #353535 !important;
  color: #99a2ab !important;
}

.dark .fw-search-filter:focus,
.dark .messages-container .search-box input[type='text']:focus {
  outline:1px solid #353535 !important;
}

.dark .search-container input[type='text']{
  color: #99a2ab;
}

.dark .group-search-container input[type='text']{
  background: #353535 !important;
  color: #99a2ab !important;
}

.dark .rounded-circle:hover{
  background-color: #333 !important;
}

.dark .edit-btn-compact,
.dark .cancel-btn,
.dark .resume-btn-secondary {
  background-color: #333 !important;
  border: 1px solid #333 !important;
  color: #f8f8f8 !important;
}

.dark .edit-btn-compact:hover,
.dark .resume-btn-secondary:hover {
  opacity: 0.9;
  background: #333 !important;
  border: 1px solid #333 !important;
  color: #f8f8f8 !important;
}

.dark .quiz-history-container .quiz-details{
  border: 1px solid #292929 !important;
}

.dark .btn-small-outlined,
.dark .btn-outlined {
  border-color: #292929 !important;
  background: inherit !important;
  color: #EFF3F4 !important;
}

.dark .btn-small-outlined:hover,
.dark .btn-outlined:hover,
.dark .fw-connection-actions .fw-follow-btn:hover {
  border-color: #292929 !important;
  background: inherit !important;
  color: #EFF3F4 !important;
}

.dark .btn-small-outlined,
.dark .btn-outlined,
.dark .btn-primary {
  border-color: #292929 !important;
}

.dark .head-section{
  background: #1b1b1b !important;
}

.dark .group-card-header{
  background: #1b1b1b !important;
  border-color: #292929 !important;
}

.dark .groups-container .groups-list .group-card{
  background-color: #1b1b1b !important;
  border-color: #292929 !important;
}

.dark .groups-container .groups-list .group-card:hover{
  background-color: #292929 !important;
  border-color: #292929 !important;
}

.dark .manage-group-container,
.dark .header-group-container {
  background: #1b1b1b !important;
}

.dark .header-group-container h1 {
  color: #ececec !important;
}

.dark .content .section-title,
.dark .gst-danger-zone p {
  color: #ececec;
}

.dark .tabs-container .tab:hover {
    color: #99a2ab;
    background-color: #282828;
}

.dark .tabs-container .tab.active {
    color: #99a2ab;
    background-color: #333;
}

.dark .tabs-container .tabs {
    border-bottom: 1px solid #282828;
}

.dark .c-list-group-item,
.dark .search-section .search-container .search-result-item {
    border-bottom: 1px solid #101010;
}

.dark .content .user-item {
  border: 1px solid #282828;
  background-color: inherit;
}

.dark .content .user-item:hover {
  background-color: #282828 !important;
}

.dark .user-role{
  color: #99a2ab !important;
}

.dark .content .icon-btn,
.dark .user-role,
.dark .content .status-invited {
    background: #292929 !important;
    color: #99a2ab !important;
}

.dark .content .icon-btn:hover,
.dark .user-role:hover {
    background: #282828 !important;
}

.dark .gs-danger-zone{
  border: 1px solid #282828;
  color: #99a2ab !important;
}

.dark .gs-nav-item {
  border-bottom: 3px solid #282828 !important;
}

.dark .gs-section-title {
    border-bottom: 1px solid #282828;
    color: #99a2ab !important;
}

.dark .ge-search-input,
.dark .ge-filter-select,
.dark .mg-search-input,
.dark .lb-search-input {
  background: #353535 !important;
  border:1px solid #353535 !important;
  color: #99a2ab !important;
}

.dark .ge-content {
  background: #101010;
}

.dark .ge-group-card {
  background: #1b1b1b;
}

.dark .ge-group-description {
  color: #cecece;
}

.dark .ge-group-btn.ge-pending {
  background: #292929;
  color: #cecece;
  border: 1px solid #292929;
}

.dark .ge-group-btn.ge-pending:hover {
  background: #292929;
}

.dark .ge-group-card .ge-group-title a {
  color: #99a2ab;
}

.dark .ge-group-card,
.dark .mg-user-item,
.dark .mg-user-item:hover{
  border: 1px solid #282828;
}

.dark .mg-user-item span,
.dark .lb-competition-title {
  color: #c2c2c2 !important;
}

.dark .mg-icon-btn {
  background: #282828 !important;
}

.dark .mg-icon-btn:hover {
  background: #353535 !important;
}

.dark .mg-user-name,
.dark .mg-section-title {
  color: #f8f8f8;
}

.dark .mg-user-badge,
.dark .mg-role-member,
.dark .mg-role-admin,
.dark .mg-role-owner {
  background: #1f2937;
  color: #c2c2c2;
}

.dark .mg-tabs-container,
.dark .mg-card-header,
.dark .gst-top-nav,
.dark .gst-header,
.dark .result-container .result-header {
    border-bottom: 1px solid #292929;
}

.dark .leaderboard-row,
.dark .lb-search-input,
.dark .start-quiz-container {
    border: 1px solid #292929 !important;
}

.dark .c-quiz-content h2,
.dark .rating-section h4,
.dark .challenge-card h5 {
    color: #cecece !important;
}

.dark .lb-search-input,
.dark .c-quiz-content ul li,
.dark .rating-feedback {
   color: #c2c2c2 !important;
}

.dark .mg-tab-badge,
.dark .mg-tab.mg-active .mg-tab-badge,
.dark .lb-search-item  {
  background-color: #292929;
  color: inherit !important;
}

.dark .lb-search-:hover  {
  background-color: #282828 !important;
  color: inherit !important;
}

.dark .lb-btn-change-competition.btn-light {
  background: #1f2937 !important;
  color: #c2c2c2 !important;
}

.dark .lb-search-results {
  color: #1e293b !important;
  border-bottom: 1px solid #282828 !important;
  color: #99a2ab !important;
}

.dark .btn-icon{
  fill:#99a2ab !important;
}

.dark .cmp-group-description{
  background-color: inherit !important;
  border: 1px solid #101010 !important;
}

.dark .cr-user-card,
.dark .fw-container,
.dark .mg-content-card {
  border: 1px solid #282828 !important;
}

.dark .cmp-list,
.dark .cmp-container {
  background-color: #101010 !important;
  border: 1px solid #101010 !important;
}

.dark .qz-upload-container {
   border: 1px solid #333 !important;
}

.dark .cmp-list-item,
.dark .qz-upload-header,
.dark .c-inbox .message-detail-header {
  border-bottom: 1px solid #282828 !important;
}

.dark .qz-upload-area:hover,
.dark .qz-upload-area.dragover {
    background-color: #202020;
    border-color: #0056b3;
}

.dark .cr-user-card:hover {
  border: 1px solid #333 !important;
}

.dark .cmp-list-item h3,
.dark .cmp-group-description h2 {
  color: #f8f8f8 !important;
}

.dark .cmp-list-item p,
.dark .cmp-group-description p,
.dark .qz-upload-header h5 {
  color: #cecece !important;
}

.dark .ge-meta {
  border-top: 1px solid #282828 !important;
}

.dark .ge-type-badge{
  background-color: #1b1b1b !important;
}

.dark .instructions-header{
  background-color: #282828 !important;
}

.dark .instructions-header h1,
.dark .result-header h3,
.dark .score-percent {
  color: #cecece !important;
}

.dark .result-item,
.dark .img-label,
.dark .c-feedbacks .report-item label {
  color: #ececec !important;
}

.dark .result-item:hover {
    background-color: inherit !important;
}

.dark .result-item h6,
.dark .c-feedbacks .report-item .description {
  color: #a3a6a9 !important;
}

.dark .follow-btn.not-following {
  background-color: inherit !important;
  color:var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
}

.dark .lbd-card-details {
    border-top: 1px solid #202020;
    border-bottom: 1px solid #202020;
}

.dark .lbd-commendation-card {
   background-color: #1b1b1b;
}

.dark .lbd-quiz-title {
   color: #a3a6a9 !important;
}

.dark .lbd-user-badge,
.dark .lbd-rank-badge,
.dark .scroll-btn {
   background-color: #282828 !important;
   color: #ececec !important;
}

.dark .lbd-user-avatar {
    border: 3px solid #383838;
}

.dark .option-label {
    background-color: #282828 !important;
    color: #ececec !important;
    border: 1px solid #383838;
 }

.dark .quiz-card-inner {
    background: #1b1b1b;
    border-color: #1b1b1b !important;
}

.dark .author-name,
.dark .challenge-opponent-name {
    color: #e1e4ea;
}

.dark .author-handle,
.dark .rating-count {
    color: #8a8f98;
}

.dark .star-average {
    color: #f1f3f7;
}

.dark .category-chip {
    background: #2a2a3d;
    color: #a29bfe;
}
.dark .category-chip:hover { background: #353550; }

.dark .quiz-best-score {
    background: #2e2a1a;
    border-color: #4a3d1a;
    color: #e8d68c;
}

.dark .auth-section {
    border-top: 1px solid #292929;
}

.dark .user-info .logout-btn:hover {
    background: #1b1b1b;
    color: #dc3545 !important;
}

.dark .user-info .user-profile-link:hover {
    background: inherit;
    color: #ececec;
}

.dark .stats-row {
  border-top: 1px solid #292929 !important;
}

.dark .h-chip {
  border-color: rgba(0, 184, 148, 0.1);
}

.dark .nav-coin-display {
   background: #292929;
}

.dark .sq-instructions-list li,
.dark .sq-instructions-list li:hover {
    background: #1b1b1b;
    border-color: rgba(29, 155, 240, 0.15);
    box-shadow: 0 4px 12px -4px rgba(29, 155, 240, 0.15);
    color: #ececec;
}

.dark .sq-instructions-header-row h2 {
  color: #ececec;
}

.dark .sq-instructions-lead {
   color: #909090;
}

.dark .action-link {
    color: #ececec !important;
}

.dark .action-link:hover {
    background: #1b1b1b !important;
    border: 1px solid #292929 !important;
}

.dark .result-item-correct .icon-circle {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.dark .result-item-percentage .icon-circle {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.dark .result-item-total .icon-circle {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.dark .result-item-grade .icon-circle {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

.dark .result-item-commendation .icon-circle {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.dark .card-header {
    border-bottom: 1px solid #292929;
}

.dark .streak-stat-item,
.dark .milestone-item,
.dark .reward-item,
.dark .history-period {
    background: #1b1b1b !important;
}

.dark .stat-card,
.dark .freeze-tip,
.dark .history-item,
.dark .summary-card,
.dark .action-sidebar {
   background: #1b1b1b !important;
   border: 1px solid #202020 !important
}

.dark .sidebar-item-share:hover {
    background: linear-gradient(135deg, #34d399, #047857);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.dark .sidebar-item-rematch:hover {
    background: linear-gradient(135deg, #818cf8, #4338ca);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.55);
}

.dark .sidebar-item-explore:hover,
.dark .sidebar-item-history:hover {
   background: #1b1b1b !important;
   border: 1px solid #292929 !important;
   color: #ffffff;
}

.dark .stat-card .stat-number,
.dark .milestone-item .milestone-label,
.dark .reward-value,
.dark .freeze-title,
.dark .history-title h6,
.dark .history-item .history-number,
.dark .summary-value,
.dark .opportunity-info .opportunity-name,
.dark .bonus-title {
  color: #ececec;
}

.dark .stat-card .stat-label,
.dark .freeze-description,
.dark .summary-label {
  color: #909090;
}

.dark .challenge-title,
.dark .transaction-source {
   color: #ececec;
}

.dark .reward-item,
.dark .opportunity-item {
  border: 1px solid #292929 !important
}

.dark .earn-opportunities-card,
.dark .opportunity-item,
.dark .header-badge,
.dark .daily-bonus-card,
.dark .transaction-history-card {
   background: #1b1b1b !important;
}

.dark .transaction-item {
    border-bottom: 1px solid #292929;
}

.dark .transaction-item:hover {
    background: #292929;
}

.dark .daily-challenge-widget,
.dark .daily-challenge-widget .daily-challenge-card,
.dark .daily-challenge-widget .daily-challenge-card:hover {
    background-color: #1b1b1b !important;
    color: #ececec;
    border: 1px solid #1b1b1b;
}

.dark .daily-challenge-widget h6,
.dark .xp-widget .level-title {
   color: #ececec !important;
}

.dark .daily-challenge-widget .streak-info {
    border-color: #1b1b1b !important;
}

.dark .daily-challenge-widget .milestone-text {
    color: #5d5a7a !important;
    background: #f8f6ff;
}

.dark .daily-challenge-widget .freeze-text {
    color: #0a5b8c !important;
    background: #e6f7ff;
}

.dark .daily-challenge-widget .streak-number {
    color: #6c5ce7;
}

.dark .xp-widget,
.dark .coin-widget {
   background-color: #1b1b1b !important;
   border: 1px solid #1b1b1b !important;
}

.dark .create-option,
.dark .btn-create-empty {
   background-color: #000 !important;
   border: 1px solid #292929;
}

.dark .modal-header {
   background: #000 !important;
}

.dark .create-option .option-title {
    color: #f8f8f8;
}

.dark .create-option .option-description {
    color: #ececec;
}

.dark .xp-widget .stat-item:hover {
    background: inherit;
}

.dark .xp-widget .stat-icon {
    background: #f0edff;
    color: #6c5ce7;
}

.dark .xp-widget .stat-item:hover .stat-icon {
    background: #6c5ce7;
    color: #ffffff;
    box-shadow: 0 4px 10px -2px rgba(108, 92, 231, 0.45);
}

.dark .xp-widget .daily-bonus-btn {
    background: linear-gradient(135deg, #00b894, #00cec9) !important;
    color: #ffffff !important;
}

.dark .xp-widget .daily-bonus-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00a383, #00b8b3) !important;
    box-shadow: 0 10px 20px -8px rgba(0, 184, 148, 0.75);
    color: #ffffff !important;
}

.dark .xp-widget .stat-item:nth-child(1) .stat-icon { color: #ff6b35; background: #fff0e8; }
.dark .xp-widget .stat-item:nth-child(2) .stat-icon { color: #0984e3; background: #e6f3fd; }
.dark .xp-widget .stat-item:nth-child(3) .stat-icon { color: #f39c12; background: #fff8e6; }
.dark .xp-widget .stat-item:nth-child(4) .stat-icon { color: #00b894; background: #e5f8f2; }

.dark .xp-widget .stat-item:nth-child(1):hover .stat-icon { background: #ff6b35; color: #fff; }
.dark .xp-widget .stat-item:nth-child(2):hover .stat-icon { background: #0984e3; color: #fff; }
.dark .xp-widget .stat-item:nth-child(3):hover .stat-icon { background: #f39c12; color: #fff; }
.dark .xp-widget .stat-item:nth-child(4):hover .stat-icon { background: #00b894; color: #fff; }

.dark .xp-widget .stat-icon,
.dark .xp-widget .stat-text,
.dark .xp-widget .xp-to-next,
.dark .step-header h4 {
    color: #ececec !important;
}

.dark .coin-widget .border-top,
.dark .xp-widget .border-top {
    border-color: #1b1b1b !important;
}

.dark .recommendation-toggle-wrapper {
    border: 1px solid #292929;
}

.dark .modal-divider::before,
.dark .modal-divider::after {
    background: #292929;
}

.dark .bg-gradient-light {
    background: linear-gradient(135deg, #282828 0%, #1b1b1b 100%);
}

.dark .vs-section,
.dark .challenger-player,
.dark .opponent-player {
    background: #1b1b1b;
    border-bottom: 1px solid #292929;
}

.dark .vs-player {
    border: 2px solid #292929;
}

.dark .challenger-player { border-left: 4px solid #6c5ce7; }
.dark .opponent-player { border-left: 4px solid #00b894; }

.dark .comparison-section {
    background: #1b1b1b;
}

.dark .comparison-card {
  background: #181818 !important;
  border: 1px solid #292929;
}

.dark .logo {
   color:#fff;
}

.dark .wizard-steps,
.dark .wizard-step,
.dark .review-card,
.dark .wizard-body,
.dark .wizard-footer {
   background: #1b1b1b;
}

.dark .review-card {
  border: 2px solid #292929;
}

.dark .review-item {
    border-bottom: 1px solid #292929;
}

.dark .review-card-header {
    color: #ececec;
}

.dark .review-item-label {
    color: #909090;
 }

.dark .review-item-value {
    color: #ececec;
 }

.dark .wizard-steps {
    border-bottom: 1px solid #1b1b1b;
}

.dark .wizard-footer {
    border-top: 1px solid #1b1b1b;
}

.dark .cover-option {
  background: #1b1b1b;
  border:3px solid #292929;
}

.dark .category-option,
.dark .difficulty-option,
.dark .subcategory-option {
    background: #1b1b1b;
    border:2px solid #292929;
    color: #ececec !important;
}

.dark .category-option:hover,
.dark .category-option:hover,
.dark .subcategory-option:hover {
    background: #1b1b1b;
    border:2px solid #333;
    color: #ececec !important;
}

.dark .category-option.selected {
    border-color: #6c5ce7;
    background: #6c5ce7;
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.dark .difficulty-option.selected {
    border-color: #6c5ce7;
    background: #1b1b1b;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.15);
}

.dark .subcategory-option.selected {
    border-color: #6c5ce7;
    background: #6c5ce7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.dark .difficulty-name {
    color: #ececec;
 }

 .dark .dropzone-title {
    color: #d4d4d4;
 }

.dark .import-info {
    background: #1b1b1b;
    border: 1px solid #292929;
}

.dark .import-info h6,
.dark .resume-modal-title,
.dark .resume-modal-card-label .material-icons {
    color: #ececec;
}

.dark .format-content pre {
    background: #1b1b1b;
    border: 1px solid #292929;
    color: #d4d4d4;
}

.dark .question-item {
    background: #1b1b1b;
    border: 2px solid #292929;
}

.dark .import-dropzone {
    border: 3px dashed #292929;
    background: #1b1b1b;
}

.dark .import-dropzone:hover {
    border-color: #292929;
    background: #202020;
}

.dark .import-dropzone.dragover {
    border-color: #292929;
    background: #292929;
}

.dark .format-badge {
    background: #292929;
    border: 1px solid #292929;
    color: #ececec;
}

.dark .btn-outline-primary {
    border: 1px solid #445984 !important;
    outline: none !important;
    background-color:#445984 !important;
    color:#fff !important;
}

.dark .my-quiz-item {
    background: #1b1b1b;
    border: 2px solid #292929;
}

.dark .my-quiz-item:hover {
    border-color: #6c5ce7;
    background: #202020;
}

.dark .my-quiz-item.selected {
    border-color: #6c5ce7;
    background: #1b1b1b;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.dark .my-quiz-title {
  color:#d4d4d4;
}

.dark .my-quiz-badge,
.dark .template-badge,
.dark .daily-challenge-widget .milestone-text {
    background: #1b1b1b;
    border: 1px solid #292929;
    color: #d4d4d4;
}

.dark .daily-challenge-widget .freeze-text {
    color: #0a5b8c !important;
    background: #1b1b1b;
    border: 1px solid #292929;
}

.dark .source-badge {
    background: linear-gradient(135deg, #1b1b1b, #101010);
    border: 2px solid #292929;
}

.dark .customize-section {
    background: #1b1b1b;
    border: 2px solid #292929;
}

.dark .customize-section-title {
    color: #d4d4d4;
}

.dark .template-q-item {
    background: #1b1b1b;
    border: 1px solid #292929;
}

.dark .template-q-text {
   color: #d4d4d4;
}

.dark .import-q-preview,
.dark .template-card {
    background: #1b1b1b;
    border: 1px solid #292929;
}

.dark .import-q-text,
.dark .template-name {
    color: #d4d4d4;
}

.dark .template-card:hover {
  background: #1b1b1b;
}

.dark .import-opt,
.dark .filter-chip {
    background: #292929;
    border: 1px solid #292929;
    color: #d4d4d4;
}

.dark .import-opt.correct {
    background: #101010;
    border-color: #28a745;
    color: #155724;
}

.dark .filter-chip:hover {
    background: #292929;
    color: #d4d4d4;
}

.dark .template-card:hover {
    border-color: #6c5ce7;
    background: #1b1b1b;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.12);
}

.dark .template-card.selected {
    border-color: #6c5ce7;
    background: #1b1b1b;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.dark .template-badge-review {
    background: #1b1b1b;
    border: 2px solid #292929;
}

.dark .daily-challenge-widget .streak-progress {
    background: #3C3D3F !important;
}

.dark .daily-challenge-widget .streak-progress .progress-bar {
    background: linear-gradient(90deg, #fdcb6e, #f39c12, #ffb347) !important;
}

/* Animated shine on progress bar */
.dark .daily-challenge-widget .streak-progress .progress-bar::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.dark .xp-widget .xp-progress {
    background: #3C3D3F !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.03);
}

.dark .xp-widget .xp-progress .progress-bar {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #8e7cff) !important;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.45);
}

/* Animated shine on progress bar */
.dark .xp-widget .xp-progress .progress-bar::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.dark .coin-widget .earn-title .material-icons {
    color: #f39c12;
    background: #1b1b1b;
}

.dark .xp-widget .xp-display {
    color: #6c5ce7 !important;
    background: #292929;
    border: 1px solid #343434;
}

.dark .form-control::placeholder {
    color: #808080;
}

.dark .progress-track {
    background: #292929;
}

.dark .progress-container {
    background-color: #292929;
}

.dark .streak-overview-card,
.dark .daily-challenge-card,
.dark .streak-freeze-card,
.dark .challenge-history-card {
    border:1px solid #1b1b1b;
}

.dark .resume-modal-card-row + .resume-modal-card-row {
    border-top: 1px dashed #101010;
}

.dark .challenge-card-ui {
   background: #1b1b1b;
   border: 1px solid #1b1b1b;
}

.dark .challenge-quiz-title {
   color: #ececec;
}

.dark .challenge-card-body {
    border-top: 1px solid #202020;
    border-bottom: 1px solid #202020;
}

.dark .challenge-btn-outline {
    background: #181818 !important;
    color: #b4b6bb !important;
    border: 1px solid #292929 !important;
}

.dark .challenge-btn-outline .material-icons {
  color: #b4b6bb !important;
}

.dark .challenge-btn-outline:hover {
    background: #181818 !important;
    border-color: #292929 !important;
    color: #b4b6bb !important;
}

.dark .challenge-pill-success,
.dark .challenge-pill-danger,
.dark .challenge-pill-warning,
.dark .challenge-pill-info,
.dark .challenge-pill-muted {
    background: #161617;
}

.dark .challenge-empty {
   background: #101010;
}

.dark .challenge-tabs,
.dark .empty-state {
  background: #101010 !important;
}

.dark .challenge-error {
  background: #1b1b1b;
}

.dark button.unhide-btn {
  background-color: #292929 !important;
  color:#d4d4d4 !important;
}

.dark .daily-challenge-empty .empty-icon-wrapper {
    background: #292929;
}

.dark .sidebar-nav .nav-link.active {
    background-color: #292929 !important;
}

.dark .sidebar-nav .nav-link.active .material-icons {
    color: #6366f1 !important;
}

.dark .sidebar-nav .nav-link.active:hover {
    background-color: #282828 !important;
}

.dark .sidebar-nav .nav-link:hover {
    background-color: #282828 !important;
    color: #6366f1 !important;
}

.dark .c-inbox .mark-read-btn {
    background-color: #292929 !important;
}

.dark .c-inbox .mark-read-btn:hover {
    background-color: #282828 !important;
}

.dark .c-inbox .delete-btn {
    background-color: #292929 !important;
}

.dark .c-inbox .delete-btn:hover {
    background-color: #282828 !important;
}

.dark .ge-group-btn.ge-joined {
    background: #e7f6ec;
    color: #1a7f3c;
    border: 1px solid #292929;
}

.dark .c-radio-item,
.dark .radio-item {
    border: 1px solid #1b1b1b;
}

.dark .c-radio-title,
.dark .radio-title {
    color: #d4d4d4;
}

.dark .inv-user-item {
    border-bottom: 1px solid #101010;
}

.dark .inv-user-item:hover {
    background-color: #282828;
}

.dark .inv-user-item.selected {
    background-color: #1b1b1b;
}

.dark .inv-selected-item {
    background-color: #101010;
    border-bottom: 1px solid #101010;
}

.dark .inv-search-container,
.dark .inv-selected-header {
    border-bottom: 1px solid #101010;
}

.dark .inv-modal-footer {
    border-top: 1px solid #101010;
}

.dark .inv-user-checkbox {
   background: #101010 !important;
}

.dark .inv-empty-icon {
    background-color: #101010;
    color: #d4d4d4;
}

.dark .discard-modal-content {
    background-color: #101010;
    color: #d4d4d4;
}

.dark .nav-pills .nav-link.active,
.dark .nav-pills .show>.nav-link {
    background-color: #1b1b1b;
    border-bottom: 2px solid #1b1b1b;
    color: #d4d4d4 !important;
}

.dark .nav-item .nav-link:hover {
    background: #1b1b1b;
}

.dark .nav-item .nav-link.active {
    background: linear-gradient(135deg, #101010, #1b1b1b);
}

.dark .form-floating label {
   color: #ececec !important;
}


/* Custom CSS */
.c-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color:var(--text-color) !important;
}

.mr-5{
  margin-right: 5px !important;
}

.mr-6{
  margin-right: 6px !important;
}

.mr-7{
  margin-right: 7px !important;
}

.mr-8{
  margin-right: 8px !important;
}

.btn-check:checked+.btn-outline-primary {
    border: 1px solid #445984 !important;
    outline: none !important;
    background-color:#445984 !important;
    color:#fff !important;
}

.text-bg-primary{
    background-color:#445984 !important;
    color:#fff !important;
}

.bg-primary{
  background-color:#445984 !important;
}

.c-categories .badge{
    padding: 6px 12px !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
    margin-right: 3px !important;
    font-weight: 500 !important;
    border-radius: 25px !important;
    background-color: #ffff !important;
    color: #445984 !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
}

.c-categories .badge:hover{
    opacity: 0.9 !important;
}

.c-border{
    border: 1px solid var(--danger-color) !important;
}

.c-quiz-tags{
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

.c-quiz-tags .btn, .c-quiz-tags-sm .btn{
    padding: 2px 8px !important;
    font-size: 12px !important;
    background-color: #f0f0f0 !important;
    margin-right: 3px !important;
    margin-top: 3px !important;
}

.c-quiz-tags-sm .btn{
    padding: 2px 4px !important;
    font-size: 11px !important;
}

.c-view-profile-btn{
    font-size: 13px !important;
}

.c-category a{
    color: var(--text-color) !important;
    font-size: 12px;
    /* font-weight: 600 !important; */
    text-decoration: none !important;
}

.c-user{
    text-decoration: none !important;
    color:var(--text-color) !important;
}

.c-user:hover{
    color:#445984 !important;
}

.c-color{
  color:#445984 !important;
}

.c-price, .c-price-sm{
  font-weight:600 !important;
  color:#000 !important;
  font-size:16px !important;
}

.c-price-sm{
    font-size:13px !important;
}

.c-hr-spacer{
    margin-left: 7px !important;
    margin-right: 7px !important;
}

.c-company-name{
  font-size:14px;
}

.c-date{
  font-size:13px;
}

.c-date-sm{
    font-size:11px;
  }

.c-quiz-price, .c-quiz-price-sm{
  font-size:16px !important;
  color:#000 !important;
}

.c-quiz-price-sm{
    font-size:14px !important;
  }

.c-quiz-title a, .c-group-title a{
  color:var(--heading-color) !important;
  font-size:15px;
  line-height:1.2rem !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.c-quiz-category{
  margin-bottom:6px !important;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown a{
  cursor:pointer !important;
}

button.carousel-control-prev, button.carousel-control-next{
    position:absolute !important;
    top:42% !important;
    width: 28px !important;
    height: 28px !important;
    background-color: #f0f0f0 !important;
    border-radius: 100px !important;
    padding: 5px !important;
}

button.carousel-control-next{
    margin-right: 4px !important;
}

button.carousel-control-prev{
    margin-left: 4px !important;
}

.c-login-options button{
    border: 1px solid #ececec !important;
}

.c-login-options button:hover{
    background-color: #F8F8F8 !important;
}

.pull-left{
  float: left !important;
}

.pull-right{
    float: right !important;
  }

.text-center{
    text-align: center !important;
}

.text-right{
    text-align: right !important;
}

.text-left{
    text-align: left !important;
}

.modal {
    background: rgba(0, 0, 0, 0.5);
  }

.mt-5{
    margin-top: 5px !important;
  }

.mt-10{
    margin-top: 10px !important;
  }

  .c-sign-container{
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
  }

  .c-sign-row{
    width: inherit; /* Box width */
    height: inherit; /* Box height */
    display: flex; /* Optional: Center content inside the box */
    justify-content: center; /* Horizontal centering of text */
    align-items: center; /* Vertical centering of text */
  }

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

  p.c-no-account{
    font-size: 15px !important;
    text-align: center !important;
  }

  .c-forgot-password{
    font-size: 14px !important;
  }

.c-side-heading{
    font-size: 16px !important;
}

img.c-quiz-img, img.c-group-img{
  height: 60px;
  width: 60px;
  max-height: 60px;
  max-width: 60px;
  object-fit:cover !important;
  border-radius: 10px !important;
  margin-right: 2px !important;
}

.c-google-social{
    text-decoration: none !important;
    background-color: inherit !important;
}

.c-alert-message{
    line-height: 1.9rem;
    font-weight: 600;
    width: 100% !important;
  }

  .c-register-status{
    line-height: 1.1rem !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
  }

  .c-spinner{
    position: relative;
    top: 50%;
    left: 50%;
    color:#445984 !important;
    display: none;
  }

  svg.c-badge{
    fill:#ffcc00 !important;
    margin-left: 4px !important;
  }

  .c-category small a{
    color: var(--secondary-color) !important;
    text-decoration: none !important;
  }

  .c-category small a:hover{
    text-decoration: underline !important;
  }

  .c-popular-user{
    text-decoration: none !important;
    color:var(--text-color) !important;
  }

  .c-popular-user:hover{
    text-decoration: underline !important;
  }

  .bg-badge{
    background-color: var(--badge-color);
  }

  .text-decoration-none{
    color: var(--text-color) !important;
  }

  .c-profile-img{
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
  }

  .c-profile-img-lg{
    width:100px !important;
    height:100px !important;
    min-width:100px !important;
    min-height:100px !important;
    border-radius: 100% !important;
    object-fit:cover !important;
  }

  .c-user-container a{
    text-decoration: none !important;
    color: var(--text-color) !important;
  }

/* Feedbacks */
.c-feedbacks .container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.c-feedbacks h1 {
    text-align: center;
    color: #444;
}
.c-feedbacks .scrollable {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    /* padding-right: 10px; */
    /* border: 1px solid #ddd; */
    border-radius: 5px;
}

.c-feedbacks .report-item {
    margin-bottom: 20px;
}

.c-feedbacks .report-item input[type="radio"] {
    margin-right: 10px;
}

.c-feedbacks .description {
    margin-left: 30px;
    color: #555;
    font-size: 14px;
}

.c-feedbacks .custom-text {
    margin-top: 20px;
}

.c-feedbacks textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

.c-feedbacks .report-item label {
    font-weight: 600 !important;
    color:#303030 !important;
    font-size: 16px !important;
}

/* Success Message */
.success-message {
  text-align: center !important;
  padding: 20px 0 !important;
}

.success-message .material-icons {
  font-size: 60px !important;
  color: #34a853 !important;
  margin-bottom: 15px !important;
}

.success-message h3 {
  color:#303030 !important;
  margin-bottom: 10px;
}

.success-message p {
  color:#303030 !important;
  font-size: 14px !important;
}

.show {
  display: block;
}

.hide {
  display: none;
}

.c-issue-heading{
  font-size: 16px !important;
}

.c-issue{
    font-size: 15px !important;
  }

  .c-modal-title{
    font-size: 16px !important;
    font-weight: 600 !important;
    color:#333 !important;
  }

  .c-ml-4{
    margin-left: 4px !important;
  }

  .d-none{
    display:none !important;
  }

/* Start Image Upload CSS */
.upload-area img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: none;
}
.upload-area.drag-over {
    border-color: #007bff;
    background-color: #f0f8ff;
}
.upload-area button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    display: none;
}
.upload-area .hidden {
    display: none;
}

.upload-area p{
    font-size: 14px !important;
}

/*  */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: #f9fafb;
}

.upload-area.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.upload-area.error-border {
    border-color: #ef4444;
    background-color: #fef2f2;
}

#uploadedImage {
    max-width: 100%;
    max-height: 200px;
    display: none;
    margin: 0 auto;
    border-radius: 4px;
}

#removeImage {
    display: none;
    margin-top: 10px;
    padding: 5px 15px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#removeImage:hover {
    background-color: #dc2626;
}

.hidden {
    display: none;
}

.c-input-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

/* Ensure proper spacing */
.modal-body .row {
    margin-bottom: 1rem;
}

.btn-grid {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}
/*  */
/* End Image Upload CSS */

.modal-header h6{
    font-size: 18px !important;
}

.modal-body .c-modal-content-margin-top{
    margin-bottom: 4px !important;
    font-size:14px !important;
    font-weight: 600 !important;
    color:#404040 !important;
}

.hidden {
  display: none !important;
}

.c-red-bg{
    background-color: var(--danger-color);
}

.show {
  display: block !important;
}

ul.c-report-info{
  padding: 2px !important;
}

ul.c-report-info li{
  font-size: 15px !important;
  margin-top: 5px !important;
}

ul.c-report-info li strong{
    font-size: 15px !important;
    color:#000 !important;
  }

.c-block-lbl{
  margin: 10px 0px !important;
}

.main-content .input-group,
.main-content .input-group input[type="text"]{
  cursor: pointer !important;
}

.c-create-quiz{
  margin:auto !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.c-create-quiz svg {
  margin-right: 5px !important;
}

.c-modal-heading{
  font-size: 16px !important;
  color:#303030 !important;
  font-weight: 600 !important;
}

.input-error{
  display:none;
  color:var(--danger-color);
}

/* Start Image CSS */
   /* Container for image and edit icon */
   .image-container {
    position: relative;
    /* min-width: 150px !important;
    min-height: 150px !important; */
    border-radius: 100%;
}

/* Image styling */
.image-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

/* Edit icon in the center */
/* .edit-icon  */
.edit-icon-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 2.0em;
    /* background-color: rgba(0, 0, 0, 0.5); */
    padding: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}

#fileInputContainer{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* File input styling */
.file-input-container {
    display: none;
    margin-top: 10px;
    text-align: center;
}

/* Style file input button */
.file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/* Custom label styling for file input */
.file-input-label {
    padding: 10px;
    background-color: #000;
    border-radius: 100%;
    cursor: pointer;
    opacity: 0.7;
    width: 50px;
    height: 50px;
    text-align: center !important;
}

.file-input-label-sm {
    padding: 5px;
    background-color: #000;
    border-radius: 100%;
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center !important;
}

/* File name display styling */
.file-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* End Image CSS */

.c-input-error{
    color:var(--danger-color) !important;
    font-size: 13px !important;
}

/* Start Quiz CSS */
.c-quiz-container.container {
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.c-quiz-container .quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.c-quiz-container .quiz-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #343a40;
}

.c-quiz-container .quiz-header p {
    font-size: 1rem;
    color: #6c757d;
}

.c-quiz-container .quiz-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.c-quiz-container .quiz-info {
    margin-bottom: 20px;
}

.c-quiz-container .quiz-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.c-quiz-container .quiz-info p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

.c-quiz-container .quiz-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.c-quiz-container .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.c-quiz-container .currency {
    font-size: 1rem;
    color: #495057;
}

.c-quiz-container .status {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #6c757d;
}

.c-quiz-container .status span {
    margin-right: 20px;
}

.c-quiz-container .button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.c-quiz-container .button:hover {
    opacity: 0.9;
}
/* End Quiz CSS */

.accordion-button.c-accordion-button{
  font-size: 20px !important;
}

.buy-section {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between price and button */
    float: right;
  }

  .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
  }

  .buy-button {
    background-color: #4CAF50;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .buy-button:hover {
    background-color: #45a049;
  }

  .buy-button:active {
    background-color: #3e8e41;
  }

  /* Start Cart CSS */
  .item-details {
    display: flex;
    /* gap: 7px; */
    margin: 20px 0px 0px 0px;
    align-items: center;
  }

  .item-details img {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover !important;
    margin-right: 10px !important;
  }

  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
  }

  .quantity-controls span, .quantity-controls b{
    font-size: 14px !important;
    margin-top: 10px;
  }

  .modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
  }

  .c-item-title{
    font-size: 16px !important;
    font-weight: 600 !important;
    color:var(--heading-color);
    line-height: 1.1rem !important;
  }

  .c-item-price{
    font-size: 18px !important;
    font-weight: 600 !important;
    color:#000 !important;
  }

  /* Modal Actions Container */
.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    /* border-top: 1px solid #ddd; */
    margin-top: 1rem;
  }

  /* Buttons Styling */
  .go-to-cart-button,
  .close-modal-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* Go to Cart Button */
  .go-to-cart-button {
    background-color: var(--primary-color);
    color: white;
    border-radius: 25px !important;
    width: 100%;
  }

  .go-to-cart-button:hover {
    opacity: 0.9;
  }

  /* Close Modal Button */
  .close-modal-button {
    background-color: #B8B8B8;
    color: white;
    border-radius: 25px !important;
    font-size: 15px !important;
  }

  .close-modal-button:hover {
    opacity: 0.9 !important;
    background-color: #B8B8B8;
    color: white;
  }

  /* Responsive Design */
  @media (max-width: 600px) {
    .modal-actions {
      flex-direction: column; /* Stack buttons on smaller screens */
      gap: 1rem; /* Add space between buttons */
    }

    .go-to-cart-button,
    .close-modal-button {
      width: 100%; /* Full-width buttons for mobile */
    }
  }

  /* Start Cart List CSS */
  .cart-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
  }

  .cart-container h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
  }

  .cart-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .cart-item {
    display: flex;
    gap: 10px;
    /* background-color: #f9f9f9; */
    padding: 4px 10px !important;
    /* border: 1px solid #f1f1f1; */
    border-radius: 8px;
    align-items: center;
    /* box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); */
  }

  .item-image {
    width: 100px !important;
    height: 80px !important;
    min-width: 100px !important;
    min-height: 80px !important;
    object-fit: cover;
    border-radius: 15px;
    /* border: 1px solid #ddd; */
  }

  .c-item-details {
    flex-grow: 1;
    /* margin-top: 14px !important; */
  }

  .item-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color:var(--heading-color);
    line-height: 1.1rem !important;
    margin: 0 0 1px 0;
  }

  .item-price, b.item-price, .item-price-lg {
    font-size: 15px !important;
    font-weight: 600 !important;
    color:#000 !important;
  }

  .item-price-lg {
    font-size: 22px !important;
  }

  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .quantity-controls button {
    padding: 0px 8px !important;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
  }

  .quantity-controls button:hover {
    opacity: 0.9;
  }

  .item-quantity {
    font-size: 14px !important;
    color: #333;
    /* margin-top: 8px !important; */
  }

  .remove-button {
    /* margin-top: 10px; */
    padding: 5px 6px !important;
    /* border: none; */
    border-radius: 8px !important;
    background-color: inherit;
    color: var(--text-color) !important;
    cursor: pointer;
    font-size: 13px !important;
    display: flex;
    align-items: center !important;
    text-align: center !important;
  }

  .remove-button .material-icons {
    font-size: 20px !important;
  }

  .remove-button:hover {
    background-color: #f8f8f8;
  }

  .cart-footer {
    text-align: center;
    margin-top: 20px;
  }

  .total-price {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
  }

  .total-price span {
    color: #000;
  }

  .checkout-button, .checkout-container .checkout-button {
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 25px !important;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500 !important;
    width: 100% !important;
    display: block !important;
  }

  .checkout-button:hover {
    opacity: 0.9;
  }

  @media (max-width: 768px) {
    .cart-item {
      flex-direction: column;
      align-items: flex-start;
    }

    .item-image {
      width: 100%;
      height: auto;
    }

    .quantity-controls {
      gap: 5px;
    }
  }
 /* End Cart List CSS */
 /* End Cart CSS */

 /* Start Checkout CSS */
 .checkout-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
  }

  .checkout-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }

  .checkout-container .cart-list {
    /* border-bottom: 1px solid #ddd; */
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .checkout-container .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
  }

  .checkout-container .cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
  }

  @media (max-width: 768px) {
    .checkout-container .cart-item img {
      flex-direction: column;
      align-items: flex-start;
    }

    .checkout-container .cart-item img {
      width: 100%;
      height: auto;
    }
  }

  .checkout-container .item-details {
    flex: 1;
    margin-left: 10px;
  }

  .checkout-container .checkout-summary p {
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
  }
 /* End Checkout CSS */

 /* Start Payment CSS */
 .payment-container {
    max-width: 600px;
    /* margin: auto; */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  }

  .payment-header {
    text-align: center;
  }

  .payment-header h1, .checkout-container h1{
    font-size: 24px !important;
    margin-bottom: 10px !important;
  }

  .payment-header p{
    font-size: 14px !important;
  }

  .payment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #F0F0F0;
    border-radius:20px !important;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .payment-option img {
    width: 120px;
    height: 60px;
  }

  .payment-option h5{
    font-size: 16px !important;
    font-weight: 600 !important;
    color:#000 !important;
  }

  .payment-footer {
    text-align: center;
    margin-top: 20px;
  }

  .btn-back {
    background-color: #ddd;
    border: none;
    padding: 10px 20px;
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
  }

  .btn-back:hover {
    background-color: #ccc;
  }
  /* End Payment CSS */

  .checkout-summary .c-subtotal, .checkout-summary .c-tax, .checkout-summary .c-total{
    font-weight: 600;
  }

  .total-price{
    color: var(--text-color) !important;
  }

  .c-total-price{
    font-size: 22px !important;
    color: #000!important;
  }

  .checkout-summary .c-total, .c-total{
    font-size: 20px !important;
    color: #000 !important;
    font-weight: 600 !important;
  }

  .c-orderno{
    font-weight: 600 !important;
  }

  .c-total-price-desc{
    font-weight: 500 !important;
    color: var(--text-color) !important;
    font-size: 14px !important;
  }

  /* Start Quiz CSS */
  .quiz-search {
    width: 300px;
    margin: 50px auto;
    text-align: center;
}
.quiz-search input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
.quiz-search ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 22px);
}
.quiz-search ul li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}
.quiz-search ul li:hover {
    background: #f0f0f0;
}

.search-container {
  position: relative; /* This makes sure quizResults is positioned relative to this */
}

.c-quiz-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  border-radius: 20px;
  padding: 0px !important;
  display: none;
}

.c-list-group-item{
    font-size: 12px !important;
    padding: 6px !important;
    list-style-type: none !important;
    cursor: pointer !important;
}

.c-list-group-item:hover{
    background-color: #f8f8f8 !important;
}

.c-list-group-item .material-icons {
    font-size: 20px;
    color: #555;
}
/* End Quiz CSS */

/* Start Questions */
.main-content .page {
    text-align: center;
    /* background-color: #fff; */
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
    /* max-width: 500px; */
    width: 100%;
    margin: auto !important;
  }

  .main-content .hidden {
    display: none;
  }

  .main-content button {
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
  }

  button:hover {
    opacity: 0.9;
  }

  #options-container {
    display: flex;
    flex-direction: column;
    gap: 0px !important;
    margin-top: 20px !important;
    background-color: inherit !important;
  }

  #options-container button {
    background-color: inherit !important;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }

  #options-container button:hover {
    background-color: var(--primary-color);
    color: #fff;
    opacity: 0.9;
  }

  #timer {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
  }

  #progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
  }

  #progress {
    height: 100%;
    background-color: #007bff;
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
  }

  #question-number {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
  }

  #question {
    font-size: 1.5rem;
    margin-bottom: 10px !important;
  }

  #options-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  button.option-button {
    display: flex;
    align-items: center;
    background-color: inherit !important;
    border: none !important;
    padding: 8px 0px !important;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.2rem !important;
    margin: 0px !important;
    gap:0px !important;
    /* transition: background-color 0.3s ease, transform 0.3s ease; */
  }

  .option-button.selected {
    background-color: var(--success-color) !important;
    color: #fff;
    border-color: var(--success-color) !important;
  }

  .option-button.selected span{
    color:var(--success-color) !important;
    font-weight: 500 !important;
  }

  .option-button span{
      font-size: 16px !important;
      color: var(--text-color) !important;
      font-weight: 500 !important;
  }

  .option-button span:hover{
      font-size: 16px !important;
      color:var(--success-color) !important;
      font-weight: 500 !important;
  }

 .option-label {
    font-weight: bold;
    margin-right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #fff;
    border:1px solid #F0F0F0;
    border-radius: 50%;
    font-size: 1.2rem !important;
    color: #333;
  }

  .option-button:hover {
     background-color: #e0e0e0;
     font-size: 1.2rem !important;
     font-weight: 500 !important;
  }

  .option-button.selected .option-label {
    background-color:var(--success-color) !important;
    color: #fff !important;
    border-color: var(--success-color) !important;
  }

  .c-lead{
    font-size: 18px !important;
  }

  .instructions-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 25px;
  }

  .instruction-card {
    display: flex;
    align-items: center;
    /* background-color: #f9f9f9; */
    padding: 5px 0px;
    border-radius: 10px;
  }

  .instruction-card .material-icons {
    font-size: 1.1rem !important;
    margin-right: 5px !important;
  }

  .instruction-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.1rem !important;
  }

  .rounded-50{
    border-radius: 50px !important;
  }

  .c-btn-light{
    background-color: #E8E8E8 !important;
  }

  .c-btn-light:hover{
    opacity: 0.9 !important;
  }

  .c-passed, .c-failed{
    font-weight: 600 !important;
  }

  .c-passed{
    color: var(--success-color) !important;
  }

  .c-failed{
    color: var(--danger-color) !important;
  }

  .c-passed span.material-icons, .c-failed span.material-icons{
    font-size: 32px !important;
    vertical-align: middle !important;
  }

  .c-passed span.material-icons{
    color: var(--success-color) !important;
   }

  .c-failed span.material-icons{
    color: var(--danger-color) !important;
   }

   .c-level{
     font-size: 18px !important;
   }

.fail{
  font-size: 50px !important;
  font-weight: 600 !important;
  color:var(--danger-color) !important;
}

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

.c-result-text{
  margin-bottom: 0px !important;
}

.c-score-heading{
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 3px !important;
    margin-bottom: 1px !important;
}
/* End Questions */

.jumbotron {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 20px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.c-more-actions{
  margin-top: 30px !important;
}

.c-more-actions a{
  font-size: 15px !important;
}

.c-more-actions a:hover{
  text-decoration: none !important;
}

/* Start Preview Quiz CSS */
.quiz-result-item {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.quiz-result-item:hover {
  transform: translateY(-5px);
}

#quiz-preview {
  margin-top: 20px;
}

.hidden {
  display: none;
}


.correct {
  color: var(--success-color);
  font-weight: bold;
  font-size: 16px !important;
}

.incorrect {
  color: var(--danger-color);
  font-weight: bold;
}

.question-preview {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.c-quiz-results-item p{
  font-size: 1.0rem !important;
  color: #282828 !important;
}

.c-quiz-preview p, .c-question p {
  font-size: 1.0rem !important;
}
/* End Preview Quiz CSS */

.c-material-icon{
  color: #C0C0C0 !important;
  font-size: 14px !important;
  margin-right: 3px !important;
}

.c-not-interested{
  background-color: #f8f8f8 !important;
  border: 1px solid #f0f0f0 !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  width: 100% !important;
  font-size: 15px !important;
  border-radius: 20px !important;
}

.c-not-interested button{
  color: #000 !important;
  font-size: 15px !important;
}

.c-answer-label{
  font-size: 14px !important;
  color:#000;
  margin-left: 17px !important;
  background-color: #f8f8f8 !important;
  padding: 5px !important;
  border-radius: 3px !important;
}

a{
  cursor: pointer;
}

/* Timer Container */
#timer-container {
  display: flex;
}


/* ========================================== */
/* LOADER */
/* ========================================== */

/* ---------- Loading State ---------- */
.qz-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 40px 20px;
}

.qz-loading-state .qz-spinner-container {
    text-align: center;
}

/* Custom spinner ring */
.qz-spinner-ring {
    display: inline-block;
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 6px;
}

.qz-spinner-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 42px;
    height: 42px;
    margin: 6px;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: qz-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-top-color: #1d9bf0;
}

.qz-spinner-ring div:nth-child(1) { animation-delay: -0.45s; border-top-color: #1d9bf0; }
.qz-spinner-ring div:nth-child(2) { animation-delay: -0.3s; border-top-color: #6a5af9; }
.qz-spinner-ring div:nth-child(3) { animation-delay: -0.15s; border-top-color: #a78bfa; }
.qz-spinner-ring div:nth-child(4) { animation-delay: 0s; border-top-color: #1d9bf0; }

@keyframes qz-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qz-loading-text {
    font-size: 0.85rem;
    color: #536471;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0;
}

/* ---------- Error State ---------- */
.qz-loading-state .text-danger .material-icons {
    font-size: 52px;
    filter: drop-shadow(0 4px 8px rgba(220, 53, 69, 0.2));
}

body[data-theme="dark"] .qz-loading-text {
    color: #8b98a5;
}

body[data-theme="dark"] .qz-cta-hint {
    color: #8b98a5;
}


/* Spinner Styles */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--text-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-left: 3px;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.c-questions{
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem !important;
}

#error-message {
  color: var(--danger-color);
  font-weight: bold;
  margin-top: 10px;
  display: none;
}

#error-message.show {
  display: block;
}

.c-error{
  font-size: 16px !important;
}

.w-100{
  width: 100% !important;
}

.btn-mr{
  margin-right: 8px !important;
}

.btn-ml{
  margin-left: 8px !important;
}

.c-modal-quiz .c-quiz-title, .c-modal-quiz .c-group-title {
  font-size: 16px !important;
  line-height: 1.3rem !important;
}

.c-modal-quiz .c-category a {
  font-size: 14px !important;
}

.c-modal-quiz .c-questions {
  font-size: 13px !important;
}

.c-question-text{
  height: 120px !important;
}

.c-option-text{
  height: 80px !important;
}

.c-question-no{
  font-weight:500 !important;
  font-size:14px !important;
  color: #808080 !important;
  line-height: 2rem !important;
}

.c-read-instructions{
  font-size:0.95rem;
}

.btn-close:hover{
  background-color: inherit !important;
}

.c-disable{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  float: left;
  color: var(--danger-color);
  margin-top: 6px;
  font-size: 13px !important;
}

.c-active{
  color: var(--success-color);
}

.rounded-circle{
  width: 30px !important;
  height: 30px !important;
  object-fit: cover !important;
  text-align: center !important;
   background-color: #f8f8f8 !important;
}

.rounded-circle:hover{
  width: 30px !important;
  height: 30px !important;
  object-fit: cover !important;
  background-color: #F5F5F5 !important;
}

.c-quiz-edit .form-control, .img-label{
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #282828 !important;
}

/* Hide the input border by default */
.no-border {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* Show the input border when editing */
.edit-mode {
  border: 1px solid #ced4da !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1) !important;
  background-color: white !important;
}

.edit-icon {
  cursor: pointer;
  margin-left: 10px;
  font-size: 14px;
}

.edit-controls {
  display: none;
  margin-left: 10px;
  gap: 5px;
}

.edit-controls button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer !important;
}

.cancel-btn {
  background-color: #E1E6EB !important;
  color: #1F1D24 !important;
  border-radius: 25px !important;
}

.c-quiz-edit textarea.form-control{
  resize: none; /* Prevent resizing */
  overflow: hidden; /* Hide scrollbars */
  min-height: 50px; /* Adjust as needed */
}

.ml-5{
  margin-left: 5px !important;
}

.ml-10{
  margin-left: 10px !important;
}

.ml-11{
  margin-left: 11px !important;
}

.ml-12{
  margin-left: 12px !important;
}

.feed-item .text-bg-secondary{
  font-size: 12px !important;
}

.c-go-back{
  text-decoration: underline !important;
  font-size: 14px !important;
}

.c-go-back:hover{
  text-decoration: none !important;
}

/* Start Rating CSS */
.average-rating {
  margin: 4px 0px 0px 0px;
}

#average-rating-stars {
  display: inline-block;
}

#average-rating-stars span {
  font-size: 14px;
  color: #ccc; /* Default color for empty stars */
  transition: color 0.2s;
}

#average-rating-stars span.active {
  color: #ffcc00; /* Yellow color for filled stars */
}
/* End Rating CSS */

.star {
  color: white !important;
  text-shadow:
  -1px -1px 0 gray,
   1px -1px 0 gray,
  -1px  1px 0 gray,
   1px  1px 0 gray; /* Gray outline */
  border-radius: 5px !important;
  font-size: 12px !important;
}

.star.active {
  color: #ffcc00 !important;
  border: none !important;
}

.half-star {
  position: relative !important;
  display: inline-block !important;
}

.half-overlay {
  position: absolute !important;
  left: 0 !important;
  width: 50% !important;
  overflow: hidden !important;
  border: none !important;
}
/* End Rating */

/* Start Rating Box */
.rating-section .stars {
  display: inline-block !important;
  align-items: center !important;
}

.rating-section .stars span {
  font-size: 12px !important;
  color: #ccc; /* Default color for empty stars */
  cursor: pointer;
  transition: color 0.2s;
}

.rating-section .stars span.active {
  color: #ffcc00; /* Yellow color for filled stars */
}

.rating-section .review-box {
  margin-top: 10px;
  gap:2px !important;
  padding: 0px !important;
}

.rating-section .review-box textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical !important;
}

.rating-section .review-box button {
  margin-top: 0px !important;
}

/* End Rating Box */

h2.modal-title{
  font-size: 22px !important;
}

ul li.c-list-group-item a{
  text-decoration: none !important;
  color: #282828;
}

.c-category a.c-quiz-category{
  font-size: 13px !important;
  }

  #postContentModal .btn-primary{
    width:150px;
    text-align: center !important;
  }

  #postContentModal .btn-light{
    width:100px;
    text-align: center !important;
  }

 #postContentModal textarea {
   height: 100px;
 }

 #btnStartQuestionsLater{
  width:140px !important;
}

 #btnStartQuestions{
  width:210px !important;
}

.c-notification .c-option{
  font-size: 16px !important;
  color:#000 !important;
}

.c-group .card-title{
  font-weight: 600 !important;
  color:#000 !important;
}
.c-group img{
  height: 100% !important;
}

.c-competitors a{
  text-decoration: none !important;
  color:#000 !important;
}

/* Start Competition CSS */
.competition-container {
  /* max-width: 600px; */
  margin: auto;
  padding: 0px;
  border-radius: 10px;
  font-size: 15px !important;
}
.competition-container table {
  width: 100%;
  border-collapse: collapse;
}
.competition-container th, .competition-container td {
  padding: 5px;
  text-align: left;
}

.competition-container td b {
  color:#000 !important;
}
/* End Competition CSS */

.text-black {
  color: #000 !important;
}

.c-about-group{
  font-size: 16px !important;
  color:#282828 !important;
}

.cursor{
  cursor: pointer !important;
}

.c-not-found{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: gray;
}

.c-not-found p{
  font-size: 15px !important;
}

.c-not-found span.not-found-icon{
  font-size: 64px !important;
}

.c-textarea-height-lg{
  min-height: 150px !important;
}

.c-textarea-height-md{
  min-height: 70px !important;
}

.modal-content{
  background-color: #fff;
}

.modal-body .btn-light{
  background-color: #D8D8D8;
  border: 1px solid #D8D8D8;
}

.modal-body .btn-light:hover{
  opacity: 0.9;
}

.edit-profile #usernameError,
.edit-profile #firstNameError,
.edit-profile #lastNameError,
.edit-profile #professionError,
.edit-profile #additionalInfoError{
  color:var(--danger-color);
  display: none;
}

/* Start Profile Image CSS */
.c-img-input-container{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-edit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 18px !important;
}

.c-edit-icon:hover {
  background: rgba(0, 0, 0, 0.6);
}

.c-file-input-label i.material-icons {
  color: white !important;
}

.c-image-container {
  position: relative;
  display: inline-block; /* or block, depending on your layout */
  border-radius: 100%;
}

.c-image-container img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.c-file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.c-image-preview{
  border-radius: 200px !important;
  width:200px !important;
  height:200px !important;
  min-width:200px !important;
  min-height:200px !important;
  object-fit: cover !important;
  border: 1px solid #E0E0E0;
  background-color: #E8E8E8;
}
/* End Profile Image CSS */

.footer-copyright.c-footer-copyright.c-footer {
  z-index: 1000;
  text-align: left !important;
}

.c-footer-copyright a{
  text-decoration: none;
  color: var(--text-color);
}

.c-footer-copyright a:hover{
  text-decoration: underline;
}

.c-container-about .introduction h1{
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #000;
}

.c-container-about .section_2 h2{
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #000;
}

.c-container-about .section_2 h3{
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #000;
}

.c-container-about .section_2 p{
  font-size: 14px !important;
}

.c-check-circle{
font-size: 14px !important;
font-weight: 600 !important;
}

.logo-mobile-lg{
  height: 64px !important;
  object-fit: cover !important;
}

.mb-20{
  margin-bottom:20px !important;
}

.text-white{
  color:#fff !important;
}

.c-settings span{
  font-size: 16px !important;
}

.c-settings{
  font-size: 16px !important;
}

.c-edit{
  cursor: pointer;
}

.c-edit:hover{
  opacity: 0.8;
}

ul.c-list-group{
margin-bottom: 15px !important;
}

ul.c-list-group li.list-group-item{
  border: none !important;
  font-size: 16px !important;
}

ul.c-list-group li.list-group-item label, ul.c-list-group li.list-group-item input[type="text"]{
  cursor: pointer !important;
}

.quiz_results_visibility_value, .notifications_value{
  font-size: 14px !important;
  font-weight: 600 !important;
  color:#000 !important;
}

.c-error-message{
  vertical-align: middle !important;
}

.c-error-message .material-icons{
  font-size: 1.2rem !important;
  color: red !important;
}

.create-btn {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  color: #f8f8f8 !important;
  border: none;
  padding: 8px 16px !important;
  font-size: 15px !important;
  border-radius: 25px !important;
  cursor: pointer;
  transition: background 0.3s ease;
}

.create-btn:hover {
  opacity: 0.9;
}

.create-btn .material-icons {
  margin-right: 4px !important;
  font-size: 20px;
}

.c-page-heading {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #000 !important;
  padding: 1px !important;
  margin-bottom: 10px !important;
}

.c-page-subheading {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #787878 !important;
  padding: 1px !important;
  margin-bottom: 15px !important;
}

.c-rank{
  background-color: #fafafa !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px !important;
}

.c-rank h5, .c-rank h5.c-no{
  color: #000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.c-ranking-more-info{
  font-size: 14px !important;
}

.c-ranking-more-info span{
  font-size: 16px !important;
  font-weight: 600 !important;
  color:#333 !important;
}

.c-competitions-heading{
  font-size: 16px !important;
}

p a.c-competition-title{
  font-size: 16px !important;
  color:#333 !important;
}

a.c-competition-title:hover{
  text-decoration: underline !important;
}

.c-title-color{
  color:#333 !important;
}

.c-not-found{
  background-color: #fff !important;
  border-radius: 15px !important;
}

.btn.c-competition-btn{
  padding:4px 10px !important;
  font-size:12px !important;
}

.c-item-content{
  width:100%;
}

.c-btn-edit {
  color: var(--primary-color) !important;
}

.c-btn-edit .material-icons{
  font-size: 28px !important;
}

.c-btn-edit .material-icons:hover{
  opacity: 0.8 !important;
}

.c-item-content{
  padding-left: 5px !important;
}

.gold .material-icons{
  color: gold !important;
}

.c-about-content p{
  font-size: 16px !important;
}

.c-about-content span, .c-about-content ul li{
  font-size: 14px !important;
}

.feature .material-icons{
  font-size: 24px !important;
}

.c-about-content h5{
  font-weight:600 !important;
  color:#000;
}

.c-stats {
  max-width:300px;
  width:100%;
  padding:10px 12px !important;
}

.dropdown ul.dropdown-menu li a.dropdown-item {
  cursor: pointer !important;
}

.alert{
  padding: 7px !important;
  display: flex;
}

.alert span{
  margin: auto 3px !important;
}

/* Start M-Pesa CSS */
.payment-button, .payment-button-pp {
  background: #00B300;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px !important;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
  position: relative;
}

.payment-button:hover {
  background: #009900;
}

.payment-button-pp{
 background-color: #0056b3;
}

.payment-button-pp:hover{
  opacity: 0.9;
 }

.loading-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes spin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

.payment-button {
  margin-top: 15px;
  display:flex !important;
}

.button-text{
  font-size: 14px;
}
/* End M-Pesa CSS */


.payment-button .spinner {
    display: none;
    margin-left: 15px !important;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--success-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
 }

.payment-option #status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.payment-option .success {
   background: #d4edda;
   color: #155724;
 }

 /* Start PayPal CSS */
 .paypal-pay-button {
  background: #FFC439;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.paypal-pay-button:hover {
  background: #F2BA37;
}

.paypal-pay-button img {
  height: 25px;
}
 /* End PayPal CSS */

 #quiz-title{
  display: none;
 }

 /* Start Blocked CSS */
 #blocked-message {
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}

#blocked-message h3 {
  color: #000;
  margin-top: 0;
  font-weight: 600;
}

.c-unblock-btn {
  margin-top: 10px;
  transition: all 0.3s ease;
}

.c-unblock-btn:hover::after {
  content: "Unblock";
}

.c-unblock-btn:hover span {
  display: none;
}
 /* End Blocked CSS */

 .c-block-lbl .material-icons{
  font-size: 18px !important;
  margin-left: 20px !important;
  vertical-align: middle !important;
  cursor: pointer !important;
 }

 p.c-group-title a:hover{
  text-decoration: underline !important;
}

.rating-feedback{
  color:#000 !important;
  font-size: 14px !important;
}

/* Start Inbox Messages */
   .c-inbox .container {
        max-width: 1200px;
        margin: 10px auto;
        padding: 20px;
        background: #f8f8f8;
        border-radius: 10px;
        box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    }

   .c-inbox .header {
        /* display: flex; */
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

   .c-inbox h1 {
        margin: 0;
        font-size: 24px;
    }

   .c-inbox .actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }

   .c-inbox .unread-counter {
        margin-left: 15px;
        font-size: 14px;
        color: var(--light-text);
    }

   .c-inbox .btn {
        padding: 8px 15px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-weight: 500;
    }

   .c-inbox .btn-outline {
        background: transparent;
        border: 1px solid var(--primary-color);
        color:var(--primary-color);
        font-size: 13px;
    }

   .c-inbox .btn-outline:hover {
        background-color: #f5f5f5;
    }

   .c-inbox .messages-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

   .c-inbox .messages-wrapper {
        display: flex;
        gap: 20px;
        height: 600px;
    }

   .c-inbox .messages-list {
        flex: 1;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow-y: auto;
        background-color: #fff;
    }

   .c-inbox .message-detail {
        flex: 2;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 20px;
        overflow-y: auto;
        background-color: #fff;
    }

   .c-inbox .empty-state {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        color: var(--light-text);
    }

   .c-inbox .search-box {
        position: relative;
    }

   .c-inbox .search-box input {
        width: 100%;
        padding: 10px 15px 10px 40px;
        border: 1px solid var(--border-color);
        border-radius: 25px;
        font-size: 14px;
    }

   .c-inbox .search-box:before {
        content: "🔍";
        position: absolute;
        left: 15px;
        top: 10px;
        font-size: 14px;
    }

   .c-inbox .message-item {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        cursor: pointer;
        transition: all 0.2s;
    }

   .c-inbox .message-item:hover {
        background-color: var(--read-bg);
    }

   .c-inbox .message-item.unread {
        background-color: var(--unread-bg);
    }

   .c-inbox .message-item.selected {
        background-color: var(--selected-color);
    }

   .c-inbox .message-checkbox {
        margin-right: 15px;
    }

   .c-inbox .message-content {
        display: flex;
        flex-direction: column;
        gap: 2px !important;
    }

   .c-inbox .message-content .message-subject{
        font-size: 13px !important;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
   }

   .c-inbox .message-content .message-preview{
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px !important;
   }

   .c-inbox .message-header {
        line-height: 1.6rem !important;
    }

   .c-inbox .message-sender {
        font-weight: 600;
    }

   .c-inbox .message-date {
        font-size: 11px !important;
        color: var(--light-text);
        float: right !important;
    }

   .c-inbox .message-preview {
        color: var(--light-text);
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

   .c-inbox .message-unread {
        display: inline-block;
        width: 8px;
        height: 8px;
        background-color: var(--primary-color);
        border-radius: 50%;
        margin-left: 5px;
    }

   .c-inbox .message-detail-header {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

     .c-inbox .message-detail-header .sender,
     .c-inbox .message-detail-header .date{
        font-size: 12px;
     }

   .c-inbox .message-detail-header h3 {
        margin: 0 0 7px 0;
        font-size: 16px;
        font-weight: 600;
    }

   .c-inbox .message-meta {
        display: flex;
        justify-content: space-between;
        font-size: 13px !important;
    }

   .c-inbox .message-body {
        line-height: 1.6;
        font-size: 15px;
        color: var(--light-text);
    }

   .c-inbox .pagination {
        display: flex;
        justify-content: center;
        gap: 5px;
    }

   .c-inbox .pagination-btn {
        padding: 8px 12px;
        border: 1px solid var(--border-color);
        background: white;
        cursor: pointer;
        border-radius: 4px;
    }

   .c-inbox .pagination-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

   .c-inbox .loading, .c-inbox .no-messages {
        text-align: center;
        padding: 20px;
        color: var(--light-text);
    }

    @media (max-width: 768px) {
       .c-inbox .messages-wrapper {
            flex-direction: column;
            height: auto;
        }

       .c-inbox .messages-list, .c-inbox .message-detail {
            flex: none;
            height: 300px;
        }
    }

.c-inbox .action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: white;
    border-radius: 12px;
}

.c-inbox .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.c-inbox .action-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.c-inbox .action-btn:hover::after {
    opacity: 0.1;
}

.c-inbox .action-btn:active::after {
    opacity: 0.2;
}

.c-inbox .btn-icon {
    transition: transform 0.2s ease;
}

.c-inbox .mark-read-btn {
    border: 1px solid rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.c-inbox .mark-read-btn:hover {
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.c-inbox .delete-btn {
    border: 1px solid rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.c-inbox .delete-btn:hover {
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.c-inbox .unread-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(74, 111, 165, 0.1);
    color: #4a6fa5;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
    transition: all 0.3s ease;
}

.c-inbox .unread-count {
    font-weight: 700;
    margin-right: 4px;
    transition: transform 0.3s ease;
}

.c-inbox .unread-pill:hover {
    background-color: rgba(74, 111, 165, 0.2);
}

.c-inbox .unread-pill:hover .unread-count {
    transform: scale(1.1);
}

/* Pulse animation when count changes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.c-inbox .unread-pill.pulse {
    animation: pulse 0.5s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .c-inbox .action-bar {
        gap: 8px;
        padding: 6px;
    }

    .c-inbox .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .c-inbox .btn-icon {
        width: 16px;
        height: 16px;
    }

    .c-inbox .unread-pill {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}
/* End Inbox Messages */

        .performance-message {
            text-align: center;
            padding: 0px !important;
        }

        .icon-container {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 2px !important;
            color: white;
            font-size: 36px;
        }

        .icon-container .material-icons {
            font-size: 72px;
        }

        .performance-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #212529;
        }

        .performance-text {
            color: #303030;
            /* line-height: 1.5; */
            font-weight: 600;
            /* text-align: left !important; */
            margin-bottom: 0px !important;
            font-size: 1.5rem !important;
        }

         /* Base Styles */
  .stats-card {
    background: white;
    border-radius: 16px;
    padding: 0px;
    margin: 15px auto 15px;
  }

  .stats-header {
    display: flex;
    align-items: center !important;
    text-align: center !important;
    gap: 6px;
    margin-bottom: 7px;
  }

  .stats-header i {
    color:#1a1a1a;
    font-size: 22px;
  }

  .stats-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.0rem;
    font-weight: 600;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats-grid .stat-item {
    /* display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center !important; */
    padding: 8px;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.2s ease;
  }



  .stat-label {
    display: flex;
    align-items: left;
    text-align: left !important;
    gap: 5px;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
  }

  .stat-label i {
    font-size: 20px;
  }

  .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left !important;
    margin-left: 25px !important;
  }

  .stat-item.correct i {
    color: #10b981;
  }

  .stat-item.score i {
    color: #3b82f6;
  }

  .stat-item.grade i {
    color: #f59e0b;
  }

  .stat-item.commendation i {
    color: #8b5cf6;
  }

  /* Responsive */
  @media (min-width: 600px) {
    .stats-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  .out-of{
    font-weight:500;
    font-size:14px;
  }

.undo-container {
  background-color: #f8f9fa;
  border-radius: 4px;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.undo-btn {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
}

.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh; /* Adjust based on your header/footer */
  padding: 0;
  text-align: center;
}

.empty-state {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.empty-state h3 {
  font-size: 18px !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.empty-state p {
  color: #6b7280;
  width: 100%;
  padding: 0 1rem;
  margin: 0.5em 0 1em;
  font-size: 14px !important;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;

  @media (max-width: 640px) {
    max-width: 100%;
    padding: 0 0.5rem;
    font-size: 0.875rem;
  }
}

.c-no-more-data{
  text-align: center !important;
  margin-top: 10px !important;
}

.c-quiz-title:hover{
  text-decoration: underline !important;
  cursor: pointer !important;
}

.stats-card.c-results-stats-card{
  padding: 0px 3px 3px !important;
  margin: 0px !important;
}

.c-quiz-preview.quiz-preview{
  padding: 0px 0px 3px 0px !important;
  margin-bottom: 20px !important;
}

/* Quiz Visibility */

.privacy-setting {
  padding: 0 !important;
  margin-top: 10px;
  /* border: 1px solid red; */
}

.privacy-setting .radio-group {
  /* border: 1px solid #e2e8f0; */
  border-radius: 8px;
  /* padding: 0px; */
  /* border: 1px solid red; */
  margin-bottom: 1.5rem;
}

.privacy-setting .radio-group legend {
  padding: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color:var(--heading-color);
}

.privacy-setting .radio-option {
  margin: 0.5rem 0;
  padding: 0;
  /* border: 1px solid red; */
}

.privacy-setting .radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.privacy-setting .radio-option label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.privacy-setting .radio-option label:hover {
  background: #f8fafc;
}

.privacy-setting .radio-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s;
}

.privacy-setting .radio-option input:checked ~ label .radio-icon {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.privacy-setting .radio-option input:checked ~ label .radio-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.privacy-setting .radio-option strong {
  display: block;
  font-weight: 500;
  color: #1e293b;
}

.privacy-setting .radio-option small {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.privacy-setting .save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  float: right;
  transition: background 0.2s;
}

.privacy-setting .save-btn:hover {
  background: var(--primary-color);
}

/* Divider CSS */
/* Horizontal divider (default) */
.divider {
  height: 1px;
  background-color: #e2e8f0; /* Light gray - adjust as needed */
  margin: 0.75rem 0 2.5rem 0 !important;
  position: relative;
  border: 0; /* Reset any default borders */
}

/* Vertical divider variant */
.divider--vertical {
  width: 1px;
  height: 100%;
  margin: 0 1.5rem;
  background-color: #e2e8f0;
}

/* Divider with centered text */
.divider--text {
  display: flex;
  align-items: center;
  color: #64748b; /* Medium gray */
  font-size: 0.75rem;
  text-transform: uppercase;
  background: transparent; /* Override default background */
}

.divider--text::before,
.divider--text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.divider--text::before {
  margin-right: 1rem;
}

.divider--text::after {
  margin-left: 1rem;
}

/* Example usage between fieldsets */
fieldset + .divider + fieldset {
  margin-top: 2rem;
}

/* //Settings// */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Mobile Header */
.mobile-header {
    display: none;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 100;
    align-items: center;
}

.mobile-header h1 {
    font-size: 1.5rem;
    margin-left: 1rem;
}

.menu-toggle {
    background: #F0F0F0;
    border: none;
    font-size: 1.5rem;
    color: #212529;
    cursor: pointer;
    padding: 6px;
    border-radius: 100%;
    display: none !important;
}

.menu-toggle:hover {
    background: #E8E8E8;
}

.app-container .sidebar{
    width: 30%;
    /* box-shadow: 1px 0 5px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease;
    z-index: 1000;
    background-color: #f8f8f8;
    color: var(--text-color);
    border-radius: 8px;
}

.settings-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.settings-nav li {
    padding: 0.70rem 1.5rem;
    margin: 4px 2px;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.settings-nav li:hover {
    background-color: #E8E8E8;
    color: var(--text-color);
}

.settings-nav li.active {
    background-color:  #E8E8E8;
    color: var(--text-color);
    font-weight: 600;
}

.settings-nav li .material-icons {
    margin-right: 1rem;
    /* width: 20px; */
    font-size: 16px;
    text-align: center;
}

/* Settings Layout */
.setting-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem 0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-info h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.setting-info p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.setting-control {
    margin-left: 1rem;
}

/* Visibility Options */
.visibility-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.visibility-option:hover {
    border-color: var(--primary-color);
}

.visibility-option .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.visibility-option .form-check-label {
    width: 100%;
    cursor: pointer;
}

/* Form Switches */
.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

/* Compact Mode */
body.compact-mode {
    --spacing-unit: 0.5rem;
}

body.compact-mode .setting-item {
    padding: 0.5rem 0;
}

/* Theme Support */
[data-theme="dark"] {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #333333;
}

[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #000000;
    --border-color: #dee2e6;
}

/* Main Content */
 .c-main-content {
    flex: 1;
    margin-left: 20px;
    padding: 2px;
    transition: margin 0.3s ease;
}

/* // */
.content-header {
    margin-bottom: 1rem;
}

.content-header h2 {
    font-size: 1.0rem;
    color: #212529;
    font-weight: 600;
}

.c-main-content .content-body {
    background-color: white;
    border-radius: 10px;
    padding: 2px;
    min-height: 60vh;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    color: #6c757d;
}

.welcome-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Blocked Users */
.blocked-users-list {
    margin-top: 1rem;
}

.blocked-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.blocked-user:last-child {
    border-bottom: none;
}

.user-info {
    /* display: flex; */
    align-items: center;
}

.app-container .user-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
}

.user-details h4 {
    margin-bottom: 0.25rem;
}

.user-details p {
    color: #6c757d;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: #f72585;
    color: white;
}

.btn-danger:hover {
    background-color: #e5177b;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.blocked-users-container .modal-footer{
  margin: auto !important;
}

.blocked-users-container .modal-footer button{
  font-size: 14px !important;
}

.blocked-users-container .modal-footer button:hover{
  opacity: 0.9 !important;
}

.blocked-users-container .modal-body p{
  font-size: 15px !important;
}

 .blocked-users-container .modal-content{
    width: 400px;
    margin: auto !important;
  }

/* // */
/* Responsive Styles */
@media (max-width: 992px) {
   .app-container .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
    }

   .app-container .sidebar.active {
        transform: translateX(0);
    }

    .c-main-content {
        margin-left: 0;
        padding-top: 5rem;
    }

    .mobile-header {
        display: flex;
    }
}

@media (max-width: 576px) {
    .app-container .sidebar {
        width:50%;
        transform: translateX(-100%);
        position: fixed;
        top: 100px;
        left: 0;
        height: 100vh;
    }

   .c-main-content {
        padding: 1rem;
        padding-top: 5rem;
    }

   .blocked-users-container .content-body {
        padding: 1rem;
    }

    .blocked-users-container .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(0, 0, 0, 0.5); /* semi-transparent backdrop */
      z-index: 1050; /* ensure it's above other content */
    }

  .blocked-users-container .modal-dialog {
        width: auto;
        margin: 0.5rem; /* small margin on mobile */
    }

     .blocked-users-container .modal-content{
      width: 100% !important;
      margin: auto !important;
    }

    img.c-quiz-img, img.c-group-img{
      height: 128px;
      width: 100%;
      max-height: 128px;
      max-width: 100%;
      object-fit:cover !important;
      border-radius: 10px !important;
      margin-right: 2px !important;
    }
}

/* /// */

 /* Blocked Users */
       .app-container .blocked-user {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

       .app-container .unblock-btn {
            background: #EFEEF3;
            color: #010719;
            border: none;
            padding: 6px 12px !important;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px !important;
            border-radius: 25px;
        }

        .blocked-user-container a {
          font-size: 15px !important;
        }

/* Profile Container */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-content {
  /* display: flex; */
  align-items: center;
  /* justify-content: space-between; */
  padding: 10px !important;
  background-color: #f8f9fa;
  border-radius: 20px;
}

/* Photo Styles */
.profile-content .photo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.profile-content .profile-photo {
    width: 70px;
    height: 70px;
    min-width:70px;
    min-height:70px;
    border-radius: 100%;
    object-fit: cover;
    border: 2px solid #f8f8f8;
    transition: all 0.3s ease;
}

.profile-content .photo-label {
    cursor: pointer;
    display: block;
    position: relative;
}

.profile-content .photo-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    min-width:70px;
    min-height:70px;
    background: rgba(254, 254, 254, 0.2);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* opacity: 0; */
    transition: all 0.3s ease;
}

.profile-content .photo-label:hover .photo-hover-effect {
    opacity: 1;
}

.profile-content .camera-icon {
    font-size: 1.3rem;
    color: #fff;
}

.profile-content .full-name span {
    font-size: 16px;
    font-weight: 600;
    color: #2b2d42;
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.profile-content .surname {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Button Styles */
.profile-content .change-photo-btn {
    background-color:var(--primary-color);
    border: none;
    padding: 7px 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    text-align: center;
    align-items: center;
}

.profile-content .change-photo-btn span.upload{
  font-size: 14px;
  margin-left: 4px !important;
}

.profile-content .change-photo-btn:hover {
  opacity: 0.9;
}

.profile-content .btn-icon {
    font-size: 1rem;
}

/* Upload Spinner */
.profile-content .upload-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
}

.profile-content .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File Input */
.profile-content #profile-photo-upload {
    display: none;
}

/* Responsive Design */
@media (max-width: 576px) {
   .menu-toggle{
      display: block !important;
    }

   .profile-content .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-content .user-info {
        margin-left: 0;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .profile-content .change-photo-btn {
      padding: 0.4rem;
      font-size: 12px;
      display: inline-block !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .profile-content .profile-photo {
        width: 64px;
        height: 64px;
        min-width:64px;
        min-height:64px;
    }

    .profile-content .full-name span {
        font-size: 14px;
        color: #2b2d42;
        display: inline-block !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .profile-content .surname {
        font-size: 0.75rem;
    }

    .profile-content .photo-hover-effect {
        position: absolute;
        top: 0;
        left: 0;
        width: 64px;
        height: 64px;
        min-width:64px;
        min-height:64px;
    }

    .profile-content .camera-icon {
      font-size: 1.0rem;
     }

     .profile-content .photo-wrapper {
        width: 64px;
        height: 64px;
      }

      .upload {
        display: none;
      }

      .blocked-name{
        display: inline-block !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }

      .c-verified{
        font-size: 15px !important;
      }
}

.c-modal-description{
  font-size: 15px !important;
}

.c-label{
  margin-bottom: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #696969 !important;
}

 .form-check-label.c-options {
      margin-left:15px !important;
      font-size: 14px !important;
      color:#333 !important;
  }

/* Group Settings Configuration CSS */
.config-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.config-header {
    background:  #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-header h1 {
    margin: 0;
    font-size: 16px !important;
    color: var(--heading-color);
    font-weight: 600 !important;
}

.config-container .status-badge {
    background: white;
    color: var(--primary-color);
    padding: 3px 10px !important;
    border-radius: 25px;
    font-weight: 500;
    font-size: 13px;
}

.config-container .status-badge.open {
    background: var(--success-color);
    color: white;
    font-size: 12px !important;
}

.config-container .status-badge.closed {
    background: var(--danger-color);
    color: white;
}

.config-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background:  #f8f9fa;
}

.config-tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.config-tab.active {
    border-bottom-color: var(--primary-color);
    background: white;
    color: var(--primary-color);
}

.config-content {
    padding: 25px;
}

.config-container .tab-pane {
    display: none;
}

.config-container .tab-pane.active {
    display: block;
}

.config-container .form-section {
    margin-bottom: 30px;
}

.config-container .form-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.config-container .form-group {
    margin-bottom: 20px;
}

.config-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.config-container .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.config-container .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.config-container select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.config-container .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.config-container .form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.config-container .form-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

.config-container .action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.settings-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.settings-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.config-container .radio-group {
    display: flex;
    gap: 20px;
}

.config-container .radio-option {
    display: flex;
    align-items: center;
}

.config-container .radio-option input {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .config-container {
        border-radius: 0;
    }

    .config-tabs {
        flex-wrap: wrap;
    }

    .config-tab {
        flex: 1 0 auto;
        text-align: center;
        padding: 12px;
    }

    .config-container .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Competition CSS */
.c-competition-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0px;
}

.c-competition-container .competition-title {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.c-competition-container .competition-title h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #696969;
}

.c-competition-container .competition-title p {
    margin: 10px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.c-competition-container .countdown {
    font-size: 14px;
    font-weight: bold;
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.c-competition-container .competition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.c-competition-container .meta-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 5px;
    border-radius: 6px;
    min-width: 150px;
}

.c-competition-container .meta-item h3 {
    margin: 0 0 5px;
    font-size: 13px;
    opacity: 0.8;
}

.c-competition-container .meta-item p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}

.c-competition-container .action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.c-competition-container .btn,
.action-buttons .btn,
.config-container .btn,
.competition-actions .btn {
    padding: 10px 20px;
    font-size: 1rem !important;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.c-competition-container .btn-disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.c-competition-container .section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
}

.c-competition-container .section h3, .config-content .form-section h3{
  font-size: 15px;
  font-weight: 600;
}

.c-competition-container .section .c-how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.c-competition-container .section .c-how-it-works h3{
  margin: 0 0 8px;
}

.c-competition-container .section .c-how-it-works p{
  margin: 0;
}

.c-competition-container .section .quiz-stat-count{
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.c-competition-container .section-title {
    margin-top: 0;
    color: var(--primary);
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.c-competition-container .tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.c-competition-container .tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.c-competition-container .tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.c-competition-container .tab-content {
    display: none;
}

.c-competition-container .tab-content.active {
    display: block;
}

.c-competition-container .quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.c-competition-container .quiz-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.2s;
}

.c-competition-container .quiz-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.c-competition-container .quiz-card h4 {
  font-size: 18px;
}

.c-competition-container .quiz-card p {
    color: #666;
    margin-bottom: 15px;
}

.c-competition-container .quiz-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.c-competition-container .badge {
    display: inline-block;
    padding: 3px 8px !important;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-color);
}

.c-competition-container .badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.c-competition-container .badge-success {
    background-color: var(--success-color);
    color: white;
}

.c-competition-container .leaderboard {
    width: 100%;
    border-collapse: collapse;
}

.c-competition-container .leaderboard th {
    text-align: left;
    padding: 12px;
    background-color: #f8f9fa;
    color: #555;
}

.c-competition-container .leaderboard td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.c-competition-container .leaderboard tr:last-child td {
    border-bottom: none;
}

.c-competition-container .leaderboard tr:hover {
    background-color: #f5f9ff;
}

.c-competition-container .prize-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
}

.c-competition-container .prize-icon {
    font-size: 2rem;
    color: var(--warning-color);
}

.prize-info h3 {
    margin: 0 0 5px;
}

.c-competition-container .prize-info p {
    margin: 0;
    color: #666;
}

.c-competition-container .rules-list {
    padding-left: 20px;
}

.c-competition-container .rules-list li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
   .c-competition-container .competition-meta {
        flex-direction: column;
        gap: 10px;
    }

   .c-competition-container .meta-item {
        width: 100%;
    }

   .c-competition-container .action-buttons {
        flex-direction: column;
    }

   .c-competition-container .quiz-grid {
        grid-template-columns: 1fr;
    }
}

/* Leaderboard CSS */
.leaderboard-container {
  margin: 10px auto;
}

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

.leaderboard-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, #4a6fa5, #6b8cae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaderboard-card {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.leaderboard-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  position: relative;
}

.leaderboard-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}

.rank-1::before { background: linear-gradient(135deg, #FFD700, #FFC000); }
.rank-2::before { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); }
.rank-3::before { background: linear-gradient(135deg, #CD7F32, #B87333); }
.rank-4::before { background: rgba(0, 0, 0, 0.08); }

.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-weight: 600;
  color: white;
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #FFD700, #FFC000); }
.rank-2 .rank-badge { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); }
.rank-3 .rank-badge { background: linear-gradient(135deg, #CD7F32, #B87333); }
.rank-4 .rank-badge {
  background: #f0f0f0;
  color: #7f8c8d;
}

.leaderboard-container .user-info {
  flex-grow: 1;
  min-width: 0; /* Allows text truncation */
}

.leaderboard-container .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.leaderboard-container .user-name {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

.leaderboard-container .user-title {
  font-size: 0.8rem;
  color: #7f8c8d;
  display: flex;
  align-items: center;
}

.leaderboard-container .badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  margin-left: 8px;
  background: rgba(74, 111, 165, 0.1);
  color: #4a6fa5;
}

.leaderboard-container .stats {
  display: flex;
  margin-left: auto;
  gap: 24px;
}

.leaderboard-container .stat {
  text-align: center;
  min-width: 60px;
}

.leaderboard-container .stat-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.leaderboard-container .stat-label {
  font-size: 0.75rem;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.leaderboard-container .profile-btn {
    padding: 8px 16px;
    background: #4a6fa5;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 16px;
    white-space: nowrap;
}

.leaderboard-container .profile-btn:hover {
    background: #3a5a8a;
}

/* Mobile Styles */
@media (max-width: 576px) {
  .leaderboard-row {
      flex-wrap: wrap;
      padding: 16px;
  }

 .leaderboard-container .user-info {
      order: 2;
      margin-top: 12px auto;
  }

 .leaderboard-container .stats {
      order: 3;
      width: 100%;
      /* justify-content: space-around; */
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

 .leaderboard-container .stat {
      min-width: auto;
  }

 .leaderboard-container .user-avatar {
      width: 40px;
      height: 40px;
      position: absolute;
      right: 16px;
      top: 16px;
  }

   .leaderboard-container .profile-btn {
        position: absolute;
        right: 16px;
        bottom: 16px;
        margin-left: 0;
    }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.leaderboard-card {
  animation: fadeIn 0.4s ease forwards;
}

.leaderboard-card:nth-child(1) { animation-delay: 0.1s; }
.leaderboard-card:nth-child(2) { animation-delay: 0.2s; }
.leaderboard-card:nth-child(3) { animation-delay: 0.3s; }


/* Competitions CSS */
.competitions-container {
    margin: 0 auto !important;
    padding: 0px !important;
}

.competitions-container select {
    padding: 10px 15px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    background-color: white;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 180px;
}

.competitions-container .search-box {
    padding: 10px 15px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    min-width: 250px;
    font-size: 0.95rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%237f8c8d" stroke-width="2"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

.competitions-container .competition-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.competitions-container .status-active, .status-active {
    background-color: var(--success-color) !important;
    color: #fff !important;
}

.competitions-container .status-upcoming, .status-upcoming {
    background-color: var(--warning-color);
    color: #333;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

.competitions-container .status-completed {
    background-color: var(--success-color) !important;
    color: #fff !important;
    /* box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3); */
}

.status-inactive {
    background-color: var(--inactive-color) !important;
    color: var(--text-color) !important;
}

/*  */
.competitions-container .competition-section a.competition-title {
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 600;
  color:#282828 !important;
  text-decoration: none;

  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.competitions-container .competition-section a.competition-title:hover{
  color: var(--primary-color) !important;
}

/* Different widths for different screen sizes */
@media (max-width: 480px) {
  .competition-title {
    max-width: 480px !important;
  }
}

@media (min-width: 769px) {
  .competition-title {
    max-width: 100%;
  }
}
/*  */

.competitions-container .competition-dates {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.competition-dates svg {
    margin-right: 6px;
}

.competitions-container .quiz-info {
    margin-bottom: 10px;
    padding-bottom: 5px;
    /* border-bottom: 1px solid var(--border); */
}

.competitions-container .quiz-info h4 {
  font-size: 15px;
}

.competitions-container .quiz-title {
    font-size: 13px !important;
    color: #7f8c8d;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.competitions-container .quiz-title svg {
    margin-right: 8px;
}

.competitions-container .quiz-details {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.competitions-container .quiz-detail {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.competitions-container .quiz-detail svg {
    margin-right: 5px;
}

.competitions-container .progress-container {
    margin-bottom: 25px;
}

.competitions-container .progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.competitions-container .attempt-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    /* padding: 2px 10px !important; */
    background-color: #fff !important;
}

.competitions-container .status-completed {
    color:#4caf50;
}

.competitions-container .status-completed svg {
    stroke: #4caf50;
}

.competitions-container .status-not-attempted {
    color: var(--danger-color);
}

.competitions-container .status-not-attempted svg {
    stroke: var(--danger-color);
}

.competitions-container .score-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #7f8c8d;
}

.competition-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.competitions-container .participants-count {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.competitions-container .participants-count svg {
    margin-right: 8px;
}

.competitions-container .empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

.competitions-container .empty-state h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.competitions-container .empty-state p {
    color: #7f8c8d;
    max-width: 500px;
    margin: 0 auto 25px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .competitions-grid {
        grid-template-columns: 1fr;
    }

    .competitions-container .filter-controls {
        flex-direction: column;
    }

    .competitions-container .search-box {
        width: 100%;
    }

    .competition-title {
        font-size: 1.3rem;
    }
}

/* Quiz History Details CSS */
.quiz-history-container {
    margin: 0 auto;
    padding: 0px;
}

.quiz-history-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.quiz-history-container .back-link:hover {
    text-decoration: underline;
}

.quiz-history-container .quiz-header {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    background:  #f8f9fa;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px;
}

.quiz-title-wrapper {
    position: relative;
    z-index: 2;
}

.quiz-history-container .quiz-title {
    font-size: 20px !important;
    margin: 5px 0 0.5rem 0;
    color: #2c3e50;
    position: relative;
    /* display: inline-block; */
}

.quiz-history-container .title-text {
    color:var(--primary-color);
    font-weight: 700;
}

.quiz-history-container .title-decoration {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    z-index: 1;
    transform-origin: left center;
}

.quiz-category-wrapper {
    align-items: left;
    padding: 0;
}

.quiz-history-container .quiz-category {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a6fa5;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .quiz-history-container .quiz-title {
        font-size: 1.8rem;
    }

    .quiz-header-container {
        padding: 1.2rem;
    }
}

.quiz-history-container .quiz-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.quiz-history-container .quiz-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #f8f9fa;
    color: var(--primary-color);
    margin-top: 8px;
}

.quiz-history-container .quiz-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.quiz-history-container .stat-box {
    text-align: center;
    min-width: 100px;
}

.quiz-history-container .stat-value {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.quiz-history-container .stat-label {
    font-size: 0.8rem !important;
    color: #7f8c8d !important;
    margin-top: 5px !important;
}

.quiz-history-container .passed .stat-value {
    color: #4caf50;
}

.quiz-history-container .failed .stat-value {
    color: #f44336;
}

.quiz-history-container .quiz-details {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-light-color);
    margin-bottom: 25px;
}

.quiz-history-container .section-title {
    font-size: 20px !important;
    color: var(--heading-color);
    font-weight: 600 !important;
    margin-top: 0;
    margin-bottom: 2px;
    padding-bottom: 2px;
    /* border-bottom: 1px solid #dee2e6; */
}

.quiz-history-container .questions-list {
    margin-top: 20px;
}

.quiz-history-container .question-item {
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #dee2e6;
}

.quiz-history-container .question-item.correct {
    border-left-color: #4caf50;
}

.quiz-history-container .question-item.incorrect {
    border-left-color: #f44336;
}

.quiz-history-container .question-text {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px !important;
}

.quiz-history-container .answer-list {
    margin-left: 15px;
}

.quiz-history-container .answer-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 4px;
}

.quiz-history-container .answer-item.correct-answer {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
}

.quiz-history-container .answer-item.user-answer {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
}

.quiz-history-container .answer-item.user-answer.correct-answer {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
}

.quiz-history-container .answer-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.quiz-history-container .correct-answer .answer-marker {
    background-color: #4caf50;
    color: white;
}

.quiz-history-container .user-answer:not(.correct-answer) .answer-marker {
    background-color: #f44336;
    color: white;
}

.quiz-history-container .answer-text {
    flex: 1;
}

.quiz-history-container .question-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.quiz-history-container .question-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quiz-history-container .question-difficulty {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.quiz-history-container .difficulty-easy {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.quiz-history-container .difficulty-medium {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.quiz-history-container .difficulty-hard {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.quiz-history-container .summary-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

@media (max-width: 768px) {
   .quiz-history-container .quiz-header {
        flex-direction: column;
    }

   .quiz-history-container .quiz-stats {
        width: 100%;
        justify-content: space-between;
    }

   .quiz-history-container .stat-box {
        min-width: auto;
        flex: 1;
    }

   .quiz-history-container .summary-actions {
        flex-direction: column;
        gap: 10px;
    }

   .quiz-history-container .btn {
        width: 100%;
    }
}

/* Groups CSS */
.group-item .group-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2px;
    /* border-top: 1px solid var(--border); */
}

.group-meta {
    display: flex;
    /* gap: 15px; */
    margin-top: 4px;
    margin-bottom: 0px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #7f8c8d;
}

.meta-icon {
    width: 15px;
    height: 15px;
}

/* .open-join-group-modal{
  background-color: #4CAF50 !important;
} */
/* .group-actions {
  padding: auto !important;
  background: yellow;
  justify-self: center !important;
} */

.group-actions .open-join-group-modal,
.group-actions .open-leave-group-modal,
.group-actions .view-competitions,
.group-actions .join-group-btn {
    padding: 4px 8px;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    margin-top: 5px !important;
    transition: background-color 0.2s;
}

.join-group-btn-lg{
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 25px !important;
    font-weight: 500;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    margin-top: 10px !important;
    background-color: var(--primary-color);
    transition: background-color 0.2s;
}

.group-actions .open-join-group-modal,
.group-actions .join-group-btn{
   background-color: #E2E5EA !important;
   color:#08141B !important;
}

.group-actions .open-leave-group-modal,
.group-actions .view-competitions{
  background-color: #EBF5FF !important;
  color: var(--primary-color) !important;
}

.group-actions .open-join-group-modal:hover,
.group-actions .open-leave-group-modal:hover,
.group-actions .view-competitions:hover,
.group-actions .join-group-btn:hover {
  opacity: 0.9 !important;
}

.status {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 12px;
}

/* Group CSS */
.groups-container {
    margin: 30px auto;
}

.groups-container .groups-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.groups-container .groups-list .group-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--border-light-color);
}

.groups-container .groups-list .group-card:hover {
  background-color: var(--card-hover) !important;
}

.groups-container .group-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
    border-top-left-radius: 10px;
}

.groups-container .group-content {
    padding: 0 16px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.groups-container .group-info {
    flex-grow: 1;
}

.groups-container .group-title a {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
    text-decoration: none;
}

.groups-container .group-title a:hover {
  text-decoration: underline;
}

.groups-container .group-meta {
    display: flex;
    /* flex-direction: column; */
    gap: 6px;
}

.groups-container .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.groups-container .meta-icon {
    width: 14px;
    height: 14px;
}

.groups-container .member-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.groups-container .member {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.groups-container .not-member {
    background-color: rgba(117, 117, 117, 0.1);
    color: #7f8c8d;
}

.groups-container .group-btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px !important;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.groups-container .group-btn:hover {
    background-color: #3a5a8a;
}

.groups-container .joined {
    background-color: #EBF5FF !important;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 4px !important;
}

/* Mobile view */
@media (max-width: 768px) {
   .groups-container .group-card {
        flex-direction: column;
    }

   .groups-container .group-image {
        width: 100%;
        height: 160px;
    }

   .groups-container .group-content {
        padding: 12px;
    }

   .groups-container .group-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

   .groups-container .group-btn {
        width: 100%;
        padding: 10px;
    }
}

.create-group-btn{
  font-size: 15px !important;
  padding: 7px 15px !important;
}

.create-group-btn .material-icons{
  font-size: 22px !important;
}

/* Results CSS */
.result-container {
    margin: 0 auto;
    padding: 0px;
}

.result-container .result-title {
    font-size: 20px;
    color: #4a6fa5;
    margin-bottom: 10px;
    font-weight: 700;
}

.result-container .quiz-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

 .result-card {
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    margin-top: 30px;
}

.result-card .action-buttons .btn, .result-card .btn-outline {
    padding: 0.4rem 1.0rem !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    border: none;
    cursor: pointer;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.result-card .btn-outline {
  background: white !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
}

.result-container .score-label {
    color: white;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.result-container .grade-badge {
    position: absolute;
    bottom: -10px;
    background: #4caf50;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.result-container .score-details {
    flex: 1;
    /* padding-left: 40px; */
}

.result-container .score-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #dee2e6;
}

.result-container .metric-label {
    font-weight: 500;
    color: #7f8c8d;
}

.result-container .metric-value {
    font-weight: 600;
}

.result-container .commendation {
    background: rgba(74, 111, 165, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    font-size: 15px;
    line-height: 1.6;
    border-left: 4px solid #4a6fa5;
}

.result-container .section-title {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin: 30px 0 20px 15px;
    padding-bottom: 2px;
    /* border-bottom: 2px solid #f8f9fa; */
    font-weight: 600;
}

.result-container .questions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.result-container .answer-item.correct {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid var(--success-color) !important;
    color:var(--success-color);
}

.result-container .answer-item.user-answer {
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
}

@media (max-width: 768px) {
   .result-container .score-details {
        padding-left: 0;
        margin-top: 30px;
        width: 100%;
    }

   .result-container .result-title {
        font-size: 1.8rem;
    }

   .result-container .action-buttons {
        flex-direction: column;
        margin-top: 20px;
        padding: 10px 15px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items:center !important;
        gap: 0.5rem !important;
    }

   .result-container .btn {
        width: 100%;
        text-align: center;
    }
}

/* Quiz Result Header */
.result-container .result-header {
    background: white;
    border-radius: 16px 16px 0 0 !important;
    padding: 30px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
    border-bottom: 1px solid var(--border-light-color);
    /* margin: 10px; */
    position: relative;
    overflow: hidden;
}

.result-container .result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    /* background: linear-gradient(to bottom, #4a6fa5, #6b8cae); */
}

.result-container .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.result-container .user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

.result-container .user-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.result-container .quiz-title {
    font-size: 18px !important;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #4a6fa5;
    position: relative;
    display: inline-block;
}

.result-container .quiz-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4a6fa5;
    border-radius: 3px;
}

.result-container .category-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.result-container .category-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.result-container .main-category {
    background: rgba(74, 111, 165, 0.1);
    color: #4a6fa5;
}

.result-container .subcategory {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.result-container .completion-info {
    display: flex;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.result-container .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px !important;
}

.result-container .info-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

@media (max-width: 768px) {
   .result-container .user-info {
        flex-direction: column;
        text-align: center;
    }

   .result-container .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

   .result-container .quiz-title {
        font-size: 1.3rem;
        text-align: center;
    }

   .result-container .quiz-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

   .result-container .category-badges {
        justify-content: center;
    }

   .result-container .completion-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* Question CSS */
.quiz-details{
    padding: 15px !important;
}

.questions-grid .question-card, .questions-list .question-card {
    border: 1px solid var(--border-light-color);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.questions-grid .question-text, .questions-list .question-text {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #282828;
}

.questions-grid .answer-list, .questions-list .answer-list {
    display: flex;
    flex-direction: column;
    gap: 0px !important;
    color:#484848;
    font-weight: 500;
    font-size: 14px;
}

.questions-grid .answer-item, .questions-list .answer-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.questions-grid .answer-item.correct, .questions-list .answer-item.correct {
    background-color: #e8f5e9;
}

.questions-grid .answer-item.user-answer:not(.correct) {
    background-color: #ffebee;
    color:var(--danger-color);
}

.questions-grid .answer-marker, .questions-list .answer-marker {
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
}

.questions-grid .explanation {
    margin-top: 15px;
    padding: 10px;
    background: rgba(74, 111, 165, 0.05);
    border-radius: 6px;
    font-size: 0.9rem;
}

.questions-grid .result-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.questions-grid .result-summary p {
    margin: 5px 0;
}

.questions-grid .fail {
    color: #e74c3c;
    font-weight: bold;
}

/* .questions-list .answer-item.correct .answer-marker {
    background-color: #4caf50;
} */

.questions-list .answer-text {
    flex-grow: 1;
}

.questions-list .correct-tag {
    color: #4caf50;
    font-weight: bold;
    margin-left: 8px;
}

.questions-list .question-card .answer-item.correct {
  border-left: 4px solid var(--success-color) !important;
}

/* Quiz Header CSS */
.quiz-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin: 0 auto;
}

.quiz-stats .stat-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.quiz-stats .stat-box.passed {
  border-left: 4px solid #4caf50;
}

.quiz-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #4a6bff;
}

.quiz-stats .stat-box.passed .stat-value {
  color: #4caf50;
}

.quiz-stats .stat-label {
  font-size: 0.85rem;
  color: #666;
}

.quiz-stats .stat-item {
  display: flex !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .quiz-stats {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .quiz-stats {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
  }

 .quiz-stats .stat-value {
      font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .quiz-stats {
      grid-template-columns: 1fr;
      gap: 10px;
  }

 .quiz-stats .stat-box {
      padding: 12px;
  }

 .quiz-stats .stat-value {
      font-size: 1.2rem;
  }

 .quiz-stats .stat-label {
      font-size: 0.8rem;
  }
}

/* Quiz item CSS */
.price-badge {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.stars i.material-icons {
    font-size: 1rem !important;
    color: #ffc107 !important;
}

@media (min-width: 768px) {
    .quiz-image-container {
        flex: 0 0 200px !important;
        max-height: none !important;
    }

    .quiz-cover-image {
        height: 100% !important;
        min-height: 150px !important;
    }
}

.feed-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: 1px solid var(--border-light-color);
}

/* Image Section */
.quiz-image-container {
    position: relative;
    flex: 0 0 100%;
    max-height: 180px;
    overflow: hidden;
}

.quiz-cover-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.quiz-image-container:hover .quiz-cover-image {
    transform: scale(1.03);
}

.price-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-badge.bg-primary {
    background-color: #0d6efd !important;
}

.price-badge.bg-success {
    background-color: #198754 !important;
}

/* Content Section */
.quiz-content {
    padding: 5px 10px 10px 10px  !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.quiz-title,
a.quiz-title,
h3.quiz-title span,
h3.quiz-title a,
h3.quiz-title span {
    font-size: 16px !important;
    margin-bottom: 0.5rem !important;
    color: #202020 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.quiz-title:hover,
a.quiz-title:hover,
h3.quiz-title a:hover{
  color: var(--primary-color) !important;
}

.quiz-meta {
    /* display: flex !important; */
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.2rem !important;
    font-size: 0.875rem !important;
}

.quiz-author {
    display: flex !important;
    align-items: center !important;
    color: #6c757d !important;
}

.quiz-author a {
    font-size: 0.86rem !important;
    text-decoration: none;
}

.quiz-author a:hover {
  text-decoration: underline !important;
}

.quiz-categories {
    display: flex !important;
    align-items: center !important;
}

.quiz-categories .category-tag, .quiz-categories .category-tag.subcategory-tag{
  color: var(--text-color);
}

.category-badge {
    color: #212529 !important;
    padding: 0.25rem 0 !important;
    border-radius: 0.25rem !important;
}

a.category-badge,
span.category-badge {
    display: inline-block !important;
    max-width: 150px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.895rem !important;
}

.show-more {
  text-decoration: none;
  color:#667eea;
}

.show-more:hover {
  text-decoration: underline;
}

/* Stats Section */
.quiz-stats {
    display: flex !important;
    /* justify-content: space-between !important; */
    /* align-items: center !important; */
    margin: 0 !important;
    font-size: 0.875rem !important;
}

.quiz-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.questions-badge {
    color: #212529 !important;
    padding: 0.25rem 0 !important;
    border-radius: 0.25rem !important;
    font-size: 0.8375rem !important;
}

/* Icons */
.material-icons {
    font-size: 1rem !important;
    color: #6c757d; /* Fix for white icons */
    margin-right: 0.25rem !important;
}

.c-group-card .material-icons {
  font-size: 1.3rem !important;
  background-color: #f8f8f8 !important;
  padding: 6px !important;
  border-radius: 7px;
}

/* Dropdown Fix */
.dropdown-menu {
    z-index: 1000 !important;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .quiz-image-container {
        flex: 0 0 200px !important;
        max-height: none !important;
    }

    .quiz-cover-image {
        height: 100% !important;
        min-height: 150px !important;
    }

    .quiz-meta {
        font-size: 0.9375rem !important;
    }

    .quiz-stats {
        font-size: 0.9375rem !important;
    }
}

.quiz-categories .material-icons.caret {
    font-size: 1.2rem !important;
    color: #6c757d !important;
    vertical-align: middle !important;
    margin: 0 0.25rem !important;
}



/* Alternative outline version */
.edit-btn.outline {
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 1px solid #4a6cf7;
  box-shadow: none;
  text-decoration: none;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
}

.edit-btn.outline:hover {
  background-color: rgba(74, 108, 247, 0.1);
}

/* Small size variant */
.edit-btn {
  background-color: transparent;
  color: var(--primary-color) !important;
  padding: 4px 12px !important;
  font-size: 13px !important;
  border: 1px solid var(--primary-color) !important;
  box-shadow: none;
  text-decoration: none;
}

.edit-btn i {
  font-size: 14px !important;
  margin-right: 6px;
  color: var(--primary-color) !important;
}

/* History CSS */

.history-container, .ge-filter-container {
    margin: 0 auto;
    padding: 10px;
}

.history-container .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.history-container .filter-controls, .ge-filter-container .filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ge-filter-container .filter-controls {
    gap: 10px;
}

.history-container .filter-btn,
.ge-filter-container .filter-btn{
    padding: 8px 16px !important;
    border-radius: 20px;
    background: white;
    color: var(--text-color);
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.history-container .filter-btn i,
.ge-filter-container .filter-btn i {
    margin-right: 6px;
    font-size: 18px;
}

.history-container .filter-btn.active,
.ge-filter-container .filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ge-filter-container .filter-btn.active i {
  color: white !important;
}

.history-container .filter-btn:hover,
.ge-filter-container .filter-btn:hover {
  opacity: 0.9;
}

.history-container .filter-btn.active:hover,
.ge-filter-container .filter-btn.active:hover {
   opacity: 0.9;
}

.history-container .search-bar,
.ge-filter-container .search-bar {
    flex-grow: 1;
    position: relative;
}

.history-container .search-bar input,
.ge-filter-container .search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 25px;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.history-container .search-bar i,
.ge-filter-container .search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.history-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.history-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background-color: #fafbff;
}

.history-container .quiz-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;
}

.history-container .quiz-content {
    flex-grow: 1;
}

.history-container .quiz-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px !important;
    color: #2b2d42;
}

.history-container .quiz-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px !important;
    font-size: 14px;
    color: #6c757d;
}

.history-container .quiz-meta-item {
    display: flex;
    align-items: center;
    font-size: 14px !important;
}

.history-container .quiz-meta-item i {
    margin-right: 5px;
    font-size: 16px;
}

/* Base Styles */
.history-container .quiz-stats {
    display: flex;
    gap: 12px; /* Space between badges */
    flex-wrap: wrap; /* Allows badges to wrap on small screens */
    align-items: center;
}

.history-container .stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Space between icon and text */
    padding: 8px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    font-size: 13px !important;
    color: #333;
}

.history-container .stat-badge i.material-icons {
    font-size: 16px; /* Adjust icon size */
}

/* Mobile Optimization */
@media (max-width: 600px) {
   .history-container .quiz-stats {
        gap: 8px; /* Reduce gap on small screens */
    }

   .history-container .stat-badge {
        padding: 6px 10px;
        font-size: 13px; /* Slightly smaller text */
    }

   .history-container .stat-badge i.material-icons {
        font-size: 14px;
    }

  .history-item {
    margin-bottom: 25px;
   }
}

/* Optional: Stack badges vertically on very small screens */
@media (max-width: 400px) {
   .history-container .quiz-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}

.history-container .stat-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.history-container .stat-badge i {
    margin-right: 5px;
}

.history-container .score {
    background: #eaf7fb;
    color: #1a8ca8;
}

.history-container .time {
    background: #f0f5ff;
    color: #3a56d4;
}

.history-container .date {
    background: #f8f9fa;
    color: #6c757d;
}

.history-container .quiz-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-left: 20px;
}

.history-container .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.history-container .action-btn:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.history-container .retake-btn {
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

.history-container .retake-btn i {
    margin-right: 6px;
    color: #fff !important;
}

.history-container .retake-btn:hover {
    opacity: 0.9;
}

.history-container .empty-state {
    text-align: center;
    padding: 60px 20px;
}

.history-container .empty-state i {
    font-size: 60px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.history-container .empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color:  #2b2d42;
}

.history-container .empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
    }

   .history-container .quiz-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 15px;
    }

   .history-container .quiz-actions {
        flex-direction: row;
        margin-left: 0;
        margin-top: 15px;
        justify-content: flex-start;
    }

   .history-container .filter-controls {
        flex-direction: column;
    }

   .history-container .search-bar {
        max-width: 100%;
    }
}

/* Quiz Hist Details CSS */
.quiz-result-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-light-color);
    background-color: #f8f8f8 !important;
    margin: 0 auto;
    padding: 0px !important;
    position: relative;
}

.quiz-result-card .quiz-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    background-color: #f8f8f8 !important;
}

.quiz-result-card .quiz-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.quiz-result-card .quiz-badge i {
    font-size: 18px;
    margin-right: 6px;
}

.quiz-result-card .quiz-title {
    font-size: 28px;
    font-weight: 700;
    color: #2b2d42;
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
}

.quiz-result-card .quiz-title-decoration {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.quiz-result-card .quiz-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quiz-result-card .category-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.quiz-result-card .category-tag i {
    font-size: 16px;
    margin-right: 6px;
}

/* Score Meter */
.quiz-result-card .score-meter {
    margin: 30px 0;
}

.quiz-result-card .meter-track {
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.quiz-result-card .meter-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.quiz-result-card .score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-result-card .percentage {
    font-size: 32px;
    font-weight: 700;
}

.quiz-result-card .grade-badge {
    font-size: 20px;
    font-weight: 700;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
}

.quiz-result-card .c-result-info h6{
  font-size: 14px;
}

/* Stats Grid */
.quiz-result-card .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quiz-result-card .stat-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.quiz-result-card .stat-item:hover {
    transform: translateY(-5px);
}

.quiz-result-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.quiz-result-card .stat-icon i {
    font-size: 20px;
    color: white;
}

.quiz-result-card .stat-item.correct .stat-icon {
    background: #4caf50;
}

.quiz-result-card .stat-item.time .stat-icon {
    background: #2196f3;
}

.quiz-result-card .stat-item.date .stat-icon {
    background: #9c27b0;
}

.quiz-result-card .stat-item.commendation .stat-icon {
    background: #ff9800;
}

.quiz-result-card .stat-value {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.quiz-result-card .stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Action Buttons */
.quiz-result-card .action-buttons, .action-buttons {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.quiz-result-card .retake-btn,
.quiz-result-card .details-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.quiz-result-card .retake-btn {
    background: var(--primary-color);
    color: white;
}

.quiz-result-card .retake-btn:hover {
    background: #3a56d4;
}

.quiz-result-card .details-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.quiz-result-card .details-btn:hover {
    background: #f0f5ff;
}

/* Responsive */
@media (max-width: 768px) {
   .quiz-result-card {
        padding: 10px;
    }

   .quiz-result-card .quiz-title {
        font-size: 24px;
    }

   .quiz-result-card .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

   .quiz-result-card .action-buttons {
        flex-direction: column;
    }
}

/* Button Base Styles */
.quiz-history-container .retake-btn,
.quiz-history-container .details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
}

/* Icon Styles */
.quiz-history-container .retake-btn i,
.quiz-history-container .details-btn i {
  font-size: 20px;
  margin-right: 10px;
}

.quiz-history-container .retake-btn i{
  color: #fff !important;
}

.quiz-history-container .details-btn i {
  color: var(--primary-color) !important;
}

/* Retake Button (Primary Action) */
.quiz-history-container .retake-btn {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid transparent;
}

.quiz-history-container .retake-btn:hover {
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.quiz-history-container .retake-btn:active {
  box-shadow: 0 2px 3px rgba(67, 97, 238, 0.2);
}

.quiz-history-container .retake-btn:hover i {
  transform: rotate(-15deg);
}

/* Details Button (Secondary Action) */
.quiz-history-container .details-btn {
  background: white;
  color: #4361ee;
  border: 1px solid #4361ee;
}

.quiz-history-container .details-btn:hover {
  background: #f0f5ff;
  /* box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15); */
}

.quiz-history-container .details-btn:active {
  box-shadow: 0 2px 3px rgba(67, 97, 238, 0.1);
}

.quiz-history-container .details-btn:hover i {
  transform: scale(1.1);
}

/* Ripple Effect (Optional) */
.quiz-history-container .retake-btn::after,
.quiz-history-container .details-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background-color: var(--primary-color);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.quiz-history-container .retake-btn:focus:not(:active)::after,
.quiz-history-container .details-btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
.quiz-history-container  .retake-btn,
 .quiz-history-container .details-btn {
    padding: 10px 18px;
    font-size: 15px;
  }

 .quiz-history-container .retake-btn i,
 .quiz-history-container .details-btn i {
    font-size: 18px;
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
 .quiz-history-container .retake-btn,
 .quiz-history-container .details-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* Stack buttons vertically on very small screens */
.quiz-history-container  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

/* Disabled State */
.quiz-history-container .retake-btn:disabled,
.quiz-history-container .details-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.c-result-info{
  /* margin: 20px 20px 30px 20px !important; */
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Groups CSS */
 /* Group Card Container */
.group-card {
  background: white;
  border-radius: 12px !important;
  height: 100% !important;
  display: flex !important;
}

.group-card .group-actions {
  display: flex;
  gap: 8px;
}

/* Dropdown Menu */
/* .group-card .dropdown-menu {
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 8px;
}

.group-card .dropdown-item {
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
*/

.group-card .dropdown-item i {
  font-size: 1.1rem;
}

/* .group-card .dropdown-item:hover {
  background: #f8f9fa;
  color: #4361ee;
} */

/* Responsive Adjustments */
@media (max-width: 768px) {
  .group-cover-container {
    height: 140px;
  }

  .group-title {
    font-size: 1.1rem;
  }
}

/* Group CSS */
/* Group Content Section */
.group-container {
  border-radius: 20px !important;
}

.group-container .group-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.group-container .group-header {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.group-container .group-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: #000 !important;
}

.group-container .group-type-badge {
  background: #f0f5ff;
  color: var(--text-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.group-container .group-meta {
  margin-top: auto;
}

.group-container .group-status {
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.group-container .group-members {
  display: flex;
  align-items: center;
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.group-container .group-members i {
  margin-right: 6px;
  font-size: 1.1rem;
}

.group-container .action-btn {
  /* width: 36px; */
  height: 36px !important;
  font-size: 13px !important;
  color: var(--text-color) !important;
  border-radius: 5px;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4361ee;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.group-container .group-actions {
  position: absolute;
  top: 12px;
  display: flex;
  width: 100%;
  /* margin: auto !important; */
  gap: 8px !important;
  align-items: right;
  justify-content: right;
}

.group-container .group-cover-container {
  position: relative;
  height: 200px;
}

.group-container .group-cover-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 15px 15px 0 0 !important;
}

.group-container .action-btn:hover {
  background: white;
  color: #3a0ca3;
}

.group-container .join-group-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: auto;

  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #445984, #2c3e50) !important;
  color: white !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
}

.group-container .join-group-btn i{
  color: white !important;
}

.group-container .join-group-btn:hover {
  opacity: 0.9;
}

.group-card .join-group-btn:active {
  transform: translateY(0);
}

.action-btn.add-competition{
  font-weight: 600 !important;
}

  /* Dropdown Container */
 .group-container .dropdown-container {
    position: relative;
    display: inline-block;
  }

  /* Dropdown Button */
 .group-container .dropdown-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0; /* Remove default padding */
    position: relative;
    z-index: 1; /* Ensure button stays above other elements */
  }

 .group-container .dropdown-btn:hover {
    background: white;
    color: #3a0ca3;
  }

 .group-container .dropdown-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.3);
  }

 .group-container .dropdown-icon {
    font-size: 24px;
    transition: transform 0.2s ease;
  }

  /* Dropdown List */
 .group-container .dropdown-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000 !important;
  /* New properties for unobstructed display */
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  /* Smart positioning */
  bottom: auto;
  left: auto;
}

 .group-container .dropdown-container:hover .dropdown-list,
 .group-container .dropdown-container:focus-within .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Dropdown Items */
  ul.dropdown-list li button.dropdown-link {
    margin: 0 0 3px 0 !important;
  }

 .group-container .dropdown-link {
    width: 100%;
    padding: 3px 16px !important;
    display: flex;
    align-items: center;
    gap: 5px !important;
    color: var(--text-color) !important;
    text-decoration: none;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px !important;
    margin-bottom: 3px !important;
  }

 .group-container .dropdown-link:hover {
    background: #f8f9fa;
    color: #4361ee;
  }

 .group-container .dropdown-link i {
    font-size: 18px !important;
    color: inherit;
  }

/* Dynamic positioning based on viewport */
@media (max-width: 768px) {
 .group-container .dropdown-list {
    /* On mobile, ensure dropdown doesn't go off-screen */
    right: auto;
    left: 50%;
    transform: translate(-50%, -10px);
    min-width: 180px;
    width: max-content;
    max-width: calc(100vw - 40px);
  }

 .group-container .dropdown-list[data-position="bottom"] {
    top: calc(100% + 8px);
    bottom: auto;
  }

 .group-container .dropdown-list[data-position="top"] {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 10px);
  }
}

/* Button CSS */
 /* Base Button Styles */
  .btn-filled,
  .btn-outline {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    text-align: center;
    text-decoration: none;
  }

  /* Filled Button */
  .btn-filled {
    background-color: var(--primary-color);
    color: white;
  }

  .btn-filled:hover {
    opacity: 0.9;
  }

  /* Outline Button */
  .btn-outline {
    background-color: white;
    color: var(--primary-color);
  }

  .btn-outline:hover {
    background-color: #f0f5ff !important;
  }

  /* Container Layout - Desktop */
  .button-container {
    display: flex;
    gap: 16px;
  }

  /* Mobile Layout */
  @media (max-width: 768px) {
    .button-container {
      flex-direction: column;
      gap: 12px;
    }

    .btn-filled,
    .btn-outline {
      width: 100%;
    }
  }

  /* Active States */
  .btn-filled:active,
  .btn-outline:active {
    transform: translateY(0);
    box-shadow: none;
  }

  /* Focus States */
  .btn-filled:focus,
  .btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
  }

.competitions-header {
  display: flex !important;
  align-items: center !important;
  margin-top: 50px !important;
  margin-bottom: 20px !important;
}

.header-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  margin-left: 8px !important; /* Adjust spacing between icon and text */
}

.competitions-title {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important; /* Remove default h2 margins */
  line-height: 1 !important; /* Adjust line height to match icon height */
  font-size: 1.2rem !important;
  font-weight: 600 !important;
}

.title-icon {
  display: flex !important;
  align-items: center !important;
}

.competitions-subtitle {
  font-size: 0.875rem; /* Smaller font for subtitle */
  line-height: 1.2; /* Tighter line height */
  margin-top: 2px; /* Small gap between title and subtitle */
}

  /* Responsive adjustments */
  @media (max-width: 768px) {
   .competitions-header .competitions-title {
      font-size: 1.5rem;
    }

   .competitions-header .title-icon {
      padding: 6px;
      margin-right: 10px;
    }

   .competitions-header .title-decoration {
      left: 40px;
      bottom: -6px;
    }

   .competitions-header .competitions-subtitle {
      margin-left: 40px;
      font-size: 0.9rem;
    }
  }

.competition-card {
  border-radius: 12px !important;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  border: 1px solid #eee !important;
  background: white;
  margin-bottom: 20px !important;
}

.competition-card .competition-section {
  padding: 20px !important;
  background: #f8f9fa;
  border-bottom: 1px solid #eee !important;
  border-radius: 12px 12px 0 0 !important;
}

/* .competition-card .competition-header {
  justify-content: space-between !important;
  align-items: center !important;
} */

.competition-card .quiz-details{
    padding: 0px !important;
}

.competition-section .competition-title {
  margin: 0 !important;
  font-size: 1.4rem !important;
}

.competition-section .competition-title a {
  /* color: #2c3e50 !important; */
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

.competition-section .competition-title a:hover{
  text-decoration: underline !important;
}

.competition-section .competition-status {
  font-size: 0.8rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  margin-left: 0.5rem !important;
}

.competition-section .status-active {
  background: #e3f7e8 !important;
  color: #27ae60 !important;
}
.competition-section .status-completed {
  background: #f5e8e8 !important;
  color: #e74c3c !important;
}

.competition-section .participants-count {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: #7f8c8d !important;
}

.quiz-section {
  padding: 1rem !important;
}

.quiz-section .quiz-header {
  margin-bottom: 1rem !important;
}

.quiz-section .featured-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  background: #fff8e6 !important;
  color: #e67e22 !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  font-size: 0.8rem !important;
  margin-bottom: 0.5rem !important;
}

.quiz-section .quiz-title {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--text-color) !important;
}

.quiz-section .quiz-details {
  display: flex !important;
  gap: 1rem !important;
  margin: 1rem 0 !important;
}

.quiz-section .detail-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.50rem !important;
  font-size: 0.9rem !important;
  color: #7f8c8d !important;
}

.quiz-section .quiz-actions {
  display: flex !important;
  gap: 0.75rem !important;
  margin-top: 1.25rem !important;
}

/* Questions CSS */
.question-row {
  background: white;
  border-radius: 12px;
  padding: 10px !important;
  border: 1px solid #E8E8E8;
  transition: all 0.3s ease;
}

/* Header Styles */
.question-row .question-header {
  /* margin-top: 6px !important; */
  margin-bottom: 4px !important;
  /* border: 1px solid #f0f0f0; */
}

@media (max-width: 768px) {
    .question-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .question-status {
        align-self: flex-start;
    }
}

.question-row .question-meta .question-number {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 8px;
  margin-right: 8px;
  color:var(--text-color) !important;
}

.question-row .question-meta .question-status, .question-status {
  font-size: 0.75rem;
}

.stat-item .quiz-status {
  font-size: 0.90rem !important;
}

.question-row .question-text {
  font-size: 1.1rem;
  color: #202020 !important;
  font-weight: 700 !important;
  margin: 0;
  line-height: 1.5;
}

/* Options Grid */
.question-row .options-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.question-row .option-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 5px;
  border-color: #f8f8f8 !important;
}

.question-row .option-letter {
  background: #e2e8f0;
  color: #4a5568;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.question-row .option-text {
  color: #4a5568;
  line-height: 1.5;
  font-size: 15px !important;
}

/* Correct Option Styling */
.question-row .correct-option {
  background: #f0fdf4;
  border-color: #bbf7d0 !important;
  font-size: 15px !important;
}

.question-row .correct-option .option-letter {
  background: #4ade80;
  color: white;
}

.question-row .correct-option .option-text {
  color: #166534;
}

/* Disabled State */
.question-row .disabled-option {
  opacity: 0.7;
  background: #f8fafc;
}

.question-row .disabled-option .option-letter {
  background: #e2e8f0;
  color: #94a3b8;
}

.question-row .disabled-option .option-text {
  color: #94a3b8;
}

/* Correct Answer Banner */
.question-row .correct-answer-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.question-row .correct-answer-banner .material-icons-outlined {
  color: #22c55e;
}

/* Dropdown Styles */
.question-row .btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #64748b;
  transition: all 0.2s ease;
}

.question-row .btn-icon:hover {
  background: #f1f5f9;
  color: #334155;
}

.question-row .dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px;
}

.question-row .dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  color: #475569;
}

.question-row .dropdown-item:hover {
  background: #f8fafc;
  color: #1e293b;
}

.question-row .dropdown-item .material-icons-outlined {
  font-size: 18px;
  margin-right: 8px;
  color: #64748b;
}

/* Quiz Headings CSS */
  /* Quiz Header Card */
  .quiz-header-card,
  .competition-results,
  .competition-header-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1rem !important;
    /* margin-bottom: 10px !important; */
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
    text-align: center;
    position: relative;
    /* overflow: hidden; */
  }

  .competition-header-card{
    border: none !important;
    background: inherit !important;
    margin-bottom: 0px !important;
    padding: 10px !important;
   }

 .quiz-header-card .quiz-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

 .quiz-header-card .quiz-badge,
 .competition-results .quiz-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: default;
  }

  .quiz-badge:hover {
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  }

 .quiz-header-card .quiz-divider, .competition-results .quiz-divider {
    color: #90a4ae;
    font-weight: bold;
  }

 .quiz-header-card .subcategory-badge, .competition-results .subcategory-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(68, 89, 132, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #445984;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.15);
    cursor: default;
  }

  .subcategory-badge:hover {
      background: linear-gradient(135deg, rgba(68, 89, 132, 0.15) 0%, rgba(102, 126, 234, 0.15) 100%);
      border-color: rgba(102, 126, 234, 0.3);
  }

  /*  */
  /* Icon Styles */
.quiz-badge i,
.subcategory-badge i {
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

.quiz-badge i {
    color: #667eea;
}

.subcategory-badge i {
    color: #764ba2;
}

/* Divider Styles */
.quiz-divider {
    font-size: 16px;
    font-weight: 600;
    color: #764ba2;
    opacity: 0.6;
    margin: 0 4px;
}

/* Alternative Divider Styles */
.quiz-divider-dot {
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: inline-block;
}

.quiz-divider-line {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #445984);
    border-radius: 2px;
    display: inline-block;
}

.quiz-divider-arrow {
    color: #667eea;
    font-size: 16px;
    opacity: 0.5;
    margin: 0 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-meta-header {
        gap: 8px;
        margin-bottom: 16px;
    }

    .quiz-badge,
    .subcategory-badge {
        padding: 4px 12px;
        font-size: 11px;
    }

    .quiz-badge i,
    .subcategory-badge i {
        font-size: 12px;
        margin-right: 4px;
    }

    .quiz-divider {
        font-size: 12px;
    }
}

/* Animation for badges */
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.quiz-badge,
.subcategory-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .quiz-badge {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
        color: #8e9ef5;
    }

    .subcategory-badge {
        background: linear-gradient(135deg, rgba(68, 89, 132, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
        color: #a0aec0;
        border-color: rgba(102, 126, 234, 0.2);
    }

    .quiz-badge i {
        color: #8e9ef5;
    }

    .subcategory-badge i {
        color: #b088f5;
    }
}

/* Skeleton loading state */
.quiz-meta-header.skeleton {
    opacity: 0.7;
}

.quiz-meta-header.skeleton .quiz-badge,
.quiz-meta-header.skeleton .subcategory-badge {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
}

.quiz-meta-header.skeleton i {
    display: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Glass morphism effect (modern) */
.quiz-meta-header.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
}

/* With tooltip */
.quiz-badge[data-tooltip],
.subcategory-badge[data-tooltip] {
    position: relative;
}

.quiz-badge[data-tooltip]:hover::after,
.subcategory-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #445984;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
}

/* Active state for badges */
.quiz-badge.active,
.subcategory-badge.active {
    position: relative;
    overflow: hidden;
}

.quiz-badge.active::after,
.subcategory-badge.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

/* RTL Support for right-to-left languages */
[dir="rtl"] .quiz-badge i,
[dir="rtl"] .subcategory-badge i {
    margin-right: 0;
    margin-left: 6px;
}

[dir="rtl"] .quiz-meta-header {
    flex-direction: row-reverse;
}

/* Print styles */
@media print {
    .quiz-badge,
    .subcategory-badge {
        background: none;
        border: 1px solid #ccc;
        color: #000;
    }

    .quiz-badge i,
    .subcategory-badge i {
        color: #000;
    }
}
  /*  */

  .quiz-header-card .quiz-title, .competition-results .quiz-title {
    font-size: 1.3rem !important;
    margin: 0 auto 1.5rem;
    color: #2d3748;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    max-width: 90%;
  }

  .quiz-header-card .quiz-title-text, .competition-results .quiz-title-text {
    position: relative;
    z-index: 2;
  }

 .quiz-header-card .quiz-stats, .competition-results .quiz-stats, .competition-header-card .quiz-stats {
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
  }

 .quiz-header-card .stat-item,
 .competition-results .stat-item,
 .competition-header-card .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 20px;
  }

 .quiz-header-card .stat-item i,
 .competition-results .stat-item i,
 .competition-header-card .stat-item i {
    color: #3b82f6;
    font-size: 1.1rem;
  }

  @media (max-width: 768px) {
   .quiz-header-card .quiz-title, .competition-results .quiz-title {
      font-size: 1.8rem;
    }

   .quiz-header-card .quiz-stats, .competition-results .quiz-stats {
      gap: 12px;
    }

   .quiz-header-card .stat-item, .competition-results .stat-item {
      padding: 6px 12px;
    }
  }

  /*  */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Always 2 columns on mobile */
  gap: 8px; /* Tighter gap */
  padding: 12px 8px; /* Reduced padding */
  margin-bottom: 8px; /* Space before button */
   margin-top: 12px;
}

.stats-container .stat-card {
  background: white;
  border-radius: 8px; /* Slightly rounded */
  padding: 10px 8px; /* Compact padding */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Lighter shadow */
}

.stats-container .stat-header {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced gap */
  margin-bottom: 6px; /* Less spacing */
}

.stats-container .stat-header i {
  font-size: 18px; /* Slightly smaller icons */
}

.stats-container .stat-header h3 {
  margin: 0;
  font-size: 13px !important; /* Smaller text */
  font-weight: 600;
  white-space: nowrap; /* Prevents wrapping */
}

.stats-container .stat-content {
  font-size: 18px !important; /* Slightly smaller */
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.2; /* Tighter line spacing */
}

/* Desktop adjustments (if needed) */
@media (min-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 16px;
    padding: 16px;
  }
 .stats-container .stat-header h3 {
    font-size: 14px; /* Slightly larger on desktop */
  }
 .stats-container .stat-content {
    font-size: 24px;
  }
}

/* Color coding (unchanged) */
.stats-container .stat-card.correct-answers .stat-header i { color: #4CAF50; }
.stats-container .stat-card.score .stat-header i { color: #2196F3; }
.stats-container .stat-card.grade .stat-header i { color: #FF9800; }
.stats-container .stat-card.commendation .stat-header i { color: #9C27B0; }

/* /// */
/* Base Styles */
.stat-container {
  padding: 0.5rem;
}

.stat-container .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.stat-container .stat-item {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.stat-container .stat-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.stat-container .stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-container .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.stat-container .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: capitalize;
  letter-spacing: 0.05em;
}

.stat-container .stat-tooltip {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem;
  font-size: 0.7rem;
  transition: bottom 0.2s ease;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.stat-container .stat-item:hover .stat-tooltip,
.stat-container .stat-item:focus .stat-tooltip {
  bottom: 0;
}

/* Color Coding */
/* .stat-container .stat-item.correct {
  border-top: 3px solid #10b981;
}

.stat-container .stat-item.time {
  border-top: 3px solid #3b82f6;
}

.stat-container .stat-item.date {
  border-top: 3px solid #f59e0b;
}

.stat-container .stat-item.commendation {
  border-top: 3px solid #8b5cf6;
} */

/* Mobile Optimizations */
@media (max-width: 640px) {
 .stat-container .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

 .stat-container .stat-item {
    padding: 0.75rem;
  }

 .stat-container .stat-value {
    font-size: 1.1rem;
  }

 .stat-container .stat-label {
    font-size: 0.65rem;
  }

  /* Stack last item if odd number */
 .stat-container .stats-grid .stat-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Very Small Screens */
@media (max-width: 400px) {
 .stat-container .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* .c-quiz-btn {
  width:200px !important;
} */

/*  */
/* Quiz Intro Container */
.quiz-intro-container {
  margin: 2rem auto !important;
  padding: 2rem;
  background: white !important;
  border: 1px solid var(--border-light-color);
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Quiz Header */
.quiz-intro-container .quiz-header {
  margin-bottom: 2rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid #eee !important;
}

.quiz-intro-container .quiz-title {
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
  font-size: 1.5rem !important;
}

.quiz-intro-container .quiz-meta {
  display: flex !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
}

.quiz-intro-container .quiz-detail {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: #6c757d !important;
  font-size: 0.9rem !important;
}

.quiz-intro-container .quiz-detail i {
  color: var(--primary-color) !important;
}

/* Instructions */
.quiz-intro-container .quiz-instructions {
  margin-bottom: 2.5rem !important;
}

.quiz-intro-container .section-title {
  font-size: 1.1rem !important;
  margin-bottom: 1rem !important;
  color: var(--text-color) !important;
  font-weight: 600 !important;
}

.quiz-intro-container .instruction-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.quiz-intro-container .instruction-list li {
  padding: 0.3rem 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.8rem !important;
  font-size: 15px !important;
}

.quiz-intro-container .instruction-list i {
  color: #28a745 !important;
  margin-top: 0.2rem !important;
  flex-shrink: 0 !important;
}

@media (max-width: 576px) {
  .quiz-intro-container .quiz-title {
    font-size: 0.5rem !important;
  }

 .quiz-intro-container {
   padding: 10px !important;
 }

 .quiz-intro-container .quiz-instructions {
   margin-bottom: 2.5rem !important;
 }
}

/* Start Quiz Button */
.quiz-intro-container .quiz-actions {
  text-align: center !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quiz-intro-container {
    margin: 1rem !important;
    padding: 0.5rem !important;
  }

 .quiz-intro-container .quiz-title {
    font-size: 1.6rem !important;
  }

 .quiz-intro-container .quiz-meta {
    gap: 1rem !important;
  }

 .quiz-intro-container .instruction-list li {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
 .quiz-intro-container .quiz-meta {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .quiz-intro-container {
    padding: 1.2rem !important;
  }
}

/*  */
/* Base Styles */
.quiz-page {
  color: #2b2d42 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 2rem 1rem !important;
}

.quiz-page .quiz-container {
  background-color: white !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  padding: 2rem !important;
}

/* Header Styles */
.quiz-page .quiz-header {
  margin-bottom: 2rem !important;
}

.quiz-page .timer-container {
  display: flex;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1rem !important;
  color: #2b2d42 !important;
  font-weight: 500 !important;
}

.quiz-page .progress-container {
  height: 6px !important;
  background: #e9ecef !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  margin-top: 0.5rem !important;
}

.quiz-page .progress-fill {
  height: 100% !important;
  background: var(--primary-color) !important;
  width: 25% !important;
  transition: width 0.5s ease !important;
}

/* Question Styles */
.quiz-page .question-container {
  margin-bottom: 2rem !important;
}

.quiz-page .question-header {
  display: flex;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.quiz-page .question-number {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.quiz-page .question-divider {
  flex-grow: 1 !important;
  height: 1px !important;
  background: #e9ecef !important;
}

.quiz-page .question-text {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.4 !important;
}

/* Options Styles */
.quiz-page .options-container {
  display: grid !important;
  gap: 0.75rem !important;
}

.quiz-page .option {
  padding: 1rem 1.25rem !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: 1px solid transparent !important;
  display: flex;
  align-items: center !important;
  gap: 0.75rem !important;
}

.quiz-page .option:hover {
  background: #e9ecef !important;
  transform: translateY(-2px) !important;
}

.quiz-page .option.selected {
  background: rgba(67, 97, 238, 0.1) !important;
  border-color: var(--primary-color) !important;
}

.quiz-page .option-correct {
  background: rgba(76, 201, 240, 0.1) !important;
  border-color: var(--success-color) !important;
}

.quiz-page .option-wrong {
  background: rgba(247, 37, 133, 0.1) !important;
  border-color: #f72585 !important;
}

/* Footer Styles */
.quiz-page .quiz-footer {
  margin-top: 2rem !important;
}

.quiz-page .error-message {
  display: flex;
  align-items: center !important;
  gap: 0.5rem !important;
  color: #f72585 !important;
  font-size: 0.9rem !important;
  margin-bottom: 1rem !important;
  transition: all 0.3s ease !important;
}

.quiz-page .error-message svg {
  flex-shrink: 0 !important;
}

.quiz-page .button-group {
  display: flex;
  justify-content: flex-end !important;
}

/* Spinner Animation */
.quiz-page .spinner {
  width: 20px !important;
  height: 20px !important;
  border: 3px solid rgba(67, 97, 238, 0.2) !important;
  border-top-color: var(--primary-color) !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  margin-left: auto !important;
}

@keyframes spin {
  to { transform: rotate(360deg) !important; }
}

/* Responsive Design */
@media (max-width: 768px) {
 .quiz-page .quiz-container {
    padding: 1.5rem !important;
  }

 .quiz-page .question-text {
    font-size: 1.2rem !important;
  }

 .quiz-page .quiz-button {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
 .quiz-page .quiz-page {
    padding: 1rem 0 !important;
  }

 .quiz-page .quiz-container {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

 .quiz-page .button-group {
    justify-content: center !important;
  }

 .quiz-page .quiz-button {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Base Styles */
.result-page {
  color: #2b2d42;
  background: #f9fafc;
  min-height: 100vh;
  /* padding: 2rem 1rem; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-page .result-container {
  background: white;
  border-radius: 16px;
  width: 100%;
  padding: 0;
  position: relative;
}

/* Header Section */
.result-page .result-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.result-page .confetti {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(45deg, #4361ee, #4cc9f0, #f8961e, #f72585);
  background-size: 300% 300%;
  border: 1px solid #009900 !important;
}

.result-page .quiz-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.result-page .score-heading {
  font-size: 1.0rem !important;
  font-weight: 400;
  color: #8d99ae;
  margin-bottom: 1.5rem;
}

/*  */
.score-circle {
    position: relative;
    margin: 20px auto;
    text-align: center;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: #e9ecef;
    stroke-width: 8;
    fill: transparent;
    transition: stroke-dashoffset 0.5s ease;
}

.score-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem !important;
    font-weight: bold;
    color: #2c3e50;
}

/* Stats Grid */
.result-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.result-page .stat-card {
  background: #eef2ff;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.result-page .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.1);
}

.result-page .stat-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.result-page .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.result-page .stat-label {
  font-size: 0.85rem;
  color: #8d99ae;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Color coding */
.result-page .stat-card.correct .stat-icon { color: #4CAF50; background: rgba(76, 175, 80, 0.1); }
.result-page .stat-card.score .stat-icon { color: #2196F3; background: rgba(33, 150, 243, 0.1); }
.result-page .stat-card.grade .stat-icon { color: #FF9800; background: rgba(255, 152, 0, 0.1); }
.result-page .stat-card.result .stat-icon { color: #9C27B0; background: rgba(156, 39, 176, 0.1); }

/* Rating Section */
.rating-section {
  text-align: center;
  margin: 0px 10px;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 16px;
}

.rating-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.star-rating {
  display: inline-flex;
  gap: 5px !important;
  margin-bottom: 0.5rem;
}

.star-rating span {
  cursor: pointer;
  color: #8d99ae;
  transition: all 0.3s ease;
}

.star-rating span:hover,
.star-rating span.active {
  color: #f8961e;
  cursor: pointer;
}

.star-rating span i {
  font-size: 1.25rem !important;
}

.rating-feedback {
  color: #8d99ae;
  font-size: 0.9rem;
}

.review-box {
  margin-top: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-box textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  resize: none;
  min-height: 100px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.review-box textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.review-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.0rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-button:hover {
  background: #3a56d4;
  transform: translateY(-2px);
}

/* Action Buttons */
.result-page .action-buttons {
  display: flex;
  flex-direction: column;
}

.action-buttons{
   display: flex;
   align-items: center;
}

.result-page .primary-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.result-page .primary-button:hover {
  background: #3a56d4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
 .result-page .result-container {
    padding: 1.5rem;
  }

 .result-page .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

 .result-page .secondary-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
 .result-page .result-container {
    padding: 1.25rem;
    border-radius: 0;
  }

 .result-page .stats-grid {
    grid-template-columns: 1fr;
  }

 .result-page .score-circle {
    width: 120px;
    height: 60px;
  }

 .result-page .score-percent {
    font-size: 2rem;
  }
}


/* Competition Status */

.competition-status {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
}

.competition-status.status-active,
.competition-status.status-upcoming,
.competition-status.status-banned,
.competition-status.status-completed{
  text-transform: capitalize !important;
  color: #fff !important;
}

.competition-status.status-active {
    background-color: var(--success-color);
}

.competition-status.status-upcoming {
    background-color: var(--warning-color);
}

.competition-status.status-banned {
    background-color: var(--danger-color);
}

.competition-status.status-completed {
    background-color: var(--success-color);
}

/*  */
/* ===== Competition Header Styles ===== */
.competition-results .competition-header {
  background: #ffffff;
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
  padding: 10px;
  margin-bottom: 2rem;
  /* border: 1px solid #eaeaea; */
}

/* Header Top Section */
.competition-results .competition-header .header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.competition-results .competition-header .competition-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
}

.competition-results .competition-header .status-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Subtitle Section */
.competition-results .competition-header .header-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.competition-results .competition-header .group-type {
  margin: 0;
  font-size: 0.95rem;
  color: #7f8c8d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.competition-results .competition-header .category-tags {
  display: flex;
  gap: 0.5rem;
}

.competition-results .competition-header .quiz-badge {
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.competition-results .competition-header .primary-badge {
  background-color: #f0f7ff;
  color: #3498db;
  border: 1px solid #d6e7ff;
}

.competition-results .competition-header .secondary-badge {
  background-color: #fff5f0;
  color: #e67e22;
  border: 1px solid #ffe0d0;
}

/* Meta Cards */
.competition-results .competition-header .meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.competition-results .competition-header .meta-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s;
}

.competition-results .competition-header .meta-card:hover {
  transform: translateY(-2px);
}

.competition-results .competition-header .meta-icon {
  background: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #3498db;
  font-size: 1rem;
}

.competition-results .competition-header .meta-content h3 {
  font-size: 0.85rem;
  color: #95a5a6;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.competition-results .competition-header .meta-content p {
  font-size: 1rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

/* Action Section */
.competition-results .competition-header .action-section {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-start-quiz {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #3498db, #2c3e50) !important;
  color: white !important;
  padding: 0.8rem 1.8rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2) !important;
}

.btn-start-quiz:hover {
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3) !important;
}

.competition-header .quiz-note {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
 .competition-header .header-top {
    flex-direction: column;
    gap: 0.5rem;
  }

 .competition-section .competition-title {
    font-size: 1.5rem;
  }

 .competition-header .meta-cards {
    grid-template-columns: 1fr;
  }
}

.margin-auto{
  margin: auto !important;
}

/*  */
.quiz-item.selected {
  border-color: #0d6efd;
  background-color: #f0f7ff;
}

.quiz-radio {
    width: 1.5rem;
    height: 1.5rem;
    border-color: #A9A9A9;
    border-width: 2px;
    accent-color: #0d6efd;
}

/*  */
/* Mobile Radio Button Styles (<= 576px) */
@media (max-width: 576px) {
  .c-seletct-quiz{
      display: block !important;
    }

  /* Larger tap target */
  .quiz-radio {
    width: 1.5em !important;
    height: 1.5em !important;
    margin-right: 0.5rem !important;
  }

  /* Visual feedback for touch */
  .quiz-radio:active {
    transform: scale(1.1);
    transition: transform 0.1s;
  }

  /* Highlight when focused (for keyboard navigation) */
  .quiz-radio:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
  }

  /* Hit area expansion */
  .quiz-card label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  /* Adjust spacing to accommodate larger radio */
  .quiz-image-container {
    margin-left: 0.5rem !important;
  }

  .competitions-container a.competition-title {
    display: inline-block !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* .competition-card .competition-header {
    display: block !important;
    justify-content: space-between !important;
    align-items: center !important;
  } */
}

/* Very small devices (<= 360px) */
@media (max-width: 360px) {
  .quiz-radio {
    width: 1.3em !important;
    height: 1.3em !important;
  }
}

/* Sidebar CSS */
.sidebar-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    margin-top: 0;
    color: #6e8efb;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quiz List Items */
.sidebar-section .quiz-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section .quiz-list li {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    background: #f9f9f9;
    border-radius: 5px;
    transition: transform 0.2s, background 0.3s;
    cursor: pointer;
}

.sidebar-section .quiz-list li:hover {
    background: #e6f0ff;
    transform: translateX(5px);
}

.sidebar-section .quiz-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-section .quiz-icon {
    width: 30px;
    height: 30px;
    background: #6e8efb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.sidebar-section .quiz-info {
    flex: 1;
}

.sidebar-section .quiz-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.sidebar-section .quiz-meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    gap: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar-section {
        min-width: 280px;
    }
}

/* Category CSS */
.categories-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #3F3F52;
  background: #F2F2F2;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.category-tag:hover {
  background: #f5f5f5;
}

.category-tag i {
  margin-right: 8px;
  font-size: 0.8rem;
}

/* Different color variations */
.category-tag.science {
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.category-tag.history {
  background: linear-gradient(135deg, #FF9800, #FFC107);
}

.category-tag.technology {
  background: linear-gradient(135deg, #2196F3, #03A9F4);
}

.category-tag.art {
  background: linear-gradient(135deg, #9C27B0, #E91E63);
}

.category-tag.sports {
  background: linear-gradient(135deg, #F44336, #FF5722);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .categories-tags-container {
    justify-content: center;
  }
}

/*  */
/* Loading and error states */
.category-loading,
.category-empty,
.category-error {
  padding: 20px;
  text-align: center;
  color: #666;
}

.category-loading .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #6e8efb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.category-empty i,
.category-error i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #999;
}

.category-error i {
  color: #ff6b6b;
}

/* Categories CSS */
.categories-container {
    margin: 0 auto;
    padding: 0;
}

/* Category Tags Slider */
.category-tags-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: #F2F2F2 transparent;
}

.category-tags-container::-webkit-scrollbar {
    height: 6px;
}

.category-tags-container::-webkit-scrollbar-thumb {
    background-color: #F2F2F2;
    border-radius: 3px;
}

.category-tags-container .category-tag {
    flex: 0 0 auto;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: #3F3F52;
    background: #F2F2F2;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tags-container .category-tag:hover {
  background: #f5f5f5;
}

.category-tags-container .category-tag i {
    font-size: 0.9rem;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
    position: relative;
}

.search-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #343a40;
    /* display: flex;
    align-items: center; */
    gap: 0.5rem;
}

.search-section h3 i {
    color: #ff6b6b;
}

.search-section .search-container {
    position: relative;
    margin: 0 auto;
}

.search-section .search-container .search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    padding-right: 3rem;
}

.search-section .search-container .search-input:focus {
    outline: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.search-section .search-container .search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-section .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-section .search-container .search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-section .search-container .search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Category Cards */
 .category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f8f8f8;
}

 .category-header {
    padding: 0.75rem 1.3rem;
    background: #f0f4ff;
    color: #3F3F52;
}

.category-header h3 {
    font-size: 1.0rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.category-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.subcategories {
    padding: 2px;
}

.subcategory {
    margin-bottom: 2px;
}

.subcategory a {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-size: 14px !important;
}

.subcategory a:hover {
    background: #f8f9fa;
}

.subcategory i {
    margin-right: 0.8rem;
    color: var(--primary);
}

.category-cards .quiz-count {
    margin-left: auto;
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-container {
        padding: 1.5rem;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }
}

.search-header{
  border: var(--border-light-color) !important;
  padding: 1rem 2rem;
}

/* Explore CSS */

.filter-container {
    display: flex !important;
    gap: 1rem !important;
    padding: 0.5rem 2rem !important;
    background-color: white !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.filter-container::-webkit-scrollbar {
    display: none !important;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    color: var(--text-color) !important;
    border: 1px solid #ddd !important;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.section-main {
    padding: 1rem 2rem;
}

.section-title {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    color: #282828;
    font-weight: 600;
}

/*  */
.tags-container {
    position: relative;
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 10px 40px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 20px; */
    text-decoration: none;
    color: #808080;
}

.scroll-btn span {
   font-size: 26px !important;
}

.scroll-btn:hover,
.scroll-btn.active {
   background-color: #E8E8E8;
   color: #fff !important;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.tags-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px 0;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

.tags-scroll::-webkit-scrollbar {
    display: none;  /* Hide scrollbar for Chrome, Safari and Opera */
}

.tag {
    background-color: #e0e0e0;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover, .tag.active {
    background-color: #007bff;
    color: white;
}

.quiz-card-actions {
  flex: 1 !important;
  display: flex !important;
  gap: 0.75rem !important; /* Perfect spacing between buttons */
  justify-content: space-between !important; /* Optional: evenly distributes space */
  align-items: center !important;
  width: 100% !important;
  margin-top: 1rem !important;
}

.quiz-card-actions i{
  color: #fff !important;
}

/* Start Button CSS */
.btn-grid {
  display: flex !important;
  gap: 0.5rem;
  justify-content: space-between !important;
  margin-top: 0 !important;
  padding: 0.3rem 0;
}

.btn-grid button {
  flex: 1 !important; /* Each button will flex-grow equally */
  text-align: center !important;
  padding: 0.5rem 1rem !important;
}

.btn-primary,
.btn.btn-primary,
a.btn-primary,
button.btn-primary,
.btn-quiz-filled,
.btn-add-question {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px !important;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3); */
}

.btn-primary:hover,
.button.btn-primary:hover,
a.btn-primary:hover,
.group-container .join-group-btn:hover,
.btn-add-question:hover {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-outlined,
.btn-quiz-outlined {
  background: transparent !important;
  color: #6b7280 !important;
  border: 1px solid #d1d5db !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.btn-outlined:hover,
.btn-quiz-outlined:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
  color: #374151 !important;
}

.btn-primary i,
.btn.btn-primary i,
.btn-outlined i,
.btn-primary span {
  color:#f8f8f8 !important;
}

button.btn-light {
  background: linear-gradient(135deg, #909090 0%, #808080 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px !important;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  /* box-shadow: 0 4px 6px rgba(254, 254, 254, 0.2) !important; */
}

.btn-danger{
  background: linear-gradient(135deg, #ef4444 0%, #ef4444 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px !important;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  /* box-shadow: 0 4px 6px rgba(254, 254, 254, 0.2) !important; */
}

.btn-primary.btn-in{
  padding: 0.95rem 1.5rem !important;
  border-radius: 100px !important;
}

 a.btn-primary{
  text-decoration: none !important;
 }

.btn-icon {
  /* width: 16px;
  height: 16px; */
  margin-right: 0.5rem;
}

@media (max-width: 640px) {
  .quiz-card-actions {
      display: block !important;
      gap: 1rem !important; /* Perfect spacing between buttons */
      justify-content: space-between !important; /* Optional: evenly distributes space */
      align-items: center !important;
      width: 100% !important;
      margin-top: 1rem !important;
    }

  .btn-grid {
    flex-direction: column-reverse; /* Stack vertically on mobile */
    gap: 0.75rem;
  }

  .btn-primary, .btn.btn-primary, a.btn-primary, button.btn-primary, .btn-quiz-filled, .btn-outlined, .btn-quiz-outlined {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
 .btn-primary,
 .btn.btn-primary,
 a.btn-primary,
 button.btn-primary,
 .btn-quiz-filled,
 .btn-outlined,
 .btn-quiz-outlined {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
  .quiz-card-actions {
      display: block !important;
      gap: 1rem !important; /* Perfect spacing between buttons */
      width: 100% !important;
      margin-top: 1rem !important;
  }

  .quiz-card-actions a.c-lb-btn {
    margin-top: 10px;
  }

 .btn-grid {
    justify-content: center !important;
  }

 .btn-primary, .btn.btn-primary, a.btn-primary, button.btn-primary, .btn-quiz-filled, .btn-outlined, .btn-quiz-outlined {
    width: 100% !important;
    justify-content: center !important;
  }
}

.btn-small-filled,
.btn-small-primary,
a.btn-small-primary,
.btn-sm-request,
.follow-btn.following {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

a.btn-small-primary {
  text-decoration: none !important;
}

.btn-small-filled:hover, .btn-small-primary:hover{
   box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-small-outlined {
  background: transparent !important;
  color: #6b7280 !important;
  border: 1px solid #d1d5db !important;
  padding: 0.5rem 1rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  width: 100% !important;
}

.btn-small-outlined:hover {
  background: #edf2f7 !important;
  border-color: #9ca3af !important;
  color: #374151 !important
}

.btn-small-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

.btn-small-filled, .btn-small-primary, .btn-small-outlined {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* End Button CSS */

.btn-sm-request{
  width:inherit !important;
}

.btn-small-primary .material-icons,
.btn-sm-request .material-icons{
  color: #fff !important;
}

.edit-btn-compact {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.25rem 0.5rem !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
}

.edit-btn-compact:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.content-container{
  border: 1px solid var(--border-light-color) !important;
}

/* Start Sign In CSS */
.modal-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.c-in-modal .logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.c-in-modal .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.c-in-modal .title {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
    line-height: 1.2;
}

.c-in-modal .subtitle {
    color: #7f8c8d;
    font-size: 14px;
}

.c-in-modal .btn-option {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-in-modal .btn-email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.c-in-modal .btn-email:hover {
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.c-in-modal .btn-google {
    background: white;
    color: #444;
    border: 1px solid #ddd;
}

.c-in-modal .btn-google:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
}

.c-in-modal .btn-option i {
    margin-right: 10px;
    font-size: 18px;
}

.c-in-modal .divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #95a5a6;
}

.c-in-modal .divider::before,
.c-in-modal .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ecf0f1;
}

.c-in-modal .divider span {
    padding: 0 15px;
    font-size: 13px;
}

.c-in-modal .footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #7f8c8d;
}

.c-in-modal .footer-text a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 600;
}

/* .c-in-modal .close-modal {
    background: #f1f2f6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
} */

/* .c-in-modal .close-modal:hover {
    opacity: 1;
    background: #e9ecf1;
} */
/* End Sign In CSS */

.competition-hero {
    text-align: center;
    padding: 40px 0;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.competition-hero h1 {
    font-size: 22px !important;
    margin-bottom: 15px;
    font-weight: 600 !important;
}

.competition-hero p {
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 20px;
    color: #777;
}

.competition-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .competition-hero h1 {
        font-size: 24px;
    }

    .competition-details {
        flex-direction: column;
    }
}

.head-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}


.group-card-header{
  background-color: #f8f8f8 !important;
  border: 1px solid var(--border-light-color) !important;
  border-radius: 15px !important;
}


/* Manage Group CSS */
.manage-group-container {
    margin: 0 auto;
    padding: 20px;
}

.header-group-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
}

.header-group-container h1 .material-icons {
    margin-right: 12px;
    color: #1a56ff;
}

.group-search-container {
    display: flex;
    align-items: center;
    background: #f5f7fa !important;
    border: none !important;
    border-radius: 25px;
    padding: 8px 16px;
    width: 100%;
}

.group-search-container input {
    border: none;
    background: #f5f7fa !important;
    padding: 8px;
    width: 100%;
    font-size: 15px;
    outline: none;
}

.tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tabs-container .tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tabs-container .tab {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.tabs-container .tab:hover {
    color: var(--primary-color);
    background-color: #f9fafc;
}

.tabs-container .tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: #f0f5ff;
}

.tabs-container .tab .material-icons {
    margin-right: 8px;
    font-size: 20px;
}

.tab-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.content .tab-content {
    display: none;
}

.content .tab-content.active {
    display: block;
}

.content .section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.content .section-title .material-icons {
    margin-right: 10px;
    font-size: 24px;
}

/* User Lists */
.content .user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content .user-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f9fafc;
    border-radius: 8px;
    border: 1px solid var(--border-light-color);
    transition: all 0.2s;
}

.content .user-item:hover {
    background: #f8f8f8 !important;
}

.content .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e6f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #1a56ff;
    font-weight: 500;
    flex-shrink: 0;
}

.content .user-info {
    flex: 1;
    min-width: 0;
}

.content .user-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.content .user-email {
    font-size: 14px;
    color: #777;
}

.content .user-role {
    padding: 6px 12px;
    background: #e6f0ff;
    border-radius: 20px;
    font-size: 13px;
    color: #1a56ff;
    margin-right: 10px;
    white-space: nowrap;
}

.content .user-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 10px;
    white-space: nowrap;
}

.content .status-pending, .status-pending {
    background: #fff4e6 !important;
    color: #f90 !important;
}

.content .status-invited, .status-invited {
    background: #e6f7ff !important;
    color: #1890ff !important;
}

.content .status-blocked, .status-blocked {
    background: #fff1f0 !important;
    color: #ff4d4f !important;
}

.content .user-actions {
    display: flex;
    gap: 8px;
}

.content .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.content .icon-btn:hover {
    background: #e6eef7;
}

.content .btn-primary {
    background: #1a56ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.content .btn-primary:hover {
    background: #0d46e0;
}

.content .btn-primary .material-icons {
    margin-right: 8px;
    font-size: 18px;
}

/* Empty State */
.tab-content .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.tab-content .empty-state .material-icons {
    font-size: 64px;
    margin-bottom: 16px;
    color: #ccc;
}

.tab-content .empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .manage-group-container {
        padding: 16px;
    }

    .header-group-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
    }

   .tabs-container .tabs {
        padding: 0 8px;
    }

   .tabs-container .tab {
        padding: 12px 16px;
    }

   .tabs-container .tab .material-icons {
        margin-right: 6px;
    }

   .content .content {
        padding: 20px 16px;
    }

   .content .user-item {
        flex-wrap: wrap;
    }

   .content .user-actions {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-end;
    }
}

/* Animation for tab switching */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    animation: fadeIn 0.3s ease;
}


/* Group Search CSS */
.gs-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.gs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gs-header-title {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    font-size: 24px;
}

.gs-header-title-icon {
    margin-right: 12px;
    color: #3b82f6;
    font-size: 28px;
}

.gs-save-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.gs-save-btn:hover {
    background: #2563eb;
}

.gs-save-btn-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Top Navigation */
.gs-top-nav {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none; /* Firefox */
}

.gs-top-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.gs-nav-items {
    display: flex;
    min-width: fit-content;
}

.gs-nav-item {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.gs-nav-item:hover {
    color: #3b82f6;
    background-color: #f9fafc;
}

.gs-nav-item.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background-color: #f0f5ff;
}

.gs-nav-icon {
    margin-right: 8px;
    font-size: 20px;
}

.gs-nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.gs-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 28px;
}

.gs-section {
    margin-bottom: 40px;
}

.gs-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.gs-section-icon {
    margin-right: 10px;
    font-size: 24px;
}

.gs-form-group {
    margin-bottom: 20px;
}

.gs-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.gs-input, .gs-textarea, .gs-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: border 0.2s;
}

.gs-input:focus, .gs-textarea:focus, .gs-select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.gs-textarea {
    min-height: 140px;
    resize: vertical;
}

.gs-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.gs-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

/* User Lists */
.gs-user-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gs-user-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s;
}

.gs-user-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.gs-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #3b82f6;
    font-weight: 500;
    flex-shrink: 0;
}

.gs-user-info {
    flex: 1;
    min-width: 0;
}

.gs-user-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.gs-user-email {
    font-size: 14px;
    color: #64748b;
}

.gs-user-role {
    padding: 6px 14px;
    background: #dbeafe;
    border-radius: 20px;
    font-size: 13px;
    color: #3b82f6;
    margin-right: 10px;
    white-space: nowrap;
}

.gs-user-actions {
    display: flex;
    gap: 8px;
}

.gs-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gs-icon-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.gs-add-member {
    display: flex;
    margin-top: 20px;
}

.gs-add-member-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.gs-add-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
}

/* Danger Zone */
.gs-danger-zone {
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 24px;
    background: #fef2f2;
}

.gs-danger-zone .gs-section-title {
    color: #dc2626;
}

.gs-danger-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
}

.gs-danger-btn:hover {
    background: #b91c1c;
}

/* Mobile Menu Button */
.gs-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    margin-right: 12px;
}

.gs-mobile-menu-btn:hover {
    background: #f1f5f9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gs-body {
        padding: 16px;
    }

    .gs-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 16px;
    }

    .gs-header-title {
        width: 100%;
        justify-content: space-between;
    }

    .gs-mobile-menu-btn {
        display: block;
    }

    .gs-save-btn {
        width: 100%;
        justify-content: center;
    }

    .gs-top-nav {
        border-radius: 12px;
        margin-bottom: 16px;
        display: none;
    }

    .gs-top-nav.active {
        display: block;
    }

    .gs-nav-items {
        flex-direction: column;
    }

    .gs-nav-item {
        padding: 14px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .gs-nav-item.active {
        border-bottom-color: transparent;
        border-left-color: #3b82f6;
    }

    .gs-content {
        padding: 20px 16px;
    }

    .gs-user-card {
        flex-wrap: wrap;
    }

    .gs-user-actions {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-end;
    }
}

/* Groups CSS */
/* Search and Filter */
.ge-search-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
}

.ge-search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.ge-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    font-size: 15px;
    transition: border 0.2s;
}

.ge-search-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ge-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.ge-filter-dropdown {
    min-width: 200px;
}

.ge-filter-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.ge-filter-select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Tabs */
.ge-tabs-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow-x: auto;
}

.ge-tabs {
    display: flex;
    min-width: fit-content;
}

.ge-tab {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.ge-tab:hover {
    color: #3b82f6;
    background-color: #f9fafc;
}

.ge-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background-color: #f0f5ff;
}

.ge-tab-icon {
    margin-right: 8px;
    font-size: 20px;
}

.ge-tab-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.ge-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 28px;
}

.ge-join-btn {
    background: #3b82f6 !important;
    color: #fff !important;
}

.ge-joined {
    background: var(--success-color) !important;
    color: #fff !important;
}

.ge-join-btn .material-icons, .ge-joined .material-icons{
  color: #fff !important;
  font-size: 14px !important;
}

.ge-pending{
  border: 1px solid #ccc;
  color: #808080;
}

.ge-view-btn {
    background: #10b981;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 8px !important;
}

.ge-view-btn:hover {
    background: #059669;
}

/* Empty State */
.ge-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.ge-empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.ge-empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.ge-empty-state-description {
    margin-bottom: 24px;
}

/* Filter tags */
.ge-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ge-filter-tag {
    display: flex;
    align-items: center;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.ge-filter-tag-close {
    margin-left: 6px;
    cursor: pointer;
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ge-body {
        padding: 16px;
    }

    .ge-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 16px;
    }

    .ge-search-filter-container {
        flex-direction: column;
        padding: 16px;
    }

    .ge-search-box, .ge-filter-dropdown {
        width: 100%;
    }

    .ge-tabs {
        flex-direction: column;
    }

    .ge-tab {
        padding: 14px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .ge-tab.active {
        border-bottom-color: transparent;
        border-left-color: #3b82f6;
    }

    .ge-content {
        padding: 20px 16px;
    }
}

/* Loading Animation */
@keyframes ge-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reset button */
.ge-reset-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}

.ge-reset-btn:hover {
    background: #dc2626;
}

.ge-reset-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Manage Group */
.mg-container {
    margin: 0 auto;
    gap: 20px;
}

/* Group Info Sidebar */
.mg-group-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.mg-group-cover {
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    margin: -20px -20px 16px;
    position: relative;
    overflow: hidden;
}

.mg-group-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mg-group-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #eff6ff;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #4f46e5;
    position: absolute;
    bottom: -35px;
    left: 20px;
}

.mg-group-info {
    margin-top: 44px;
}

.mg-group-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
}

.mg-group-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mg-group-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mg-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
}

.mg-meta-item .material-icons {
    font-size: 18px;
    color: #9ca3af;
    flex-shrink: 0;
}

.mg-group-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.mg-btn-primary {
    background: #4f46e5;
    color: white;
}

.mg-btn-primary:hover {
    background: #4338ca;
}

.mg-btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

.mg-btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Main Content */
.mg-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mg-content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.mg-card-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.mg-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mg-search-container {
    position: relative;
    width: 100%;
}

.mg-search-container .material-icons {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 1;
}

.mg-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.mg-search-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Tabs */
.mg-tabs-container {
    display: flex;
    border-bottom: 1px solid #f3f4f6;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mg-tabs-container::-webkit-scrollbar {
    display: none;
}

.mg-tab {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    gap: 6px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mg-tab.mg-active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.mg-tab-badge {
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mg-tab.mg-active .mg-tab-badge {
    background-color: #eef2ff;
    color: #4f46e5;
}

/* Content */
.mg-tab-content {
    padding: 20px;
    display: none;
}

.mg-tab-content.mg-active {
    display: block;
}

.mg-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* User List */
.mg-user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.mg-user-item {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    gap: 12px;
    transition: all 0.2s;
}

.mg-user-item:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.mg-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
}

.mg-user-avatar.mg-verified:after {
    content: 'verified';
    font-family: 'Material Icons';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.mg-user-info {
    flex-grow: 1;
    min-width: 0;
}

.mg-user-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mg-user-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.mg-user-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.mg-user-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mg-user-detail .material-icons {
    font-size: 14px;
}

.mg-user-role {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.mg-role-member {
    background-color: #f3f4f6;
    color: #6b7280;
}

.mg-role-admin {
    background-color: #eef2ff;
    color: #4f46e5;
}

.mg-role-owner {
    background-color: #fdf2f8;
    color: #be185d;
}

.mg-user-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.mg-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.mg-icon-btn:hover {
    background-color: #f3f4f6;
    color: #4f46e5;
}

.mg-action-success {
    color: #10b981 !important;
}

.mg-action-danger {
    color: #ef4444 !important;
}

/* Status Styles */
.mg-status-pending {
    background-color: #fffbeb;
    color: #f59e0b;
}

.mg-status-invited {
    background-color: #ecfdf5;
    color: #10b981;
}

.mg-status-blocked {
    background-color: #fef2f2;
    color: #ef4444;
}

/* Loading Animation */
.mg-loading {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

.mg-loading-dots {
    display: flex;
    gap: 6px;
}

.mg-loading-dots div {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4f46e5;
    animation: mg-bounce 1.5s infinite ease-in-out;
}

.mg-loading-dots div:nth-child(2) {
    animation-delay: 0.2s;
}

.mg-loading-dots div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes mg-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Empty State */
.mg-empty-state {
    text-align: center !important;
    padding: 30px 20px !important;
    color: #9ca3af !important;
}

.mg-empty-state .material-icons {
    font-size: 40px !important;
    margin-bottom: 12px !important;
    color: #e5e7eb !important;
}

.mg-empty-title{
  font-size: 16px !important;
}

/* Mobile menu button */
.mg-mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .mg-container {
        grid-template-columns: 260px 1fr;
        gap: 16px;
    }

    .mg-group-sidebar {
        padding: 16px;
    }

    .mg-group-cover {
        margin: -16px -16px 12px;
    }

    .mg-group-avatar {
        left: 16px;
    }

    .mg-tab {
        padding: 12px 14px;
    }
}

@media (max-width: 900px) {
    .mg-container {
        grid-template-columns: 1fr;
    }

    .mg-group-sidebar {
        position: static;
        margin-bottom: 16px;
    }

    .mg-mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .mg-body {
        padding: 12px;
    }

    .mg-group-sidebar {
        border-radius: 12px;
    }

    .mg-group-cover {
        height: 120px;
        border-radius: 10px;
    }

    .mg-group-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: -30px;
    }

    .mg-group-info {
        margin-top: 38px;
    }

    .mg-group-title {
        font-size: 16px;
    }

    .mg-content-card {
        border-radius: 12px;
    }

    .mg-card-header {
        padding: 16px;
    }

    .mg-tabs-container {
        padding: 0 16px;
    }

    .mg-tab {
        padding: 10px 12px;
        font-size: 14px;
    }

    .mg-tab-content {
        padding: 16px;
    }

    .mg-user-item {
        flex-wrap: wrap;
    }

    .mg-user-info {
        flex-basis: calc(100% - 50px);
    }

    .mg-user-role {
        order: 3;
        margin-top: 8px;
        margin-left: 50px;
    }

    .mg-user-actions {
        order: 2;
    }

    .mg-user-details {
        flex-direction: column;
        gap: 4px;
    }

    .mg-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mg-group-cover {
        height: 100px;
    }

    .mg-group-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: -25px;
    }

    .mg-group-info {
        margin-top: 32px;
    }

    .mg-tab {
        padding: 8px 10px;
        font-size: 13px;
    }

    .mg-tab .material-icons {
        font-size: 18px;
    }

    .mg-tab-badge {
        padding: 1px 6px;
        font-size: 11px;
    }

    .mg-user-item {
        padding: 12px;
    }

    .mg-user-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .mg-icon-btn {
        width: 30px;
        height: 30px;
    }

    .mg-icon-btn .material-icons {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .mg-tab {
        padding: 8px;
        font-size: 12px;
    }

    .mg-tab .material-icons {
        display: none;
    }

    .mg-user-detail {
        flex-basis: 100%;
    }
}

/* Manage Competition CSS */
 .mg-competition-item {
        display: flex;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s;
    }

    .mg-competition-item:hover {
        background-color: #f9f9f9;
    }

    .mg-competition-info {
        flex-grow: 1;
        margin-right: 16px;
    }

    .mg-competition-title {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 8px;
        color: #333;
    }

    .mg-competition-details {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 8px;
    }

    .mg-competition-detail {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #666;
    }

    .mg-competition-detail .material-icons {
        font-size: 16px;
        margin-right: 4px;
        color: #888;
    }

    .mg-competition-description {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }

    .mg-competition-status {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        margin-right: 16px;
    }

    .mg-status-active {
        background-color: #e8f5e9;
        color: #2e7d32;
    }

    .mg-status-upcoming {
        background-color: #e3f2fd;
        color: #1565c0;
    }

    .mg-status-ended {
        background-color: #f5f5f5;
        color: #9e9e9e;
    }

    .mg-competition-actions {
        display: flex;
        gap: 8px;
    }

    .mg-manage-all-link {
        text-align: center;
        padding: 16px;
        border-top: 1px solid #eee;
        margin-top: 16px;
    }

    .mg-manage-all-link a {
        color: #1976d2;
        text-decoration: none;
        font-weight: 500;
    }

    .mg-manage-all-link a:hover {
        text-decoration: underline;
    }

/* Group Settings */
.gst-container {
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid var(--border-light-color);
    border-radius: 10px;
    overflow: hidden;
}

.gst-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.gst-header-title {
    display: flex;
    align-items: center;
}

.gst-save-btn-icon {
    margin-right: 5px;
    font-size: 18px;
}

.gst-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 15px;
    color: #7f8c8d;
}

.gst-top-nav {
    padding: 0 20px;
    border-bottom: 1px solid #eaeaea;
    overflow-x: auto;
    white-space: nowrap;
}

.gst-nav-items {
    display: flex;
}

.gst-nav-item {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.gst-nav-item:hover {
    color: var(--primary-color) !important;
}

.gst-nav-item.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.gst-nav-icon {
    margin-right: 8px;
    font-size: 20px;
}

.gst-content {
    padding: 30px;
}

.gst-section {
    display: none;
}

.gst-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mg-section-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-bottom: 25px;
    color: #2c3e50;
}

.gst-section-icon {
    margin-right: 10px;
    color: #3498db;
}

.gst-form-group {
    margin-bottom: 20px;
}

.gst-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.gst-input, .gst-textarea, .gst-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.gst-input:focus, .gst-textarea:focus, .gst-select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.gst-textarea {
    min-height: 120px;
    resize: vertical;
}

.gst-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.gst-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gst-checkbox-group label {
    cursor: pointer;
}

.gst-danger-zone {
    padding: 20px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gst-danger-zone p {
    margin-bottom: 15px;
    color: #7f8c8d;
}

.gst-danger-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.gst-danger-btn:hover {
    background-color: #c0392b;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.toast.success {
    background-color: #27ae60;
}

.toast.error {
    background-color: #e74c3c;
}

@media (max-width: 768px) {
    .gst-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .gst-mobile-menu-btn {
        display: block;
    }

    .gst-top-nav {
        padding: 0;
    }

    .gst-nav-items {
        flex-direction: column;
    }

    .gst-nav-item {
        border-bottom: 1px solid #eaeaea;
        border-left: 3px solid transparent;
    }

    .gst-nav-item.active {
        border-bottom-color: #eaeaea;
        border-left-color: #3498db;
    }

    .gst-content {
        padding: 20px;
    }

    .mobile-open {
        display: flex !important;
    }
}

/* Incorrect answer CSS */
.question-row .incorrect-option {
    border: 1px solid #f8d9dc !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.question-row .incorrect-option .option-letter {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.question-row .incorrect-option .option-text {
    text-decoration: line-through;
}

.question-row .user-answer-banner, .correct-answer-banner {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.question-row .user-answer-banner.bg-danger, .correct-answer-banner.bg-success {
    border-left: 4px solid;
}

/* Wrong answer CSS */
.question-row .option-status-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.question-row .correct-icon {
    background-color:inherit;
    color: #198754 !important;
    /* border: 2px solid #198754; */
    font-size: 20px;
}

.question-row .incorrect-icon {
    /* background-color: inherit; */
    color: #dc3545 !important;
    /* border: 2px solid #dc3545; */
    font-size: 17px;
}

.question-row .user-answer-banner.bg-success {
    border-left: 4px solid #198754;
}

.question-row .option-text {
    flex-grow: 1;
}

/* Leaderboard Search CSS */
.lb-search {
    padding: 0px;
    display: flex;
    gap: 10px;
    position: relative;
}

.lb-search-results {
    position: absolute;
    background: white;
    width: calc(100% - 40px);
    max-width: 1176px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    top: 100%;
    left: 20px;
}

.lb-search-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-search-item:hover {
    background: #f8f9fa;
}

.lb-search-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.lb-search-item-desc {
    color: #6c757d;
    font-size: 0.9rem;
}

.lb-content {
    /* display: flex; */
    flex-direction: column;
    padding: 5px;
    /* overflow-y: auto; */
    flex: 1;
    text-align: center;
    align-items: center !important;
    padding: 0 !important;
}

.lb-competition-info {
    background: linear-gradient(to right, #4cc9f0, #4361ee);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lb-competition-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.lb-competition-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.lb-competition-meta div {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.lb-competition-description {
    line-height: 1.6;
}

.lb-no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.lb-no-results-icon {
    font-size: 3rem !important;
    margin-bottom: 15px !important;
    color: #ced4da !important;
}

.lb-no-results-icon .material-icons{
  font-size: 30px !important;
}

.lb-no-results-title {
    margin-bottom: 10px;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.lb-loading {
    text-align: center;
    padding: 40px;
}

.lb-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4cc9f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.scroll-loader {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .lb-competition-meta {
        grid-template-columns: 1fr;
    }

    .lb-content {
        padding: 5px;
    }
}


/* Quiz Questions CSS */

.start-quiz-container {
    margin: 0 auto !important;
    border: 1px solid var(--border-light-color) !important;
    border-radius: 15px !important;
}

.instructions-page{
  border-radius: 15px !important;
}

/* // */
.instructions-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: #f8f8f8 !important;
    color: #282828 !important;
    padding: 2rem;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    margin-bottom: 2px !important;
    text-align: center;
}

.instructions-header h1 {
    margin: 0 0 1rem 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.c-quiz-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.c-quiz-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px 10px !important;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px !important;
    color: var(--text-color) !important;
}

.c-quiz-detail i {
    font-size: 1.1rem;
    color: #ffd700; /* Gold color for icons */
}

.c-quiz-detail span {
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .instructions-header {
        padding: 1.5rem;
    }

    .instructions-header h1 {
        font-size: 2rem;
    }

    .c-quiz-meta {
        gap: 1rem;
    }

    .c-quiz-detail {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .c-quiz-meta {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .c-quiz-detail {
        justify-content: center;
    }
}

.c-quiz-content {
    padding: 20px !important;
}

.c-quiz-content h2 {
    font-size: 22px !important;
    color: #000000 !important;
}

.c-quiz-content p {
    font-size: 14.5px !important;
}

.c-quiz-content ul li {
    font-size: 14px !important;
}

.question-number {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 10px;
}

.question {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0px !important;
    color: #212529;
    line-height: 1.4;
}

.options-container {
    display: grid !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

.quiz-navigation {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0px !important;
}

.btn-prev {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-prev:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.btn-next:disabled, .btn-submit:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-submit {
    display: none;
}

.progress-container {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 0px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 0px !important;
    display: none;
}

.error-message.show {
    display: block;
}

.result-content {
    text-align: center;
    padding: 20px;
}

.result-score {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.result-text {
    font-size: 24px;
    margin-bottom: 20px;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.result-detail {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.detail-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.detail-label {
    font-size: 14px;
    color: #6c757d;
}

.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .start-quiz-container {
        margin: 20px;
    }

    .question {
        font-size: 20px;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .result-details {
        grid-template-columns: 1fr;
    }
}

/* Option 1: Modern Card Style */
.time-container {
    padding: 0 20px !important;
    border-radius: 16px;
    border-radius: 15px 15px 0 0 !important;
    gap:0 !important;
    text-align: center !important;
}

.time-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px !important;
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--primary-color) !important;
}

.time-header i {
    font-size: 1.1rem;
}

.time-display {
    font-size: 2.0rem !important;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    color: var(--primary-color);
}

.time-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: #ffd700;
    width: 100%;
    border-radius: 3px;
    transition: width 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #1e293b;
}

.timer-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

/* Warning states for low time */
.time-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.time-critical {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .time-display {
        font-size: 2rem !important;
    }
}
/*  */

.not-answered {
    border-left: 4px solid #ffc107 !important;
}

.submit-review{
  width: inherit !important;
}

#errorMessage{
  display: none;
}

.question-row .correct-user-answer {
    border-left: 4px solid #198754 !important;
}

.correct-answer-explanation {
    border-left: 4px solid #0dcaf0;
}

.not-answered-warning {
    border-left: 4px solid #ffc107;
}

.no-results {
    text-align: center !important;
    padding: 2rem !important;
    color: #666 !important;
}

.no-results i {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    color: #ddd !important;
}

/* Creators CSS */
.cr-container {
    margin: 0 auto;
}

.cr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.cr-logo {
    font-size: 24px;
    font-weight: bold;
    color: #0a66c2;
}

.cr-search-bar {
    display: flex;
    width: 100%;
}

.cr-search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius:25px !important;
    font-size: 16px;
}

.cr-search-bar button {
    padding: 10px 15px;
    background: #0a66c2;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cr-user-actions a {
    margin-left: 15px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.cr-user-actions a:hover {
    color: #0a66c2;
}

.cr-main-content {
    display: flex;
    gap: 20px;
}

.cr-sidebar {
    flex: 0 0 250px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.cr-sidebar h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.cr-filter-option {
    margin-bottom: 15px;
}

.cr-filter-option label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.cr-filter-option select, .cr-filter-option input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cr-filter-buttons {
    display: flex;
    gap: 10px;
}

.cr-filter-buttons button {
    flex: 1;
    padding: 8px;
    border: 1px solid #0a66c2;
    border-radius: 4px;
    background: white;
    color: #0a66c2;
    cursor: pointer;
    font-weight: 500;
}

.cr-filter-buttons button.cr-primary {
    background: #0a66c2;
    color: white;
}

.cr-content {
    flex: 1;
}

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

.cr-section-title h2 {
    font-size: 22px;
    color: #333;
}

.cr-view-options {
    display: flex;
    gap: 10px;
}

.cr-view-options button {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.cr-view-options button.cr-active {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.cr-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cr-user-card {
    background: white;
    border-radius: 15px !important;
    overflow: hidden;
    cursor: pointer !important;
    /* border: 1px solid var(--border-light-color) !important; */
    /* box-shadow: 0 0 2px rgba(0, 0, 0, 0.1); */
    border: 1px solid #f1f1f1 !important;
    transition: transform 0.3s ease;
}

.cr-user-card:hover {
  border: 1px solid #E8E8E8 !important;
}

.cr-card-header {
    position: relative;
    height: 80px;
    /* background: linear-gradient(135deg, #0a66c2, #00a0dc); */
    background-color: rgb(207, 217, 222);
}

.cr-avatar {
    position: absolute !important;
    bottom: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    background: #ddd !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cr-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0px !important;
}

.cr-card-body {
    padding: 40px 15px 20px;
    text-align: center;
}

.cr-user-name {
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-bottom: 0px !important;
}

.cr-user-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px !important;
}

.cr-user-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 4px !important;
    font-size: 13px;
    color: #666;
}

.cr-stat {
    text-align: center;
}

.cr-stat-value {
    font-weight: 600;
    color: #333;
}

.cr-card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cr-follow-btn {
    padding: 8px 15px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    width: 100% !important;
    font-size: 15px !important;
}

.cr-follow-btn {
    background: #0a66c2;
    color: white;
}

.cr-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.cr-pagination button {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.cr-pagination button.cr-active {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

@media (max-width: 768px) {
    .cr-main-content {
        flex-direction: column;
    }

    .cr-sidebar {
        flex: 1;
    }

    .cr-users-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .cr-header {
        flex-direction: column;
        gap: 15px;
    }

    .cr-search-bar {
        width: 100%;
    }

    .cr-users-grid {
        grid-template-columns: 1fr;
    }
}

/* Follow CSS */
.follow-btn.not-following {
  background-color: #fff !important;
  color:var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;


  padding: 0.45rem 0.95rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.follow-btn.not-following:hover {
  opacity: 0.9;
}

.follow-btn.following:hover {
  opacity: 0.9;
}

.fw-follow-btn.fw-follow{
  background-color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  outline: none !important;
  color: #fff !important;
}

.fw-follow-btn.fw-follow:hover{
  background-color: var(--primary-color) !important;
  color: #fff !important;
}
/* Connections Page CSS */

.fw-container {
    margin: 0 auto !important;
    padding: 0 10px 10px 10px !important;
    border: 1px solid var(--border-light-color) !important;
    border-radius: 10px !important;
}

/* Header Styles */
.fw-logo {
    font-size: 24px;
    font-weight: bold;
    color: #0a66c2;
    text-decoration: none;
}

.fw-search-bar {
    display: flex;
    width: 40%;
}

.fw-search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    background: #eef3f8;
}

.fw-search-bar button {
    padding: 12px 16px;
    background: #0a66c2;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.fw-nav {
    display: flex;
    gap: 24px;
}

.fw-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.fw-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.fw-nav-item.fw-active {
    color: #0a66c2;
}

/* Main Content */
.fw-main-content {
    gap: 24px;
}

/* Content Area */
.fw-content {
    background: white;
    border-radius: 8px;
    padding: 16px;
    /* box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); */
}

.fw-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.fw-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 500;
    color: #666 !important;
    border-radius: 0px !important;
    border-bottom: 2px solid transparent;
}

.fw-tab.fw-active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color) !important;
}

/* Connections Grid */
.fw-connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.fw-connection-card {
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
    padding: 0px;
    transition: all 0.3s ease;
}

.fw-connection-card:hover {
  cursor: pointer !important;
}

.fw-connection-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.fw-connection-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eef3f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0a66c2;
    font-size: 20px;
    flex-shrink: 0;
}

.fw-connection-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.fw-connection-main {
    flex: 1;
    min-width: 0;
}

.fw-connection-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.fw-connection-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.fw-connection-mutual {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.fw-connection-mutual span {
    color: #0a66c2;
    font-weight: 500;
}

.fw-connection-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 120px;
    flex-shrink: 0;
}

.fw-follow-btn {
    padding: 6px 12px !important;
    border: 1px solid #0a66c2 !important;
    border-radius: 25px !important;
    background: white !important;
    color: #0a66c2 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.fw-follow-btn.fw-following {
    background: #fff !important;
    border-color: var(--border-color) !important;
    color: #000 !important;
}

.fw-follow-btn.fw-following:hover {
    background: #f8f8f8 !important;
    border-color: var(--border-color) !important;
}

.fw-btn-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    background: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    font-size: 14px !important;
}

.fw-btn-icon:hover {
    background: #f3f2ef;
}

/* Filter Section */
.fw-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.fw-search-filter {
    /* flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px; */

    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    border: 1px solid #ddd;
    transition: box-shadow 0.3s;
    padding-right: 3rem;
}

.fw-search-filter:focus {
    outline: none;
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); */
    border: 1px solid #c6c6c6;
}

/* Loading */
.fw-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.fw-loading i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .fw-main-content {
        grid-template-columns: 1fr;
    }

    .fw-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .fw-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .fw-search-bar {
        width: 100%;
    }

    .fw-nav {
        width: 100%;
        justify-content: space-around;
    }

    .fw-connections-grid {
        grid-template-columns: 1fr;
    }

    .fw-filters {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fw-connection-header {
        flex-direction: column;
    }

    .fw-connection-actions {
        align-items: flex-start;
        width: 100%;
        margin-top: 12px;
        flex-direction: row;
        justify-content: space-between;
    }

    .fw-follow-btn {
        flex: 1;
        text-align: center;
    }
}

.followers a{
  text-decoration: none !important;
  color: var(--text-color) !important;
}

/*  */
.ge-container {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ge-header {
    background: #4a6fc0;
    color: white;
    padding: 25px;
    text-align: center;
}

.ge-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.ge-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.ge-content {
    padding: 30px;
}

.ge-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #4a6fc0;
}

.ge-card-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.ge-card-title i {
    margin-right: 10px;
    color: #4a6fc0;
}

.ge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #eee;
    margin-top: 0px;
}

.ge-members {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #546e7a;
    font-weight: 500;
}

.ge-members i {
    color: #4a6fc0;
}

.ge-status {
    display: flex;
    align-items: center;
}

.ge-type-badge {
    background: #e3f2fd;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    gap: 5px;
}

.ge-type-badge i {
    font-size: 1rem;
}

.ge-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ge-code-example {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #eaecef;
}

.ge-code-example h2 {
    color: #4a6fc0;
    margin-bottom: 15px;
    text-align: center;
}

pre {
    background: #2d3a4b;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ge-instructions {
    background: #f8f9fa;
    padding: 25px;
    border-top: 1px solid #eaecef;
    margin-top: 30px;
}

.ge-instructions h2 {
    color: #4a6fc0;
    margin-bottom: 15px;
    text-align: center;
}

.ge-instructions ul {
    list-style-position: inside;
    line-height: 1.6;
    padding: 0 15px;
}

.ge-instructions li {
    margin-bottom: 10px;
    color: #555;
}

@media (max-width: 600px) {
    .ge-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ge-status {
        align-self: flex-end;
    }

    .ge-examples {
        grid-template-columns: 1fr;
    }
}



/* Discard Modal Styles */
.discard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1060;
    justify-content: center;
    align-items: center;
}

.discard-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.discard-modal-icon {
    font-size: 48px !important;
    color: #e74c3c;
    margin-bottom: 15px;
}

.discard-modal-icon .material-icons {
    font-size: 48px !important;
}

.discard-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.discard-modal-text {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.discard-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.discard-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 100px;
}

.discard-modal-discard {
    background-color: #e74c3c;
    color: white;
}

.discard-modal-discard:hover {
    background-color: #c0392b;
}

.discard-modal-cancel {
    background-color: #f1f2f6;
    color: #7f8c8d;
}

.discard-modal-cancel:hover {
    background-color: #e0e0e0;
}

/* Toast notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1070;
    left: 50%;
    bottom: 30px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.toast.success {
    background-color: #27ae60;
}

.toast.error {
    background-color: #e74c3c;
}

.code-block {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    overflow-x: auto;
    margin-top: 30px;
}

.code-comment {
    color: #a0aec0;
}

/* Goup Competitions */
:root {
    --cmp-primary: #3498db;
    --cmp-secondary: #2980b9;
    --cmp-light: #ecf0f1;
    --cmp-dark: #34495e;
    --cmp-success: #27ae60;
    --cmp-danger: #e74c3c;
    --cmp-warning: #f39c12;
    --cmp-gray: #95a5a6;
    --cmp-border-radius: 8px;
    --cmp-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cmp-container {
    margin: 0 auto;
    padding: 0px;
    border: 1px solid var(--border-light-color);
    border-radius: var(--cmp-border-radius);
}

.cmp-group-description {
    background-color: white;
    border: 1px solid var(--border-light-color);
    background-color: #f8f8f8 !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 20px !important;
    text-align: center !important;
}

.cmp-group-description h2 {
    color: var(--heading-color) !important;
    font-weight: 700 !important;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cmp-group-description p {
    color: #555;
    line-height: 1.8;
}

.cmp-actions {
    position: relative;
    display: inline-block;
}

.cmp-ellipsis-btn {
    background: none;
    border: none;
    font-size: 18px !important;
    cursor: pointer;
    color: var(--cmp-dark) !important;
    padding: 5px 12px !important;
    margin-bottom: 6px !important;
    border-radius: 100% !important;
    transition: background-color 0.3s;
}

.cmp-ellipsis-btn:hover {
    background-color: #f8f8f8 !important;
}

.cmp-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border-radius: var(--cmp-border-radius);
    box-shadow: var(--cmp-box-shadow);
    width: 180px;
    z-index: 100;
    display: none;
}

.cmp-dropdown-menu.show {
    display: block;
}

.cmp-dropdown-item {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.cmp-dropdown-item:hover {
    background-color: var(--cmp-light);
}

.cmp-dropdown-item.delete,
.cmp-dropdown-item.disable {
    color: var(--text-color);
}

.cmp-dropdown-item i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.cmp-list {
    background-color: white;
    border-radius: 0;
    border: 1px solid var(--border-light-color);
}

.cmp-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    border-radius: 0 !important;
}

.cmp-list-item:last-child {
    border-bottom: none;
}

.cmp-item-info {
    flex: 1;
}

.cmp-item-info h3 {
    font-size: 1.5rem;
    color: var(--title-color) !important;
    margin-bottom: 5px;
    font-weight: 700 !important;
}

.cmp-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--cmp-gray);
}

.cmp-detail-item {
    display: flex;
    align-items: center;
}

.cmp-detail-item i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.cmp-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cmp-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.cmp-btn-edit {
    background-color: var(--cmp-primary);
    color: white;
}

.cmp-btn-edit:hover {
    background-color: var(--cmp-secondary);
}

.cmp-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.cmp-status-active {
    background-color: rgba(39, 174, 96, 0.2);
    color: var(--cmp-success);
}

.cmp-status-inactive {
    background-color: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
}

.cmp-loading {
    text-align: center;
    padding: 20px;
    color: var(--cmp-gray);
}

.cmp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--cmp-gray);
}

.cmp-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

.cmp-empty-state p {
    font-size: 18px;
}

@media (max-width: 768px) {
    .cmp-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmp-item-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }

    .cmp-item-details {
        flex-direction: column;
        gap: 5px;
    }

    .cmp-actions {
        position: absolute;
        right: 20px;
        top: 20px;
    }
}

/*  */
.dt-content {
    padding: 0px;
}
.dt-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}
.form-floating {
    flex: 1;
}
.c-input-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}
.date-time-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.date-time-group {
    flex: 1;
}
.responsive-container {
    gap: 20px;
}
@media (max-width: 768px) {
    .responsive-container {
        flex-direction: column;
    }
    .date-time-container {
        flex-direction: column;
    }
}
.dt-content .form-control {
    border-radius: 12px !important;
}

.deleting {
  opacity: 0.5;
  background-color: #ffeaea;
}

.auto-resize-textarea {
    resize: none;
    overflow: hidden !important;
    min-height: 120px !important;
    transition: all 0.3s ease !important;
    line-height: 1.5;
}

/* Invitation CSS */

.inv-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.inv-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.inv-status-accepted {
    background-color: #d4edda;
    color: #155724;
}

.inv-status-declined {
    background-color: #f8d7da;
    color: #721c24;
}

/* Modal styles */
.inv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.inv-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.inv-modal {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.inv-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inv-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

.inv-close-btn,
.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.inv-close-btn:hover,
.btn-close:hover {
    background-color: #f5f5f5;
    color: #2c3e50;
}

button.btn-close:active {
    outline:none !important;
    box-shadow: none !important;
}

.inv-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.inv-users-section {
    flex: 3;
    border-right: 1px solid #101010;
    display: flex;
    flex-direction: column;
}

.inv-search-container {
    padding: 16px 24px;
    border-bottom: 1px solid #e1e4e8;
}

.inv-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.inv-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.inv-users-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.inv-user-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.inv-user-item:hover {
    background-color: #f5f7f9;
}

.inv-user-item.selected {
    background-color: #e1f0fa;
}

.inv-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

.inv-user-info {
    flex: 1;
}

.inv-user-name {
    font-weight: 600;
    color: #2c3e50;
}

.inv-user-title {
    font-size: 14px;
    color: #7f8c8d;
}

.inv-user-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.inv-selected-section {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.inv-selected-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inv-selected-title {
    font-weight: 600;
    color: #2c3e50;
}

.inv-selected-count {
    background-color: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.inv-selected-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.inv-selected-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: #f5f7f9;
}

.inv-remove-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.inv-remove-btn:hover {
    background-color: #e74c3c;
    color: white;
}

.inv-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e1e4e8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}

.inv-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #7f8c8d;
}

.inv-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #bdc3c7;
}

.inv-empty-icon .material-icons {
    font-size: 32px;
}

.inv-empty-state p {
    font-size: 16px;
    font-weight: 600;
}

.inv-empty-state p.small {
    font-size: 14px;
    margin-top: 4px;
}

.inv-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.inv-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.inv-error-message {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
}

.inv-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px;
    display: none;
}

.inv-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.inv-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.inv-scroll-loader {
    text-align: center;
    padding: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.inv-end-of-list {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
}

.instant-join {
    color: #4CAF50;
}

.approval-needed {
    color: #FF9800;
}

.btn-sm-request[data-status="cancelled"] {
    background-color: #9e9e9e;
}

.btn-sm-request[data-status="cancelled"]:hover {
    background-color: #757575;
}

.save-btn, .cancel-btn{
  padding: 7px 15px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

button.cancel-btn:hover {
  background-color: linear-gradient(135deg, #DBDBDB 0%, #E1E6EB 100%) !important;
  transition: all 0.2s !important;
}

.edit-quiz textarea.form-control {
  min-height: 50px;
  resize: none;
  overflow-y: hidden;
  transition: height 0.2s ease-out;
  width: 100%;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Image upload CSS */
.qz-image-container {
    position: relative !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
}

.qz-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    /* border: 2px dashed #dee2e6; */
    background-color: #f8f9fa !important;
}

.qz-image-edit-icon {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background-color: white !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.qz-image-edit-icon:hover {
    background-color: #f8f9fa;
}

.qz-upload-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.qz-upload-container h5{
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #282828 !important;
}

.qz-upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.qz-upload-area.has-image {
    border-style: solid;
    padding: 10px;
    min-height: auto;
}

.qz-upload-area:hover,
.qz-upload-area.dragover {
    background-color: #f0f8ff;
    border-color: #0056b3;
}

.qz-preview-image {
    max-width: 100%;
    max-height: 120px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.qz-upload-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.qz-upload-btn, .qz-cancel-btn {
    padding: 6px 12px !important;
    border-radius: 25px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.qz-upload-btn .material-icons,
.qz-cancel-btn .material-icons {
  color: #fff !important;
}

.qz-upload-btn {
    background-color: #28a745;
    color: white;
}

.qz-upload-btn:hover {
    background-color: #218838;
}

.qz-upload-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.qz-cancel-btn {
    background-color: #dc3545;
    color: white;
}

.qz-cancel-btn:hover {
    background-color: #c82333;
}

.qz-progress-container {
    margin-top: 10px;
    display: none;
}

.qz-progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.qz-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.qz-progress-text {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

.qz-snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    transition: visibility 0s, opacity 0.5s ease;
    opacity: 0;
}

.qz-snackbar.show {
    visibility: visible;
    opacity: 1;
}

.qz-snackbar.success {
    background-color: #28a745;
}

.qz-snackbar.error {
    background-color: #dc3545;
}

.qz-no-border {
    border: none;
    box-shadow: none;
}

.qz-no-border:focus {
    border: none;
    box-shadow: none;
}

.qz-edit-icon {
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.qz-edit-icon:hover {
    opacity: 1;
}

.qz-edit-controls {
    display: none;
}

.qz-btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.qz-btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.qz-feed-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qz-rounded-5 {
    border-radius: 12px !important;
}

.qz-mb-3 {
    margin-bottom: 1rem !important;
}

.qz-align-items-center {
    align-items: center !important;
}

.qz-d-flex {
    display: flex !important;
}

.qz-file-input {
    display: none;
}

.qz-upload-instructions {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/*  */
.qz-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.qz-close-btn {
    background-color: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qz-close-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

/*  */
.tag {
    /* Your existing tag styles */
    padding: 8px 16px !important;
    text-decoration: none !important;
    color: #333;
    background-color: #f0f0f0;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
}

.tag--active {
    background-color: var(--primary-color) !important; /* Blue background */
    color: #fff !important;
}

/* Optional: Hover effects */
.tag:hover:not(.tag--active) {
    background-color: #e0e0e0;
    color: #333;
}

.group-actions button {
  border-radius: 25px !important;
}

/*  */
.c-list-group-item,
.no-search-results {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.c-list-group-item:hover {
    background-color: #f8f9ff;
}

.c-list-group-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    width: 100%;
    font-weight: 500;
}

.c-list-group-item a:hover {
    color: #6a11cb;
}

.c-list-group-item i {
    margin-right: 15px;
    color: #6a11cb;
}

.c-signin {
    color: #888 !important;
    cursor: not-allowed;
}

/* Notifications */
/* Notification Styles */
.notification-toast {
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.notification-icon {
    font-size: 1.5rem;
}

#notification-container {
    max-height: 100vh;
    overflow-y: auto;
}

/* Settings Styles */
.master-toggle {
    border-left: 4px solid #4f46e5;
}

.email-option:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.email-option:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form switch customization */
.form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.form-check-input:indeterminate {
    background-color: #6b7280;
    border-color: #6b7280;
}

/* Loading states */
#notification-loading {
    color: #6b7280;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-toast {
        min-width: 280px;
        max-width: 320px;
    }

    .settings-header h5 {
        font-size: 1.25rem;
    }
}

/*  */
.modal-description p {
  text-align: center !important;
  font-size: 15px !important;
  color: #696969 !important;
  font-weight: 600 !important;
}

/* ===== 404 ERROR  ===== */
.error__content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.error__content--title {
    font-size: 4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.error__content--desc {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error__content--btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.error__content--btn:hover {
    opacity: 0.9;
}

.error__content--btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .error__content {
        padding: 3rem 1.5rem;
    }

    .error__content--title {
        font-size: 3rem;
    }

    .error__content--desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .error__content {
        padding: 2rem 1rem;
    }

    .error__content--title {
        font-size: 2.5rem;
    }

    .error__content--btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/*  */
/* Radio Group Styles */
.c-radio-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.c-radio-item,
.radio-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* background: #fff; */
}

.c-radio-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.c-radio-item:has(.c-radio-input:checked) {
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.c-radio-input {
    display: none;
}

.c-radio-label,
.radio-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
}

.c-radio-title,
.radio-title {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    margin-bottom: 4px;
}

.c-radio-description,
.radio-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* Focus state for accessibility */
.c-radio-input:focus + .c-radio-label,
.radio-input:focus + .radio-label {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .c-radio-item,
    .radio-item {
        padding: 12px;
    }

    .c-radio-title,
    .radio-title {
        font-size: 15px;
    }

    .c-radio-description,
    .radio-description {
        font-size: 13px;
    }
}

/*  */
/* Form Group Styles */
.c-form-group,
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.c-input-header,
.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.c-input-label,
.input-label {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    letter-spacing: -0.2px;
}

.c-char-count,
.char-count {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}

.c-char-count.warning,
.char-count.warning {
    color: #ed8936;
}

.c-char-count.error,
.char-count.error {
    color: #f56565;
}

/* Input Wrapper */
.c-input-wrapper,
.input-wrapper {
    position: relative;
    border-radius: 12px;
    /* background: #fff; */
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
}

.c-input-field,
.input-field {
    width: 100%;
    padding: 16px 20px;
    /* border: 2px solid #e2e8f0; */
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #2d3748;
    /* background: #fff; */
    resize: vertical;
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    font-family: inherit;
}

.c-input-field::placeholder,
.input-field::placeholder,
.form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.c-input-field:hover,
.input-field:hover {
    border-color: #cbd5e0;
    background: #fafafa;
}

.c-input-field:focus,
.input-field:focus {
    outline: none;
    border-color: #4299e1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Focus Border Animation */
.c-input-focus-border,
.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    /* transform: translateX(-50%); */
    border-radius: 2px;
}

.c-input-field:focus ~ .c-input-focus-border,
.input-field:focus ~ .input-focus-border {
    width: 100%;
}

/* Input Hint */
.c-input-hint,
.input-hint {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 400;
}

/* Error States */
.c-input-field.error,
.input-field.error {
    border-color: #fc8181;
    background: #fff5f5;
}

.c-input-field.error:focus,
.input-field.error:focus {
    border-color: #fc8181;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

.c-input-error,
.input-error {
    font-size: 13px;
    color: #e53e3e;
    margin-top: 6px;
    font-weight: 500;
    display: none;
}

.c-input-error.show,
.input-error.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Success State */
.c-input-field.success,
.input-field.success {
    border-color: #48bb78;
}

.c-input-field.success:focus,
.input-field.success:focus {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

/* Floating Label Animation (Alternative) */
.c-input-floating,
.input-floating {
    position: relative;
    margin-bottom: 2rem;
}

.c-input-floating .c-input-field,
.input-floating .input-field {
    padding-top: 24px;
    padding-bottom: 8px;
}

.c-input-floating label,
.input-floating label {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 16px;
    color: #a0aec0;
    pointer-events: none;
    transition: all 0.3s ease;
    /* background: #fff; */
    padding: 0 4px;
}

.c-input-floating .c-input-field:focus + label,
.c-input-floating .c-input-field:not(:placeholder-shown) + label,
.input-floating .input-field:focus + label,
.input-floating .input-field:not(:placeholder-shown) + label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    color: #4299e1;
    font-weight: 600;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(66, 153, 225, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .c-input-field,
    .input-field {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .c-input-header,
    .input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .c-char-count,
    .char-count {
        align-self: flex-end;
    }
}

/*  */
/* Result Items Styling */
.result-item {
    transition: all 0.3s ease;
    cursor: default;
    border-left: 3px solid transparent;
}

.result-item:hover {
    transform: translateX(5px);
    background-color: #f8f9fa !important;
}

.result-item-correct:hover {
    border-left-color: #28a745;
}

.result-item-percentage:hover {
    border-left-color: #007bff;
}

.result-item-total:hover {
    border-left-color: #17a2b8;
}

.result-item-grade:hover {
    border-left-color: #ffc107;
}

.result-item-commendation:hover {
    border-left-color: #dc3545;
}

/* Icon Circle Styling */
.result-icon {
    width: 40px;
    text-align: center;
}

.icon-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.result-item:hover .icon-circle {
    transform: scale(1.1);
}

.icon-circle i {
    font-size: 20px;
}

/* Result Label Styling */
.result-label {
    font-size: 0.85rem !important;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 0.3px;
}

/* Value Styling */
.result-item h6:last-child {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Score Heading */
.score-heading {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Quiz Info Header */
#quiz-info {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .result-label {
        font-size: 0.75rem;
    }

    .result-item h6:last-child {
        font-size: 0.9rem;
    }

    .icon-circle {
        width: 32px;
        height: 32px;
    }

    .icon-circle i {
        font-size: 16px;
    }

    .result-icon {
        width: 32px;
    }
}

/* Animation for result items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-item {
    animation: slideIn 0.3s ease forwards;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }
.result-item:nth-child(5) { animation-delay: 0.5s; }

/* Optional: Add gradient backgrounds for variety */
.result-item-correct .icon-circle {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.result-item-percentage .icon-circle {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.result-item-total .icon-circle {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.result-item-grade .icon-circle {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.result-item-commendation .icon-circle {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}


/*  */
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #1DA1F2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern spinner alternative (like Twitter's new spinner) */
.spinner-modern {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    position: relative;
}

.spinner-modern::before,
.spinner-modern::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.spinner-modern::before {
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, #1DA1F2, #1DA1F2);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: spin 0.8s linear infinite;
}

.spinner-modern::after {
    width: 70%;
    height: 70%;
    background: white;
    top: 15%;
    left: 15%;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fade in animation */
#quizContent {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/*  */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px;
}

.spinner-container {
    text-align: center;
}

/* Option 1: Gradient spinner (recommended - uses both colors) */
.spinner-border,
.btn-spinner-border {
    /* width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid transparent;
    border-top: 3px solid #667eea;
    border-right: 3px solid #764ba2;
    border-bottom: 3px solid #667eea;
    border-left: 3px solid #764ba2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite; */

    width: 24px;
    height: 24px;
    margin: 0 auto;
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-top: 3px solid #667eea;
    border-right: 3px solid white;
    border-bottom: 3px solid #667eea;
    border-left: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-spinner-border {
    width: 16px;
    height: 16px;
}

/* Option 2: Single color spinner (uses #667eea) */
.spinner-border-single {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Option 3: Gradient border spinner (most modern) */
.spinner-border-gradient {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #667eea, #764ba2, #667eea);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #667eea;
    font-size: 14px !important;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for the text */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.loading-text {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Fade in for content */
#quizContent {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*  */
button.unhide-btn {
  border-radius: 25px !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
  background-color: #E8E8E8 !important;
  color:#696969 !important;
}

/*  */
.owner-badge {
    display: inline-block !important;
    background-color: #4CAF50 !important;
    color: white !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

.cr-follow-btn.disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}


/*  */
/* Main Container */
.lbd-container {
    margin: 0 auto;
    padding: 0 !important;
    padding-bottom: 80px;
}

/* Stats Grid */
.lbd-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lbd-stat-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lbd-stat-card:active {
    transform: scale(0.98);
}

.lbd-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.lbd-stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.lbd-stat-label {
    color: #666;
    font-size: 0.75rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Bar */
.lbd-filter-bar {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.lbd-filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.lbd-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lbd-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lbd-dynamic-filter {
    width: 100%;
}

.lbd-dynamic-filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
}

.lbd-dynamic-filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lbd-search-box {
    position: relative;
    width: 100%;
}

.lbd-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
}

.lbd-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lbd-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.lbd-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.lbd-filter-chip {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background-color: #f0f0f0;
    color: var(--text-color) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.lbd-filter-chip:hover:not(.lbd-filter-chip--active) {
    background-color: #e0e0e0 !important;
    color: #333;
}

.lbd-filter-chip:active {
    transform: scale(0.95);
}

.lbd-filter-chip-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border-color: transparent;
}

/* Leaderboard Cards */
.lbd-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lbd-card {
    background-color: white;
    border-radius: 20px;
    padding: 16px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
    border:1px solid #E0E0E0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: lbd-slideIn 0.3s ease forwards;
}

@keyframes lbd-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lbd-card:active {
    transform: scale(0.98);
}

.lbd-card-current-user {
    background: linear-gradient(135deg, #f5f0ff 0%, #faf5ff 100%);
    border-left: 4px solid #764ba2;
}

/* Card Header */
.lbd-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lbd-rank-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
}

.lbd-rank-1 .lbd-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #856404;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.lbd-rank-2 .lbd-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #5a6268;
}

.lbd-rank-3 .lbd-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #e6a17a);
    color: #fff;
}

.lbd-rank-other .lbd-rank-badge {
    background: #f0f0f0;
    color: #666;
}

.lbd-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lbd-user-info {
    flex: 1;
}

.lbd-user-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lbd-user-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    font-weight: normal;
}

.lbd-user-meta {
    font-size: 11px;
    color: #666;
}

/* Card Details */
.lbd-card-details {
    margin-bottom: 12px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.lbd-quiz-info {
    margin-bottom: 8px;
}

.lbd-quiz-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lbd-quiz-title .material-icons {
    font-size: 16px;
    color: #667eea;
}

.lbd-competition-badge,
.lbd-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 20px;
    color: #666;
    margin-top: 4px;
}

.lbd-score-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.lbd-score-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.lbd-percentage-score {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lbd-score-fraction {
    font-size: 0.85rem;
    color: #666;
}

.lbd-grade-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.lbd-grade-a {
    background: #d4edda;
    color: #155724;
}

.lbd-grade-b {
    background: #d1ecf1;
    color: #0c5460;
}

.lbd-grade-c {
    background: #fff3cd;
    color: #856404;
}

.lbd-commendation-card {
    background-color: #f8f9fa;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

/* Card Footer */
.lbd-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
}

.lbd-date-info, .lbd-time-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lbd-view-details {
    color: #667eea;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Loading State */
.lbd-loading-state {
    text-align: center;
    padding: 60px 20px;
}

.lbd-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: lbd-spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes lbd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.lbd-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
}

.lbd-empty-state .material-icons {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 16px;
}

.lbd-empty-state h3 {
    margin-bottom: 8px;
    color: #333;
}

.lbd-empty-state p {
    color: #666;
    font-size: 0.9rem;
}

.lbd-retry-btn {
    margin-top: 16px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
}

/* Pagination */
.lbd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.lbd-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0 !important;
    background-color: white;
    color:#333 !important;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lbd-page-btn:active {
    transform: scale(0.95);
}

.lbd-page-btn-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.lbd-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lbd-pagination-dots {
    padding: 0 4px;
    color: #999;
}

/* Pull to Refresh */
.lbd-pull-to-refresh {
    text-align: center;
    padding: 12px;
    color: #999;
    font-size: 12px;
}

/* Responsive */
@media (min-width: 600px) {
    .lbd-container {
        padding: 24px;
    }

    .lbd-stats-grid {
        gap: 16px;
    }

    .lbd-stat-card {
        padding: 20px;
    }

    .lbd-stat-value {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .lbd-container {
        max-width: 900px;
    }

    .lbd-filter-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lbd-filter-select {
        flex: 1;
        min-width: 150px;
    }

    .lbd-search-box {
        flex: 2;
    }
}

/*  */
/* Challenge Badges */
.challenge-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.challenge-badges .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    transition: transform 0.2s ease;
}

.challenge-badges .badge .material-icons {
    font-size: 14px;
}

/* Hover effect */
.quiz-card:hover .challenge-badges .badge {
    transform: scale(1.05);
}

/* Win/Loss record */
.challenge-badges small.text-muted {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Challenge opponent text */
.challenge-badges small.d-block {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 2px;
}

.challenge-badges small.d-block strong {
    color: #495057;
}

/* Badge colors */
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

/*  */
/* Challenge Acceptance Modal - Full Styles */
.challenge-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: challengeFadeIn 0.3s ease;
    padding: 20px;
}

.challenge-modal-overlay.closing {
    animation: challengeFadeOut 0.3s ease forwards;
}

.challenge-modal-container {
    width: 100%;
    max-width: 480px;
    animation: challengeSlideUp 0.4s ease;
}

.challenge-modal-overlay.closing .challenge-modal-container {
    animation: challengeSlideDown 0.3s ease forwards;
}

.challenge-modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    max-height: 90vh;
    overflow-y: auto;
}

/* Close Button */
.challenge-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f3f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868e96;
    transition: all 0.2s ease;
}

.challenge-modal-close:hover {
    background: #e9ecef;
    color: #212529;
    transform: rotate(90deg);
}

/* Header */
.challenge-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.challenge-modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: challengePulse 2s ease-in-out infinite;
}

.challenge-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 4px 0;
}

.challenge-modal-subtitle {
    font-size: 14px;
    color: #868e96;
    margin: 0;
}

/* Player Card */
.challenge-player-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 2px solid #e9ecef;
}

.challenge-player-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.challenge-player-info {
    flex: 1;
}

.challenge-player-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 2px 0;
}

.challenge-player-badge {
    font-size: 13px;
    color: #495057;
    background: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid #dee2e6;
}

/* VS Divider */
.challenge-vs-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 16px 0;
}

.challenge-vs-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

.challenge-vs-badge {
    font-size: 14px;
    font-weight: 700;
    color: #6c5ce7;
    background: #f0edff;
    padding: 4px 16px;
    border-radius: 12px;
    letter-spacing: 1px;
}

/* Quiz Info */
.challenge-quiz-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #6c5ce7;
}

.challenge-quiz-icon {
    font-size: 20px;
}

.challenge-quiz-details {
    flex: 1;
}

.challenge-quiz-label {
    font-size: 12px;
    color: #868e96;
    display: block;
}

.challenge-quiz-details strong {
    font-size: 14px;
    color: #212529;
}

/* Timer */
.challenge-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff3cd;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #856404;
    font-size: 14px;
}

.challenge-timer svg {
    flex-shrink: 0;
}

.challenge-timer strong {
    color: #dc3545;
    font-family: monospace;
    font-size: 16px;
}

/* Action Buttons */
.challenge-modal-actions {
    display: flex;
    gap: 12px;
}

.challenge-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.challenge-btn svg {
    flex-shrink: 0;
}

.challenge-btn-decline {
    background: #f1f3f5;
    color: #495057;
}

.challenge-btn-decline:hover {
    background: #e9ecef;
}

.challenge-btn-accept {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.challenge-btn-accept:hover {
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.challenge-btn-accept:active {
    transform: translateY(0);
}

/* Animations */
@keyframes challengeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes challengeFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes challengeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes challengeSlideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
}

@keyframes challengePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Scrollbar Styling */
.challenge-modal-content::-webkit-scrollbar {
    width: 4px;
}

.challenge-modal-content::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

.challenge-modal-content::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}

.challenge-modal-content::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Responsive */
@media (max-width: 480px) {
    .challenge-modal-content {
        padding: 24px 20px;
    }

    .challenge-modal-title {
        font-size: 20px;
    }

    .challenge-modal-actions {
        flex-direction: column-reverse;
    }

    .challenge-btn {
        padding: 16px;
    }

    .challenge-player-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Confetti burst effect */
.challenge-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.challenge-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(1.5);
        opacity: 0;
    }
}


/*  */
/* ===== CUSTOM NOTIFICATION SYSTEM ===== */
.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.notification-container .notification {
    pointer-events: auto;
}

/* Individual Notification */
.notification {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transform: translateX(120%);
    animation: notificationSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-left: 4px solid #6c5ce7;
    position: relative;
    overflow: hidden;
}

.notification.removing {
    animation: notificationSlideOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Notification Types */
.notification.success {
    border-left-color: #00b894;
}

.notification.success .notification-icon {
    background: #00b894;
    color: #fff;
}

.notification.error {
    border-left-color: #e17055;
}

.notification.error .notification-icon {
    background: #e17055;
    color: #fff;
}

.notification.warning {
    border-left-color: #fdcb6e;
}

.notification.warning .notification-icon {
    background: #fdcb6e;
    color: #2d3436;
}

.notification.info {
    border-left-color: #0984e3;
}

.notification.info .notification-icon {
    background: #0984e3;
    color: #fff;
}

/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    background: #6c5ce7;
    color: #fff;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 2px 0;
}

.notification-message {
    font-size: 14px;
    color: #636e72;
    margin: 0;
    line-height: 1.4;
}

/* Notification Close Button */
.notification-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f3f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868e96;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: -2px;
    padding: 0;
}

.notification-close:hover {
    background: #e9ecef;
    color: #212529;
    transform: rotate(90deg);
}

.notification-close svg {
    width: 16px;
    height: 16px;
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(108, 92, 231, 0.3);
    border-radius: 0 0 16px 16px;
}

.notification-progress .progress-bar {
    height: 100%;
    background: #6c5ce7;
    border-radius: 0 0 16px 16px;
    animation: notificationProgress linear forwards;
}

.notification.success .notification-progress .progress-bar {
    background: #00b894;
}

.notification.error .notification-progress .progress-bar {
    background: #e17055;
}

.notification.warning .notification-progress .progress-bar {
    background: #fdcb6e;
}

/* Animations */
@keyframes notificationSlideIn {
    0% {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
}

@keyframes notificationProgress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Stack animations - each notification appears slightly offset */
.notification:nth-child(1) {
    animation-delay: 0.05s;
}
.notification:nth-child(2) {
    animation-delay: 0.1s;
}
.notification:nth-child(3) {
    animation-delay: 0.15s;
}

/* Responsive */
@media (max-width: 480px) {
    .notification-container {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }

    .notification {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .notification-title {
        font-size: 14px;
    }

    .notification-message {
        font-size: 13px;
    }
}

/* Dialog Overlay */
.notification-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    animation: dialogFadeIn 0.3s ease;
}

.notification-dialog-overlay.closing {
    animation: dialogFadeOut 0.3s ease forwards;
}

.notification-dialog {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: dialogSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.notification-dialog .dialog-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
}

.notification-dialog .dialog-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 8px 0;
}

.notification-dialog .dialog-message {
    font-size: 16px;
    color: #636e72;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.notification-dialog .dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notification-dialog .dialog-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-dialog .dialog-btn-primary {
    background: #6c5ce7;
    color: #fff;
}

.notification-dialog .dialog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.notification-dialog .dialog-btn-secondary {
    background: #f1f3f5;
    color: #495057;
}

.notification-dialog .dialog-btn-secondary:hover {
    background: #e9ecef;
}

@keyframes dialogFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dialogFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes dialogSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*  */
/* XP Widget Styles */
.xp-widget {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.xp-widget:hover {
    border-color: #6c5ce7;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.08);
}

.level-badge .badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
}

.xp-widget .progress {
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.xp-widget .progress-bar {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 10px;
    transition: width 1s ease;
}

.xp-widget .material-icons {
    vertical-align: middle;
}

.xp-widget .border-top {
    border-color: #e9ecef;
}

#claimDailyBonus {
    border-radius: 8px;
    font-size: 13px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

#claimDailyBonus:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

#claimDailyBonus:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Level Up Animation */
@keyframes levelUpPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.level-up {
    animation: levelUpPulse 0.5s ease;
}

/* XP Earned Popup */
.xp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    z-index: 1000;
    text-align: center;
    animation: xpPopupIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xp-popup .xp-amount {
    font-size: 48px;
    font-weight: 700;
    color: #6c5ce7;
}

.xp-popup .xp-label {
    font-size: 16px;
    color: #6c757d;
}

@keyframes xpPopupIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes xpPopupOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/*  */
/* ========================================== */
/* MOBILE BOTTOM NAVIGATION - FIXED */
/* ========================================== */

/* Fix for scrolling pages - ensure nav stays on top */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999 !important; /* Higher z-index to stay on top */
    border-top: 1px solid #e9ecef;
    /* Ensure it stays above everything */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure body has proper padding for fixed nav */
body {
    padding-bottom: 80px !important;
}

/* On smaller screens, adjust padding */
@media (max-width: 576px) {
    body {
        padding-bottom: 70px !important;
    }

    .mobile-bottom-nav {
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    }
}

/* Fix for pages with overflow */
html, body {
    overflow-x: hidden;
}

/* Ensure main content doesn't go under the nav */
.main-content,
.container,
.feeds,
.quiz-container,
.result-page {
    padding-bottom: 20px;
}

/* Last child in scrollable containers should have extra bottom margin */
.feeds > :last-child,
.quiz-container > :last-child,
.result-page > :last-child,
.main-content > :last-child {
    margin-bottom: 30px;
}

/* ========================================== */
/* MOBILE GAMIFICATION BAR - FIXED POSITION */
/* ========================================== */

.mobile-gamification-bar {
    position: sticky;
    top: 0;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    /* Ensure it stays above content */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ========================================== */
/* FIX FOR MODALS AND OVERLAYS */
/* ========================================== */

.modal {
    z-index: 10000 !important;
}

.modal-backdrop {
    z-index: 9999 !important;
}

/* Ensure dropdowns and popovers appear above nav */
.dropdown-menu,
.popover,
.tooltip {
    z-index: 10001 !important;
}

/* ========================================== */
/* FIX FOR INFINITE SCROLL */
/* ========================================== */

/* Loading indicator should not overlap nav */
.loading-state,
#loading {
    margin-bottom: 80px;
}

/* Last item in infinite scroll */
.feeds .quiz-card:last-child {
    margin-bottom: 30px;
}

/* ========================================== */
/* SAFE AREA FOR NOTCH PHONES */
/* ========================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@supports (padding-bottom: constant(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + constant(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(80px + constant(safe-area-inset-bottom));
    }
}


/* ========================================== */
/* MOBILE BOTTOM NAV */
/* ========================================== */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-top: 1px solid #e9ecef;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 12px;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: all 0.2s ease;
    color: #adb5bd;
    border-radius: 8px;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item.active {
    color: #6c5ce7;
}

.bottom-nav-item .nav-icon {
    font-size: 22px;
}

.bottom-nav-item .nav-label {
    font-size: 9px;
    font-weight: 500;
}

.bottom-nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.bottom-nav-item .nav-coin-count {
    font-size: 9px;
    font-weight: 600;
    color: #fdcb6e;
}

body {
    padding-bottom: 70px;
}

/*  */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cover-option {
    aspect-ratio: 16 / 9;
    border: 3px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cover-option:hover {
    border-color: #6c5ce7;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.2);
}

.cover-option.selected {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.cover-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .cover-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================== */
/* IMPORT WIZARD */
/* ========================================== */

.import-dropzone {
    border: 3px dashed #dee2e6;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.import-dropzone:hover {
    border-color: #6c5ce7;
    background: #f0edff;
}

.import-dropzone.dragover {
    border-color: #6c5ce7;
    background: #f0edff;
    transform: scale(1.02);
}

.import-dropzone.has-file {
    border-color: #00b894;
    border-style: solid;
    background: #e8fff5;
}

.dropzone-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
}

.dropzone-icon.success {
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

.dropzone-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 6px 0;
}

.dropzone-subtitle {
    font-size: 13px;
    color: #868e96;
    margin: 0 0 12px 0;
}

.dropzone-formats {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.format-badge {
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #495057;
}

/* Format Info */
.import-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.import-info h6 {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    margin: 0 0 12px 0;
}

.format-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.format-tab {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #868e96;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-tab.active {
    background: #6c5ce7;
    color: #fff;
    border-color: #6c5ce7;
}

.format-content pre {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-size: 11px;
    margin: 0;
    overflow-x: auto;
    color: #495057;
    font-family: 'Courier New', monospace;
}

/* Mapping */
.mapping-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mapping-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
}

.mapping-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.mapping-icon {
    font-size: 16px;
}

.required-badge {
    font-size: 9px;
    padding: 2px 6px;
    background: #ffe5e0;
    color: #e17055;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.mapping-select {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}

.mapping-select:focus {
    outline: none;
    border-color: #6c5ce7;
}

/* Preview */
.import-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.import-preview h6 {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    margin: 0 0 12px 0;
}

.preview-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-row {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.preview-num {
    width: 24px;
    height: 24px;
    background: #6c5ce7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-field {
    display: flex;
    gap: 6px;
    font-size: 11px;
}

.preview-key {
    color: #868e96;
    font-weight: 600;
    flex-shrink: 0;
}

.preview-value {
    color: #2d3436;
    word-break: break-word;
}

/* Summary */
.import-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.summary-stat {
    background: linear-gradient(135deg, #f0edff, #e8e3ff);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #6c5ce7;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-label {
    font-size: 11px;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Question Preview */
.import-questions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.import-q-preview {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.import-q-num {
    width: 24px;
    height: 24px;
    background: #6c5ce7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.import-q-body {
    flex: 1;
    min-width: 0;
}

.import-q-text {
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
}

.import-q-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.import-opt {
    padding: 3px 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 11px;
    color: #495057;
}

.import-opt.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
    font-weight: 600;
}

@media (max-width: 576px) {
    .import-summary {
        grid-template-columns: 1fr;
    }
    .mapping-row {
        flex-direction: column;
        align-items: stretch;
    }
    .mapping-select {
        max-width: 100%;
    }
}

/* ========================================== */
/* TEMPLATE WIZARD */
/* ========================================== */

.template-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #6c5ce7;
    background: #f0edff;
}

.filter-chip.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #fff;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.template-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: #6c5ce7;
    background: #f0edff;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.12);
}

.template-card.selected {
    border-color: #6c5ce7;
    background: #f0edff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.template-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.template-body {
    flex: 1;
    min-width: 0;
}

.template-name {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 4px 0;
}

.template-desc {
    font-size: 12px;
    color: #636e72;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.template-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.template-badge {
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #495057;
}

.template-difficulty {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-difficulty.easy { background: #d4edda; color: #155724; }
.template-difficulty.medium { background: #fff3cd; color: #856404; }
.template-difficulty.hard { background: #f8d7da; color: #721c24; }

.template-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #6c5ce7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.template-badge-review {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0edff, #e8e3ff);
    border-radius: 12px;
    border: 2px solid #d5cdfa;
}

.template-icon-small {
    font-size: 32px;
}

.customize-section {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    border: 2px solid #e9ecef;
}

.customize-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customize-hint {
    font-size: 12px;
    color: #868e96;
    margin: 0 0 12px 0;
}

.template-q-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-q-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.template-q-num {
    width: 24px;
    height: 24px;
    background: #6c5ce7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.template-q-text {
    flex: 1;
    font-size: 12px;
    color: #2d3436;
    font-weight: 500;
}

@media (max-width: 576px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================== */
/* DUPLICATE WIZARD STYLES */
/* ========================================== */

.my-quiz-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.my-quiz-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-quiz-item:hover {
    border-color: #6c5ce7;
    background: #f0edff;
}

.my-quiz-item.selected {
    border-color: #6c5ce7;
    background: #f0edff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.my-quiz-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e9ecef;
}

.my-quiz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-quiz-info { flex: 1; min-width: 0; }

.my-quiz-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-quiz-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.my-quiz-badge {
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #495057;
}

.my-quiz-date {
    font-size: 10px;
    color: #adb5bd;
}

.my-quiz-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #6c5ce7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.source-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0edff, #e8e3ff);
    border-radius: 12px;
    border: 2px solid #d5cdfa;
}

.empty-state {
    background: #fff;
    border-radius: 16px;
}


/* PREDICTION CARD */

/* ========================================== */
/* RECOMMENDATION TOGGLE */
/* ========================================== */
.recommendation-toggle-wrapper {
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recommendation-toggle-wrapper:hover {
    border-color: #6c5ce7;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.05);
}

.form-switch .form-check-input {
    width: 40px;
    height: 20px;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

/* ========================================== */
/* RECOMMENDATION BANNER */
/* ========================================== */
.recommendation-banner {
    background: #f8f7ff;
    border-radius: 10px;
    padding: 8px 16px;
}

.recommendation-banner.bg-warning {
    border-left-color: #ffc107;
}

/* ========================================== */
/* RECOMMENDATION BADGE ON IMAGE */
/* ========================================== */
.recommendation-image-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(108, 92, 231, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 16px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

/* ========================================== */
/* RECOMMENDATION BADGE CONTAINER */
/* ========================================== */
.recommendation-badge-container {
    padding: 4px 0;
}

.recommendation-badge-container .badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 400;
}

.recommendation-badge-container .material-icons {
    font-size: 16px;
}

/* ========================================== */
/* EMPTY STATE */
/* ========================================== */
.empty-quiz-state-icon {
    animation: pulseQuiz 2s ease-in-out infinite;
}

@keyframes pulseQuiz {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */
@media (max-width: 576px) {
    .recommendation-toggle-wrapper {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start !important;
    }

    .recommendation-banner {
        padding: 6px 12px;
    }

    .recommendation-banner .small {
        font-size: 12px;
    }
}

/* ========================================== */
/* QUIZ CARD */
/* ========================================== */

.quiz-card {
    margin-bottom: 20px;
    border-radius: 16px;
}

.quiz-card-inner {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 1px 3px rgba(20, 20, 40, 0.04); */
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.quiz-card:hover .quiz-card-inner {
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.10);
    border-color: #e0dcf7;
}

/* ========================================== */
/* HERO (image with overlay) */
/* ========================================== */

.quiz-hero {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f0edff, #e8e5f5);
}

.hero-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.quiz-card:hover .hero-image {
    transform: scale(1.05);
}

/* Dark gradient so white text stays readable over any image */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 10, 20, 0.35) 0%, rgba(10, 10, 20, 0) 35%),
        linear-gradient(to top,    rgba(10, 10, 20, 0.85) 0%, rgba(10, 10, 20, 0) 60%);
    z-index: 1;
    pointer-events: none;
}

/* Top row: price + live indicator */
.hero-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}

.overlay-price {
    display: inline-block;
    background: rgba(108, 92, 231, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    letter-spacing: 0.2px;
}

.overlay-price.free {
    background: rgba(0, 184, 148, 0.95);
}

.overlay-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d3436;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.35); opacity: 0.55; }
}

/* Bottom overlay: title + chips */
.hero-bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    pointer-events: none; /* clicks pass through to .hero-link */
}

.hero-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.h-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.h-chip .material-icons {
    font-size: 13px;
    color: #fff;
}

/* Difficulty accents */
.h-chip.diff-easy   { background: rgba(0, 184, 148, 0.85); border-color: rgba(0, 184, 148, 0.9); }
.h-chip.diff-medium { background: rgba(243, 156, 18, 0.88); border-color: rgba(243, 156, 18, 0.9); }
.h-chip.diff-hard   { background: rgba(231, 76, 60, 0.88);  border-color: rgba(231, 76, 60, 0.9); }

/* Reward pills inside hero */
.overlay-reward {
    display: inline-flex;
    gap: 4px;
}

.r-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.r-pill .material-icons { font-size: 13px; }

.r-pill.xp {
    background: rgba(162, 155, 254, 0.9);
    color: #fff;
}

.r-pill.coins {
    background: rgba(255, 214, 102, 0.92);
    color: #7a5300;
}

/* Challenge badges (bottom-right of hero) */
.hero-badges {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

/* ========================================== */
/* BODY (below image) */
/* ========================================== */

.quiz-body {
    padding: 14px 16px 12px;
}

/* Author row */
.quiz-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0edff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.author-name {
    font-size: 13px;
    font-weight: 700;
    color: #2d3436;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-name:hover { color: #6c5ce7; }

.author-handle {
    font-size: 11px;
    color: #8a8f98;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-categories-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.category-chip {
    font-size: 11px;
    font-weight: 700;
    color: #6c5ce7;
    background: #f0edff;
    padding: 3px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.category-chip:hover { background: #e4ddff; color: #5548c8; }

.quiz-categories-inline .caret {
    font-size: 14px;
    color: #b2b6bd;
}

/* Social row: rating · best score · play button */
.quiz-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.star-average {
    font-size: 13px;
    font-weight: 800;
    color: #1e1e2d;
}

.stars {
    color: #f39c12;
    font-size: 13px;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 12px;
    color: #8a8f98;
}

.quiz-best-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4b4f56;
    background: #fffbea;
    border: 1px solid #ffe8a3;
    padding: 3px 10px;
    border-radius: 999px;
}

.quiz-best-score .material-icons {
    font-size: 14px;
    color: #f39c12;
}

.quiz-best-score strong { color: #b7791f; }

/* Play button */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #8a7cf0);
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.28);
    white-space: nowrap;
}

.btn-play .material-icons { font-size: 18px; color:#fff !important; }

.btn-play:hover {
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
    color: #fff;
}

/* Menu row (dropdown icons) */
.quiz-menu-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.quiz-menu-row .dropdown { margin-left: auto; }

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (min-width: 768px) {
    .quiz-card-inner {
        display: grid;
        grid-template-columns: 44% 1fr;
        align-items: stretch;
    }

    .quiz-hero {
        aspect-ratio: auto;
        min-height: 220px;
        height: 100%;
    }

    .quiz-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 18px 20px 14px;
    }

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

/* Dark gradient so white text stays readable over any image */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        /* Top: subtle dark veil so the price/live pills sit on solid ground */
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.15) 25%,
            rgba(0, 0, 0, 0.00) 45%
        ),
        /* Bottom: strong, opaque dark ramp for the title + chips */
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.82) 18%,
            rgba(0, 0, 0, 0.58) 40%,
            rgba(0, 0, 0, 0.20) 68%,
            rgba(0, 0, 0, 0.00) 100%
        );
}

/*  */
/* ==========================================
Group card — hero style
========================================== */
.ge-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    padding: 0 !important;
}

.ge-group-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease;
    display: flex;
    flex-direction: column;
}

.ge-group-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Hero ---------- */
.ge-group-hero {
    position: relative;
    aspect-ratio: 16 / 9;
    padding-top: 56.25%;   /* fallback: 9 / 16 */
    overflow: hidden;
    background: #eef0f5;
}

.ge-group-hero-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.ge-group-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.ge-group-card:hover .ge-group-hero-image {
    transform: scale(1.04);
}

.ge-group-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.ge-group-hero-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

.ge-group-code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    letter-spacing: 0.3px;
}
.ge-group-code .material-icons {
    font-size: 12px;
    color: #fff !important;
}

.ge-group-hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
    color: #fff;
    pointer-events: none;
}

.ge-group-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ge-group-title a {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}

.ge-group-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ge-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
}
.ge-group-chip .material-icons {
    font-size: 12px;
    color: #fff !important;
}

/* ---------- Body ---------- */
.ge-group-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.ge-group-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ge-group-actions {
    margin-top: auto;
}

/* ---------- Buttons ---------- */
.ge-group-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px !important;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 50px !important;
    cursor: pointer;
    transition: background-color 150ms ease, transform 100ms ease, opacity 150ms ease;
    text-decoration: none;
}

a.ge-group-btn {
    padding: 12px 14px !important;
}

.ge-group-btn .material-icons {
    font-size: 16px;
}

.ge-group-btn:active {
    transform: scale(0.98);
}

.ge-group-btn:disabled,
.ge-group-btn.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.ge-group-btn.ge-join-btn {
    background: #6c5ce7;
    color: #fff;
}
.ge-group-btn.ge-join-btn:hover {
    background: #5a4bd1;
}

.ge-group-btn.ge-pending {
    background: #fff4e0;
    color: #b57300;
    border: 1px solid #f0d79e;
}
.ge-group-btn.ge-pending:hover {
    background: #ffe8bf;
}

.ge-group-btn.ge-joined {
    background: #e7f6ec;
    color: #1a7f3c;
    border: 1px solid #b5e0c2;
}

.ge-group-btn.ge-joined:hover {
    background: #d4ecdd;
}

.ge-group-btn.ge-owner {
    background: #23262f;
    color: #fff;
}
.ge-group-btn.ge-owner:hover {
    background: #3a3d47;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .ge-groups-grid {
        grid-template-columns: 1fr;
    }
}

.capitalize {
    text-transform: capitalize;
}

/*  */
/* Modal shell */
#addGroupModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}
#addGroupModal .modal-dialog {
    max-width: 500px;
    margin: 40px auto;
}

/* Upload area */
.upload-area {
    position: relative;
    border: 2px dashed #d6d9e3;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.upload-area:hover,
.upload-area.drag-over {
    border-color: #6c5ce7;
    background: #f7f6ff;
}
.upload-area img#uploadedImageGroup {
    display: none;
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    margin: 12px auto 0;
    object-fit: cover;
}
.upload-area button#removeImageGroup {
    display: none;
    margin-top: 8px;
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
.upload-area button#removeImageGroup:hover {
    background: #fecaca;
}


/* ========================================== */
/* DAILY CHALLENGE WIDGET STYLES - ENHANCED   */
/* ========================================== */

.daily-challenge-widget {
    /* background: linear-gradient(145deg, #ffffff 0%, #fbfaff 100%); */
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.15);
    transition: all 0.3s ease;
    display: none; /* Hidden by default, shown by JS */
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px rgba(108, 92, 231, 0.12) !important;
}

/* Subtle purple glow accent */
.daily-challenge-widget::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.daily-challenge-widget > * {
    position: relative;
    z-index: 1;
}

.daily-challenge-widget:hover {
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 14px 32px -10px rgba(108, 92, 231, 0.22), 0 4px 12px rgba(108, 92, 231, 0.10) !important;
}

/* Header */
.daily-challenge-widget h6 {
    color: #1e1b3a;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.daily-challenge-widget .widget-icon {
    font-size: 24px !important;
    color: #6c5ce7 !important;
    background: rgba(108, 92, 231, 0.12);
    border-radius: 10px;
    padding: 5px;
    transition: all 0.25s ease;
}

.daily-challenge-widget:hover .widget-icon {
    background: #6c5ce7;
    color: #ffffff !important;
}

/* Streak badge */
.streak-badge {
    font-size: 0.78rem !important;
    font-weight: 600;
    padding: 6px 13px !important;
    border-radius: 40px !important;
    background: #fff3e0 !important;
    color: #b85e00 !important;
    border: 1px solid #ffe0b2;
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.25);
    transition: all 0.25s ease;
}

.streak-badge.bg-success {
    background: #e6f7e6 !important;
    color: #0f6e3f !important;
    border-color: #a3d9a5;
}

.streak-badge.bg-primary {
    background: #eae8ff !important;
    color: #4a3f9e !important;
    border-color: #b8b0ff;
}

/* Challenge Card */
.daily-challenge-widget .daily-challenge-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 16px;
    border: 1px solid #ede9fe;
    box-shadow: 0 4px 12px -6px rgba(108, 92, 231, 0.10);
    transition: all 0.3s ease;
}

.daily-challenge-widget .daily-challenge-card:hover {
    border-color: #c7bfff;
    box-shadow: 0 8px 18px -8px rgba(108, 92, 231, 0.22);
    background: #fefcff;
}

/* Challenge title */
.daily-challenge-widget .challenge-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: #211e3c;
    letter-spacing: -0.01em;
}

/* Soft badges (category, questions) */
.badge-soft {
    background: #f0edff !important;
    color: #4a3f9e !important;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    border: 1px solid #dbd6ff;
}

/* Start button */
.daily-challenge-widget .start-btn {
    background: linear-gradient(135deg, #6c5ce7, #8e7cff) !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 14px -6px rgba(108, 92, 231, 0.45);
    transition: all 0.25s ease;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.daily-challenge-widget .start-btn:hover {
    background: linear-gradient(135deg, #5b4bd6, #7c6aff) !important;
    box-shadow: 0 10px 20px -8px rgba(108, 92, 231, 0.65);
    color: #ffffff !important;
}

.daily-challenge-widget .completed-icon {
    font-size: 40px !important;
    filter: drop-shadow(0 4px 8px rgba(46, 204, 113, 0.3));
}

/* Streak Info */
.daily-challenge-widget .streak-info {
    border-color: #ede9fe !important;
}

.daily-challenge-widget .label-text {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.4px;
    color: #7e7a9a !important;
}

.daily-challenge-widget .streak-number {
    font-size: 1.35rem;
    font-weight: 800 !important;
    color: #211e3c;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.daily-challenge-widget .streak-progress {
    background: #ede9fe !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.daily-challenge-widget .streak-progress .progress-bar {
    background: linear-gradient(90deg, #fdcb6e, #f39c12, #ffb347) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    transition: width 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Animated shine on progress bar */
.daily-challenge-widget .streak-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: shimmer 2.2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.daily-challenge-widget .milestone-text,
.daily-challenge-widget .freeze-text {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 30px;
    display: inline-block;
}

.daily-challenge-widget .milestone-text {
    color: #5d5a7a !important;
    background: #f8f6ff;
}

.daily-challenge-widget .freeze-text {
    color: #0a5b8c !important;
    background: #e6f7ff;
}

/* Loading state */
.daily-challenge-widget #dailyChallengeLoading .spinner-border {
    color: #6c5ce7 !important;
    width: 1.75rem;
    height: 1.75rem;
}

/* Badges - generic */
.daily-challenge-widget .badge {
    font-size: 11px;
    padding: 4px 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .daily-challenge-widget {
        padding: 16px !important;
    }

    .daily-challenge-widget .daily-challenge-card {
        padding: 12px;
    }

    .daily-challenge-widget h6 {
        font-size: 1rem;
    }

    .daily-challenge-widget .streak-number {
        font-size: 1.2rem;
    }
}


/* ========================================== */
/* XP WIDGET STYLES - ENHANCED                */
/* ========================================== */

.xp-widget {
    /* background: linear-gradient(145deg, #ffffff 0%, #fbfaff 100%); */
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.15);
    transition: all 0.3s ease;
    display: none; /* Hidden by default, shown by JS */
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px rgba(108, 92, 231, 0.12) !important;
}

/* Subtle purple glow accent */
.xp-widget::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.xp-widget > * {
    position: relative;
    z-index: 1;
}

.xp-widget:hover {
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 14px 32px -10px rgba(108, 92, 231, 0.22), 0 4px 12px rgba(108, 92, 231, 0.10) !important;
}

/* Level badge - vibrant circular */
.xp-widget .level-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xp-widget .level-badge .badge {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
    color: #ffffff !important;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    box-shadow: 0 6px 14px -4px rgba(108, 92, 231, 0.5),
                0 0 0 4px rgba(108, 92, 231, 0.12);
    transition: all 0.3s ease;
    padding: 0 !important;
}

.xp-widget:hover .level-badge .badge {
    box-shadow: 0 10px 20px -6px rgba(108, 92, 231, 0.65),
                0 0 0 6px rgba(108, 92, 231, 0.15);
}

/* Level title */
.xp-widget .level-title {
    color: #211e3c;
    font-weight: 700 !important;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* XP display */
.xp-widget .xp-display {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c5ce7 !important;
    background: #f0edff;
    padding: 3px 10px;
    border-radius: 30px;
    border: 1px solid #dbd6ff;
    letter-spacing: 0.2px;
}

/* XP Progress Bar */
.xp-widget .xp-progress {
    background: #ede9fe !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin: 6px 0 4px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.03);
}

.xp-widget .xp-progress .progress-bar {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #8e7cff) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.45);
    transition: width 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Animated shine on progress bar */
.xp-widget .xp-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: xpShimmer 2.2s infinite;
}

@keyframes xpShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* XP to next text */
.xp-widget .xp-to-next {
    font-size: 0.7rem;
    font-weight: 500;
    color: #7e7a9a !important;
    letter-spacing: 0.2px;
}

/* Stats Row */
.xp-widget .stats-row {
    border-color: #ede9fe !important;
    gap: 4px;
}

.xp-widget .stat-item {
    flex: 1;
    padding: 6px 2px;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: default;
}

.xp-widget .stat-item:hover {
    background: #f8f6ff;
}

.xp-widget .stat-icon {
    font-size: 22px !important;
    background: #f0edff;
    border-radius: 10px;
    padding: 5px;
    color: #fff !important;
    transition: all 0.25s ease;
    display: inline-block;
    margin-bottom: 4px;
}

.xp-widget .stat-item:hover .stat-icon {
    background: #6c5ce7;
    color: #ffffff;
    box-shadow: 0 4px 10px -2px rgba(108, 92, 231, 0.45);
}

/* Alternate icon colors for variety */
.xp-widget .stat-item:nth-child(1) .stat-icon { color: #ff6b35; background: #ff6b35 !important; }
.xp-widget .stat-item:nth-child(2) .stat-icon { color: #0984e3; background: #0984e3 !important; }
.xp-widget .stat-item:nth-child(3) .stat-icon { color: #f39c12; background: #f39c12 !important; }
.xp-widget .stat-item:nth-child(4) .stat-icon { color: #00b894; background: #00b894 !important; }

.xp-widget .stat-item:nth-child(1):hover .stat-icon { background: #ff6b35; color: #fff; }
.xp-widget .stat-item:nth-child(2):hover .stat-icon { background: #0984e3; color: #fff; }
.xp-widget .stat-item:nth-child(3):hover .stat-icon { background: #f39c12; color: #fff; }
.xp-widget .stat-item:nth-child(4):hover .stat-icon { background: #00b894; color: #fff; }

.xp-widget .stat-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: #5d5a7a !important;
    letter-spacing: 0.1px;
    line-height: 1.2;
}

/* Daily Bonus Button */
.xp-widget .daily-bonus-btn {
    background: linear-gradient(135deg, #00b894, #00cec9) !important;
    border: none !important;
    border-radius: 40px !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.55rem 1rem !important;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 14px -6px rgba(0, 184, 148, 0.55);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.xp-widget .daily-bonus-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00a383, #00b8b3) !important;
    box-shadow: 0 10px 20px -8px rgba(0, 184, 148, 0.75);
    color: #ffffff !important;
}

.xp-widget .daily-bonus-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.xp-widget .daily-bonus-btn .material-icons {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .xp-widget {
        padding: 14px !important;
    }

    .xp-widget .level-badge .badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem !important;
    }

    .xp-widget .stat-icon {
        font-size: 20px !important;
        padding: 4px;
    }

    .xp-widget .stat-text {
        font-size: 0.6rem;
    }
}

/* ========================================== */
/* COIN WIDGET STYLES - ENHANCED              */
/* ========================================== */

.coin-widget {
    /* background: linear-gradient(145deg, #ffffff 0%, #fffdf6 100%); */
    border-radius: 20px;
    border: 1px solid rgba(253, 203, 110, 0.25);
    transition: all 0.3s ease;
    display: none; /* Hidden by default, shown by JS */
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px rgba(253, 203, 110, 0.18) !important;
}

/* Warm gold glow accent */
.coin-widget::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(253, 203, 110, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.coin-widget > * {
    position: relative;
    z-index: 1;
}

.coin-widget:hover {
    border-color: rgba(243, 156, 18, 0.5);
    box-shadow: 0 14px 32px -10px rgba(243, 156, 18, 0.3), 0 4px 12px rgba(253, 203, 110, 0.18) !important;
}

/* Coin Icon - animated gold */
.coin-widget .coin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e, #f39c12);
    border-radius: 14px;
    box-shadow: 0 6px 14px -4px rgba(243, 156, 18, 0.5),
                0 0 0 4px rgba(253, 203, 110, 0.15);
    transition: all 0.3s ease;
    animation: coinPulse 3s ease-in-out infinite;
}

.coin-widget .coin-icon .material-icons {
    font-size: 28px !important;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.coin-widget:hover .coin-icon {
    box-shadow: 0 10px 20px -6px rgba(243, 156, 18, 0.7),
                0 0 0 6px rgba(253, 203, 110, 0.2);
}

@keyframes coinPulse {
    0%, 100% { box-shadow: 0 6px 14px -4px rgba(243, 156, 18, 0.5), 0 0 0 4px rgba(253, 203, 110, 0.15); }
    50% { box-shadow: 0 6px 18px -2px rgba(243, 156, 18, 0.7), 0 0 0 6px rgba(253, 203, 110, 0.22); }
}

/* Coin balance number */
.coin-widget .coin-balance {
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    color: #b8760a;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coin-widget .coin-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #a88655 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: -2px;
}

/* Claim Bonus Button */
.coin-widget .claim-bonus-btn {
    background: linear-gradient(135deg, #f39c12, #fdcb6e) !important;
    border: none !important;
    border-radius: 40px !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.42rem 0.85rem !important;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 14px -6px rgba(243, 156, 18, 0.7);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.coin-widget .claim-bonus-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e08e0b, #f5b942) !important;
    box-shadow: 0 10px 20px -8px rgba(243, 156, 18, 0.9);
    color: #ffffff !important;
}

.coin-widget .claim-bonus-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.coin-widget .claim-bonus-btn .material-icons {
    color: #ffffff !important;
}

/* Stats Row */
.coin-widget .stats-row {
    border-color: #fef0d3 !important;
    gap: 4px;
}

.coin-widget .stat-item {
    padding: 6px 2px;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: default;
}

.coin-widget .stat-item:hover {
    background: #fffaf0;
}

.coin-widget .stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #b8a27a !important;
    display: block;
    margin-bottom: 2px;
}

.coin-widget .stat-value {
    font-size: 1rem;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.coin-widget .text-earned {
    color: #00b894 !important;
    text-shadow: 0 1px 2px rgba(0, 184, 148, 0.15);
}

.coin-widget .text-spent {
    color: #e17055 !important;
    text-shadow: 0 1px 2px rgba(225, 112, 85, 0.15);
}

.coin-widget .text-streak {
    color: #f39c12 !important;
    text-shadow: 0 1px 2px rgba(243, 156, 18, 0.2);
}

/* Earn Section */
.coin-widget .earn-section {
    border-color: #fef0d3 !important;
}

.coin-widget .earn-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a88655 !important;
}

.coin-widget .earn-title .material-icons {
    color: #f39c12;
    background: #fff5df;
    border-radius: 6px;
    padding: 2px;
    margin-right: 2px;
}

.coin-widget .earn-badge {
    background: linear-gradient(135deg, #fff8e6, #fff3d1) !important;
    color: #8a6512 !important;
    font-size: 0.68rem !important;
    font-weight: 600;
    padding: 5px 10px !important;
    border-radius: 30px !important;
    border: 1px solid #ffe6ad;
    letter-spacing: 0.1px;
    transition: all 0.2s ease;
}

.coin-widget .earn-badge:hover {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e) !important;
    color: #6b4a00 !important;
    border-color: #f5b942;
    box-shadow: 0 4px 8px -2px rgba(243, 156, 18, 0.35);
}

/* Recent Transactions */
#recentTransactions {
    max-height: 120px;
    overflow-y: auto;
    border-color: #fef0d3 !important;
}

#recentTransactions::-webkit-scrollbar {
    width: 3px;
}

#recentTransactions::-webkit-scrollbar-track {
    background: #fdf6e6;
    border-radius: 3px;
}

#recentTransactions::-webkit-scrollbar-thumb {
    background: #f5cd7a;
    border-radius: 3px;
}

#recentTransactions .border-bottom {
    border-color: #fef0d3 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .coin-widget {
        padding: 14px !important;
    }

    .coin-widget .coin-icon {
        width: 42px;
        height: 42px;
    }

    .coin-widget .coin-icon .material-icons {
        font-size: 24px !important;
    }

    .coin-widget .coin-balance {
        font-size: 1.2rem !important;
    }

    .coin-widget .claim-bonus-btn {
        font-size: 0.68rem;
        padding: 0.38rem 0.7rem !important;
    }

    .coin-widget .stat-value {
        font-size: 0.9rem;
    }

    .coin-widget .earn-badge {
        font-size: 0.62rem !important;
        padding: 4px 8px !important;
    }
}

/* ========================================== */
/* CREATE QUIZ MODAL - ENHANCED STYLES */
/* ========================================== */

#createQuizModal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================== */
/* MODAL HEADER */
/* ========================================== */

#createQuizModal .modal-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f7ff, #fff);
}

#createQuizModal .modal-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

#createQuizModal .modal-header-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #f0edff, #e8e5f5);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#createQuizModal .modal-title {
    font-weight: 700;
    font-size: 20px;
    color: #2d3436;
    margin: 0;
}

#createQuizModal .modal-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

#createQuizModal .btn-close {
    padding: 8px;
    transition: all 0.3s ease;
}

#createQuizModal .btn-close:hover {
    transform: rotate(90deg);
}

/* ========================================== */
/* MODAL BODY */
/* ========================================== */

#createQuizModal .modal-body {
    padding: 24px 28px 28px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ========================================== */
/* CREATE OPTIONS GRID */
/* ========================================== */

.create-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.create-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background-color: #f8f9fa;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.create-option:hover {
    border-color: #6c5ce7;
    background-color: #f0edff;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.1);
}

.create-option:active {
    transform: scale(0.97);
}

.create-option.premium {
    background-color: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-color: #fdcb6e;
}

.create-option.premium:hover {
    border-color: #f39c12;
    background-color: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

/* Option Icon */
.create-option .option-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.create-option:hover .option-icon-wrapper {
    background-color: #6c5ce7;
}

.create-option:hover .option-icon {
    color: #fff;
}

.create-option.premium .option-icon-wrapper {
    background-color: #fff;
}

.create-option .option-icon {
    font-size: 22px;
    transition: all 0.3s ease;
}

/* Option Content */
.create-option .option-content {
    flex: 1;
    min-width: 0;
}

.create-option .option-title {
    font-weight: 600;
    font-size: 15px;
    color: #2d3436;
    margin: 0 0 2px 0;
}

.create-option .option-description {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 4px 0;
}

/* Option Badges */
.create-option .option-badge {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #6c757d;
    display: inline-block;
}

.create-option .option-badge.featured {
    background-color: #6c5ce7;
    color: #fff;
}

.create-option .option-badge.premium-badge {
    background-color: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: #2d3436;
}

/* Option Arrow */
.create-option .option-arrow {
    font-size: 18px;
    color: #adb5bd;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.create-option:hover .option-arrow {
    color: #6c5ce7;
    transform: translateX(6px);
}

/* ========================================== */
/* MODAL DIVIDER */
/* ========================================== */

.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 16px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.modal-divider span {
    font-size: 12px;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================== */
/* RECENT QUIZZES */
/* ========================================== */

.recent-quizzes-section {
    margin-bottom: 16px;
}

.recent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.recent-header .recent-icon {
    font-size: 16px;
}

.recent-header .recent-title {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.recent-quizzes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-quiz-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-quiz-item:hover {
    background: #f0edff;
    transform: translateX(4px);
}

.recent-quiz-item .recent-quiz-icon {
    font-size: 18px;
}

.recent-quiz-item .recent-quiz-info {
    flex: 1;
    min-width: 0;
}

.recent-quiz-item .recent-quiz-title {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    display: block;
}

.recent-quiz-item .recent-quiz-date {
    font-size: 11px;
    color: #adb5bd;
}

.recent-quiz-item .recent-quiz-action {
    font-size: 12px;
    font-weight: 600;
    color: #6c5ce7;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
}

.recent-quiz-item:hover .recent-quiz-action {
    background: #6c5ce7;
    color: #fff;
}

/* ========================================== */
/* CREATE EMPTY BUTTON */
/* ========================================== */

.btn-create-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #f8f9fa;
    border: 2px dashed #d5cdf5;
    border-radius: 12px;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-create-empty:hover {
    background: #f0edff;
    border-color: #6c5ce7;
    color: #6c5ce7;
}

.btn-create-empty .empty-icon {
    font-size: 18px;
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (max-width: 768px) {
    #createQuizModal .modal-dialog {
        margin: 16px;
    }

    #createQuizModal .modal-header {
        padding: 18px 20px 16px;
    }

    #createQuizModal .modal-header-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    #createQuizModal .modal-title {
        font-size: 17px;
    }

    #createQuizModal .modal-subtitle {
        font-size: 13px;
    }

    #createQuizModal .modal-body {
        padding: 16px 20px 20px;
    }

    .create-options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .create-option {
        padding: 14px 16px;
    }

    .create-option .option-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .create-option .option-icon {
        font-size: 18px;
    }

    .create-option .option-title {
        font-size: 14px;
    }

    .create-option .option-description {
        font-size: 12px;
    }

    .recent-quiz-item {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #createQuizModal .modal-header {
        padding: 14px 16px 12px;
    }

    #createQuizModal .modal-body {
        padding: 12px 16px 16px;
    }

    .create-option {
        padding: 12px 14px;
        gap: 10px;
    }

    .create-option .option-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .create-option .option-icon {
        font-size: 16px;
    }

    .create-option .option-title {
        font-size: 13px;
    }

    .create-option .option-description {
        font-size: 11px;
    }

    .btn-create-empty {
        padding: 12px;
        font-size: 13px;
    }
}

.challenge-card h5 {
    font-weight:600;
    font-size:1rem;
    color:#101010;
}


/* ========================================== */
/* CHALLENGE RESULT */
/* ========================================== */

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.vs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #dee2e6;
}

.vs-player {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 380px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.vs-player:hover {
    border-color: #6c5ce7;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.08);
}

.challenger-player { border-left: 4px solid #6c5ce7; }
.opponent-player { border-left: 4px solid #00b894; }

.vs-player-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.challenger-avatar { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.opponent-avatar { background: linear-gradient(135deg, #00b894, #00cec9); }

.vs-player-info { flex: 1; min-width: 0; }
.vs-player-info h5 { font-size: 16px; margin-bottom: 0; }
.vs-player-info small { font-size: 12px; display: block; }

.vs-player-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.vs-player-stats .badge {
    font-size: 18px;
    padding: 4px 14px;
}

.vs-player-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6c757d;
}

.vs-player-time .material-icons { font-size: 16px; }

.vs-player-badge { flex-shrink: 0; }
.vs-player-badge .badge { font-size: 11px; padding: 4px 10px; }

.vs-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 380px;
}

.vs-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #6c5ce7, #dee2e6, #00b894);
    border-radius: 2px;
}

.vs-divider-badge { flex-shrink: 0; }

.vs-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #00b894);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
}

.comparison-section { background: #fff; }

.comparison-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    border-color: #6c5ce7;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.08);
}

.comparison-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
}

.comparison-card-label .material-icons { font-size: 20px; color: #6c5ce7; }

.comparison-card-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.value-item {
    font-size: 20px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.challenger-value { color: #6c5ce7; background: rgba(108, 92, 231, 0.08); }
.opponent-value { color: #00b894; background: rgba(0, 184, 148, 0.08); }

.value-divider { color: #adb5bd; font-weight: 300; font-size: 14px; }

.comparison-card-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.challenger-progress { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.opponent-progress { background: linear-gradient(90deg, #00b894, #00cec9); }

.comparison-card-time-badge { text-align: center; margin-top: 8px; }
.comparison-card-time-badge .badge { font-size: 13px; padding: 6px 14px; border-radius: 20px; }

.grade-display { font-size: 24px; padding: 4px 20px; min-width: 70px; }

.grade-a-plus { color: #28a745; background: rgba(40, 167, 69, 0.12); }
.grade-a { color: #28a745; background: rgba(40, 167, 69, 0.08); }
.grade-b { color: #17a2b8; background: rgba(23, 162, 184, 0.08); }
.grade-c { color: #ffc107; background: rgba(255, 193, 7, 0.12); }
.grade-d { color: #fd7e14; background: rgba(253, 126, 20, 0.08); }
.grade-f { color: #dc3545; background: rgba(220, 53, 69, 0.08); }
.grade-na { color: #6c757d; background: rgba(108, 117, 125, 0.08); }

.comparison-card-commendation {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 4px;
}

.commendation-item {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.challenger-commendation {
    background: rgba(108, 92, 231, 0.08);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.opponent-commendation {
    background: rgba(0, 184, 148, 0.08);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.15);
}

.commendation-divider {
    display: flex;
    align-items: center;
    color: #adb5bd;
    font-size: 14px;
    padding: 0 4px;
}

.commendation-divider .material-icons { font-size: 20px; }

.alerts-section .alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 0;
}

.alerts-section .alert h4 { font-size: 18px; }

@media (max-width: 768px) {
    .vs-player { padding: 12px 16px; max-width: 100%; }
    .vs-player-avatar { width: 44px; height: 44px; font-size: 18px; }
    .vs-player-info h5 { font-size: 14px; }
    .vs-player-stats .badge { font-size: 16px; padding: 2px 10px; }
    .vs-player-time { font-size: 12px; }
    .vs-badge { font-size: 12px; padding: 4px 12px; }
    .comparison-card { padding: 12px 16px; }
    .value-item { font-size: 16px; padding: 2px 12px; min-width: 50px; }
    .comparison-card-commendation { flex-direction: column; }
    .commendation-divider { padding: 4px 0; justify-content: center; }
    .commendation-divider .material-icons { transform: rotate(90deg); }
}

@media (max-width: 576px) {
    .vs-section { padding: 16px; gap: 12px; }
    .vs-player { padding: 10px 14px; gap: 10px; }
    .vs-player-avatar { width: 36px; height: 36px; font-size: 14px; }
    .vs-player-info h5 { font-size: 13px; }
    .vs-player-stats .badge { font-size: 14px; padding: 2px 8px; }
    .vs-player-time { font-size: 11px; }
    .vs-badge { font-size: 11px; padding: 3px 10px; }
    .vs-divider { gap: 10px; }
    .alerts-section .alert h4 { font-size: 15px; }
    .alerts-section .alert .material-icons { font-size: 24px !important; }
    .action-section .btn { font-size: 13px; padding: 8px 14px; }
    .action-section .btn .material-icons { font-size: 18px; }
    .comparison-card-values { gap: 8px; }
    .value-item { font-size: 14px; padding: 2px 10px; min-width: 40px; }
    .grade-display { font-size: 18px; padding: 2px 14px; min-width: 50px; }
}

.logo {
    text-decoration: none;
    font-size: 26px;
    height: 36px !important;
    font-weight: 700;
    color:#445984;
}


/* ========================================== */
/* WIZARD CONTAINER */
/* ========================================== */
.quiz-wizard-container { overflow: hidden; }
.wizard-header { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: #fff; padding: 20px 24px; }
.wizard-title { font-size: 20px; font-weight: 700; margin: 0 0 4px 0; color: #fff; }
.wizard-subtitle { font-size: 13px; margin: 0; color: rgba(255, 255, 255, 0.85); }
.wizard-progress { height: 4px; background: #e9ecef; overflow: hidden; }
.wizard-progress-bar { height: 100%; background: linear-gradient(90deg, #6c5ce7, #a29bfe); transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wizard-steps { display: flex; justify-content: space-around; padding: 16px 12px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; overflow-x: auto; gap: 8px; }
.wizard-step-indicator { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.5; transition: all 0.3s ease; min-width: 60px; flex-shrink: 0; }
.wizard-step-indicator.active { opacity: 1; }
.wizard-step-indicator.completed { opacity: 0.8; }
.step-indicator-circle { width: 32px; height: 32px; border-radius: 50%; background: #e9ecef; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #6c757d; transition: all 0.3s ease; }
.wizard-step-indicator.active .step-indicator-circle { background: #6c5ce7; color: #fff; transform: scale(1.1); box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3); }
.wizard-step-indicator.completed .step-indicator-circle { background: #00b894; color: #fff; }
.step-indicator-label { font-size: 1rem; font-weight: 600; color: #6c757d; text-align: center; white-space: nowrap; }
.wizard-step-indicator.active .step-indicator-label { color: #6c5ce7; }
.wizard-body { padding: 28px; background: #fff; min-height: 320px; }
.wizard-footer { padding: 16px 24px; background: #f8f9fa; border-top: 1px solid #e9ecef; display: flex; justify-content: space-between; gap: 12px; }
.wizard-footer .btn { padding: 10px 24px; border-radius: 25px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.wizard-footer .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wizard-step { animation: wizardFadeIn 0.3s ease; }
@keyframes wizardFadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.step-header { margin-bottom: 24px; }
.step-header h4 { font-size: 1.25rem; font-weight: 700; color: #2d3436; margin: 0 0 6px 0; }
.step-header p { font-size: 14px; color: #636e72; margin: 0; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 1rem; font-weight: 600; color: #2d3436; margin-bottom: 8px; }
.form-label .required { color: #e17055; }
.form-control { width: 100%; padding: 12px 16px; border: 2px solid #e9ecef; border-radius: 10px; font-size: 14px; transition: all 0.2s ease; background-color: #fff; }
.form-control:focus { outline: none; border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1); }
textarea.form-control { resize: vertical; font-family: inherit; }
.char-counter { display: block; text-align: right; font-size: 11px; color: #adb5bd; margin-top: 4px; }
.char-counter.warning { color: #e17055; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.category-option { padding: 12px 10px; background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 10px; cursor: pointer; text-align: center; transition: all 0.2s ease; font-size: 0.9rem; font-weight: 500; color: #495057; }
.category-option:hover { border-color: #6c5ce7; background: #f0edff; }
.category-option.selected { border-color: #6c5ce7; background: #6c5ce7; color: #fff; box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3); }
.subcategory-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.subcategory-option { padding: 8px 14px; background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 500; color: #495057; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; }
.subcategory-option:hover { border-color: #6c5ce7; background: #f0edff; }
.subcategory-option.selected { border-color: #6c5ce7; background: #6c5ce7; color: #fff; box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25); }
.difficulty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.difficulty-option { padding: 18px 12px; background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 14px; cursor: pointer; text-align: center; transition: all 0.3s ease; }
.difficulty-option:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); }
.difficulty-option.selected { border-color: #6c5ce7; background: #f0edff; box-shadow: 0 4px 15px rgba(108, 92, 231, 0.15); }
.difficulty-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.difficulty-name { font-size: 13px; font-weight: 600; color: #2d3436; display: block; margin-bottom: 2px; }
.difficulty-desc { font-size: 10px; color: #868e96; margin: 0; }
.cover-preview { border-radius: 12px; overflow: hidden; }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cover-option { aspect-ratio: 16 / 9; border: 3px solid #e9ecef; border-radius: 10px; overflow: hidden; cursor: pointer; transition: all 0.2s ease; background: #f8f9fa; }
.cover-option:hover { border-color: #6c5ce7; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(108, 92, 231, 0.2); }
.cover-option.selected { border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2); }
.cover-option img { width: 100%; height: 100%; object-fit: cover; }
.questions-list { display: flex; flex-direction: column; gap: 16px; }
.question-item { background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 14px; padding: 18px; }
.question-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.question-number { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: #6c5ce7; }
.question-number-badge { width: 24px; height: 24px; border-radius: 50%; background: #6c5ce7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.btn-remove-question { background: none; border: none; color: #e17055; cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; transition: all 0.2s ease; }
.btn-remove-question:hover { background: #ffe5e0; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-input-wrapper { display: flex; align-items: center; gap: 6px; }
.option-letter { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #dee2e6; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: #495057; flex-shrink: 0; }
.option-input-wrapper.correct .option-letter { background: #28a745; border-color: #28a745; color: #fff; }
.option-input { flex: 1; padding: 8px 10px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 0.85rem; background: #fff; transition: all 0.2s ease; min-width: 0; }
.option-input:focus { outline: none; border-color: #6c5ce7; }
.option-input-wrapper.correct .option-input { border-color: #28a745; background: #f0fff4; }
.correct-toggle { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #dee2e6; background: #E0E0E0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s ease; }
.correct-toggle:hover { border-color: #28a745; }
.correct-toggle.active { background: #28a745; border-color: #28a745; }
.correct-toggle .material-icons { font-size: 14px; color: #fff; display: none; }
.correct-toggle.active .material-icons { display: block; }
.btn-add-question { width: 100%; padding: 14px; background: #fff; border: 2px dashed #6c5ce7; border-radius: 12px; color: #6c5ce7; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.btn-add-question:hover { background: #f0edff; transform: translateY(-2px); }
.review-section { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: #f8f9fa; border-radius: 14px; padding: 18px; border: 2px solid #e9ecef; }
.review-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: #495057; }
.review-card-content { display: flex; flex-direction: column; gap: 6px; }
.review-item { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #e9ecef; gap: 12px; }
.review-item:last-child { border-bottom: none; }
.review-item-label { color: #868e96; flex-shrink: 0; }
.review-item-value { color: #2d3436; font-weight: 600; text-align: right; word-break: break-word; }

@media (max-width: 768px) {
    .wizard-body { padding: 20px; }
    .wizard-steps { padding: 12px 8px; }
    .step-indicator-label { display: none; }
    .step-indicator-circle { width: 28px; height: 28px; font-size: 12px; }
    .options-grid { grid-template-columns: 1fr; }
    .difficulty-grid { grid-template-columns: 1fr; }
    .difficulty-option { padding: 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
    .difficulty-icon { font-size: 24px; margin-bottom: 0; }
}
@media (max-width: 480px) {
    .wizard-body { padding: 16px; }
    .wizard-header { padding: 16px; }
    .wizard-title { font-size: 16px; }
    .wizard-footer { padding: 12px 16px; }
    .wizard-footer .btn { padding: 8px 16px; font-size: 13px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .cover-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ========================================== */
/* HERO SECTION */
/* ========================================== */
.daily-challenge-hero {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.hero-content { color: #fff; }

.hero-back-btn {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-back-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.2);
}

.hero-back-btn span { color: #f8f8f8 !important; }

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    color: #f8f8f8 !important;
    font-weight: 600;
}

.hero-stats { gap: 12px; }

.hero-stat {
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 70px;
}

.hero-stat-icon {
    font-size: 16px;
    display: block;
}

.hero-stat-value {
    font-size: 22px;
    font-weight: 700;
    display: block;
    color:#fff;
}

.hero-stat-label {
    font-size: 12px;
    text-transform: capitalize;
    opacity: 0.85;
    color:#f8f8f8;
}

/* ========================================== */
/* STREAK OVERVIEW CARD */
/* ========================================== */
.streak-overview-card,
.daily-challenge-card,
.streak-freeze-card,
.challenge-history-card {
    background: #fff;
    border-radius: 14px !important;
    border:1px solid #d4d4d4;
    margin-bottom: 20px;
    animation: slideUp 0.5s ease;
}

.streak-overview-card { overflow: hidden; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-icon { font-size: 20px; }

.streak-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.streak-status.active { background: #d4edda; color: #155724; }
.streak-status.inactive { background: #f8d7da; color: #721c24; }

.card-body { padding: 20px; }

.streak-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.streak-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.streak-circle .streak-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.streak-circle .streak-label {
    font-size: 9px;
    opacity: 0.9;
    text-transform: uppercase;
}

.stat-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.stat-card .stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
}

.stat-card .stat-label {
    font-size: 11px;
    color: #6c757d;
}

.streak-progress-section { margin-bottom: 16px; }

.progress-label, .progress-value {
    font-size: 0.875rem;
    color: #6c757d;
}

.progress-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fdcb6e, #f39c12);
    border-radius: 10px;
    transition: width 0.8s ease;
    width: 0%;
}

.milestones-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.milestone-item {
    text-align: center;
    padding: 6px 10px;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    opacity: 0.5;
}

.milestone-item.reached { opacity: 1; }

.milestone-item .milestone-icon {
    font-size: 18px;
    display: block;
}

.milestone-item .milestone-label {
    font-size: 0.75rem;
    color: #505050;
    display: block;
}

.milestone-item .milestone-xp {
    font-size: 11px;
    color: #808080;
    display: block;
}

.milestone-item.reached .milestone-label {
    color: #2d3436;
    font-weight: 600;
}

.milestone-item.reached .milestone-xp {
    color: #6c5ce7;
    font-weight: 600;
}

/* ========================================== */
/* DAILY CHALLENGE CARD */
/* ========================================== */
.challenge-header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px 14px 0 0;
}

.challenge-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.badge-icon { font-size: 20px; }
.badge-text { font-weight: 600; font-size: 14px; }

.challenge-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.pending { background: #ffd93d; animation: pulse-dot 1.5s infinite; }
.status-dot.completed { background: #00b894; }
.status-dot.failed { background: #e17055; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.challenge-body { padding: 24px; }

.challenge-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.challenge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon { font-size: 14px; }

.challenge-description {
    color: #636e72;
    font-size: 14px;
    margin-bottom: 16px;
}

.challenge-rewards {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.reward-item {
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 100px;
    border: 1px solid #f0f0f0;
}

.reward-icon-wrapper {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reward-icon { font-size: 18px; }

.reward-details { display: flex; flex-direction: column; }

.reward-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
}

.reward-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
}

.challenge-action {
    text-align: center;
    padding-top: 8px;
}

.btn-challenge-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.btn-challenge-start:hover {
    box-shadow: 0 8px 30px rgba(108,92,231,0.4);
    color: #fff;
}

.btn-challenge-start .btn-icon { font-size: 14px; }

.action-note {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 12px;
}

.completed-state, .failed-state { padding: 20px 0; }

.completed-icon .material-icons {
    font-size: 48px !important;
    color: #00b894;
}

.failed-icon .material-icons {
    font-size: 48px;
    color: #e17055;
}

.completed-state h4 { color: #00b894; margin-bottom: 4px; }
.completed-score, .completed-time { color: #6c757d; margin: 0; }

.failed-state h4 { color: #e17055; margin-bottom: 4px; }
.failed-message { color: #6c757d; margin-bottom: 12px; }

.btn-freeze {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f8f9fa;
    border: 2px solid #6c5ce7;
    border-radius: 10px;
    color: #6c5ce7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-freeze:hover {
    background: #6c5ce7;
    color: #fff;
}

/* ========================================== */
/* STREAK FREEZE CARD */
/* ========================================== */
.streak-freeze-card { padding: 20px; }

.freeze-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.freeze-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.freeze-icon-wrapper { font-size: 28px; }

.freeze-title {
    font-weight: 600 !important;
    margin-bottom: 0;
    color: #282828;
    font-size: 1.25rem;
}

.freeze-description {
    font-size: 0.9rem;
    color: #696969;
    margin: 0;
}

.freeze-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.freeze-count {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
}

.btn-buy-freeze {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-freeze:hover { background: #5f3dc4; }

.freeze-tip {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-icon { font-size: 16px; }

.tip-text {
    font-size: 0.9rem;
    color: #696969;
}

/* ========================================== */
/* CHALLENGE HISTORY */
/* ========================================== */
.challenge-history-card { padding: 20px; }

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

.history-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-title h6 {
    font-weight: 600 !important;
    color: #282828;
    font-size: 1.25rem !important;
}

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

.history-period {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.history-item {
    text-align: left;
    padding: 10px 4px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.history-item.completed {
    border-color: #00b894;
    background: #e8f8f5;
}

.history-item.failed {
    border-color: #e17055;
    background: #fdf0ed;
}

.history-item .history-date {
    display: flex;
    flex-direction: column;
}

.history-item .history-day {
    font-size: 9px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.history-item .history-number {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
}

.history-item .history-status { margin-top: 4px; }

.history-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.history-badge.completed { background: #00b894; color: #fff; }
.history-badge.failed { background: #e17055; color: #fff; }
.history-badge.pending { background: #ffd93d; color: #2d3436; }

.history-score {
    font-size: 9px;
    color: #6c757d;
    display: block;
    margin-top: 2px;
}

.empty-history {
    text-align: center;
    padding: 30px;
    width: 100%;
    grid-column: 1 / -1;
}

.empty-history .empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.empty-history p {
    color: #383838;
    margin: 0;
    font-size: 0.95rem;
}

.empty-history small { color: #808080; font-size: 0.75rem; }

/* ========================================== */
/* CHALLENGE ERROR */
/* ========================================== */
.challenge-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    min-height: 300px;
    border-radius: 14px;
}

.challenge-error .error-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.challenge-error h5 {
    margin: 0 0 8px;
    color: #536471;
    font-weight: 600;
    font-size: 16px;
}

.challenge-error .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */
@media (max-width: 768px) {
    .hero-title { font-size: 22px; }
    .streak-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .streak-circle { width: 60px; height: 60px; }
    .streak-circle .streak-number { font-size: 20px; }
    .stat-card .stat-number { font-size: 18px; }
    .milestones-container {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
    .challenge-title { font-size: 18px; }
    .history-grid { gap: 4px; }
    .history-item .history-number { font-size: 14px; }
}

@media (max-width: 576px) {
    .streak-stats-grid { gap: 8px; }
    .hero-title { font-size: 18px; }
    .hero-subtitle { font-size: 12px; }
    .challenge-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 16px 20px;
    }
    .challenge-rewards { flex-direction: column; }
    .reward-item { width: 100%; }
    .btn-challenge-start {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
    .history-grid { grid-template-columns: repeat(7, 1fr); gap: 3px; }
    .history-item .history-number { font-size: 12px; }
    .history-item .history-day { font-size: 8px; }
    .milestone-item { padding: 4px 6px; }
    .milestone-item .milestone-icon { font-size: 14px; }
    .milestone-item .milestone-label { font-size: 8px; }
    .milestone-item .milestone-xp { font-size: 7px; }
}


/* ========================================== */
/* RESUME QUIZ MODAL */
/* ========================================== */

.resume-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    padding: 20px;
    animation: resumeFadeIn 0.3s ease;
}

.resume-modal-overlay.closing {
    animation: resumeFadeOut 0.25s ease forwards;
}

.resume-modal-container {
    width: 100%;
    max-width: 420px;
    animation: resumeSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resume-modal-overlay.closing .resume-modal-container {
    animation: resumeSlideDown 0.25s ease forwards;
}

.resume-modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient accent */
.resume-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #00b894);
}

/* ---------- Icon ---------- */
.resume-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.35);
    animation: resumePulse 2s ease-in-out infinite;
}

/* ---------- Titles ---------- */
.resume-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.resume-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}

/* ---------- Info Card ---------- */
.resume-modal-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid #e9ecef;
}

.resume-modal-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
}

.resume-modal-card-row + .resume-modal-card-row {
    border-top: 1px dashed #e9ecef;
}

.resume-modal-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.resume-modal-card-label .material-icons {
    font-size: 16px;
    color: #6c5ce7;
}

.resume-modal-card-value {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

/* ---------- Actions ---------- */
.resume-modal-actions {
    display: flex;
    gap: 10px;
}

.resume-btn {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.resume-btn .material-icons {
    font-size: 18px;
}

.resume-btn-secondary {
    background: #f1f3f5;
    color: #495057;
}

.resume-btn-secondary:hover {
    background: #e9ecef;
}

.resume-btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #8e7cff);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.resume-btn-primary:hover {
    background: linear-gradient(135deg, #5b4bd6, #7c6aff);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.resume-btn-primary:active {
    transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes resumeFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes resumeFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes resumeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes resumeSlideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

@keyframes resumePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(108, 92, 231, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 12px 35px rgba(108, 92, 231, 0.55);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .resume-modal-content {
        padding: 24px 20px 20px;
        border-radius: 20px;
    }

    .resume-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .resume-modal-title {
        font-size: 19px;
    }

    .resume-modal-actions {
        flex-direction: column-reverse;
    }

    .resume-btn {
        padding: 14px 18px;
    }
}


/* ========================================== */
/* EMPTY STATE — No Daily Challenge */
/* ========================================== */
.daily-challenge-empty {
    padding: 8px 12px;
}

.daily-challenge-empty .empty-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: transform 0.3s ease;
}

.daily-challenge-empty .empty-icon-wrapper .material-icons {
    font-size: 28px;
    color: #adb5bd;
}

.daily-challenge-empty .empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.daily-challenge-empty .empty-text {
    line-height: 1.4;
    max-width: 220px;
    margin: 0 auto;
}

.daily-challenge-empty .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.daily-challenge-empty .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}


/* Base spinner — size driven by --spinner-size */
.sq-spinner {
  --spinner-size: 48px;
  --spinner-thickness: 3px;
  --spinner-gap: 4px;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sq-spinner__ring {
  position: relative;
  width: var(--spinner-size);
  height: var(--spinner-size);
}

.sq-spinner__ring div {
  box-sizing: border-box;
  position: absolute;
  width: calc(var(--spinner-size) - 2 * var(--spinner-gap));
  height: calc(var(--spinner-size) - 2 * var(--spinner-gap));
  margin: var(--spinner-gap);
  border: var(--spinner-thickness) solid transparent;
  border-radius: 50%;
  animation: sq-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Sizes */
.sq-spinner--sm { --spinner-size: 18px; --spinner-thickness: 2px; --spinner-gap: 2px; gap: 0; }
.sq-spinner--md { --spinner-size: 48px; --spinner-thickness: 3px; --spinner-gap: 4px; }
.sq-spinner--lg { --spinner-size: 64px; --spinner-thickness: 3px; --spinner-gap: 6px; }

/* Ring colors */
.sq-spinner__ring div:nth-child(1) { animation-delay: -0.45s; border-top-color: #1d9bf0; }
.sq-spinner__ring div:nth-child(2) { animation-delay: -0.30s; border-top-color: #6a5af9; }
.sq-spinner__ring div:nth-child(3) { animation-delay: -0.15s; border-top-color: #a78bfa; }
.sq-spinner__ring div:nth-child(4) { animation-delay:  0s;   border-top-color: #1d9bf0; }

@keyframes sq-ring {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Text */
.sq-spinner__text {
  font-size: 0.85rem;
  color: #536471;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin: 0;
}

/* Button variant: inherit color, inline */
.sq-spinner--in-button { display: inline-flex; vertical-align: middle; }
.sq-spinner--inherit-color .sq-spinner__ring div:nth-child(1),
.sq-spinner--inherit-color .sq-spinner__ring div:nth-child(4) { border-top-color: currentColor; }
.sq-spinner--inherit-color .sq-spinner__ring div:nth-child(2),
.sq-spinner--inherit-color .sq-spinner__ring div:nth-child(3) { border-top-color: currentColor; opacity: 0.6; }

/* Page wrapper — page-specific layout stays out of the base spinner */
.sq-page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 40px 20px;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sq-spinner__ring div { animation-duration: 2s; }
}


/* ========================================== */
/* START QUIZ */
/* ========================================== */

/* ---------- Page Wrapper ---------- */
.sq-page-wrapper {
    position: relative;
}

.sq-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: radial-gradient(ellipse at top, rgba(29, 155, 240, 0.08) 0%, rgba(106, 90, 249, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Container ---------- */
.sq-start-quiz-container {
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    background: #ffffff !important;
}

/* ---------- Two-column card ---------- */
.sq-quiz-card {
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

/* ---------- Compact Quiz Hero ---------- */
.sq-quiz-hero {
    flex: 0 0 280px;
    background: linear-gradient(160deg, #1d9bf0 0%, #6a5af9 55%, #a855f7 100%);
    padding: 32px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Decorative shapes */
.sq-quiz-hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: sqFloat 8s ease-in-out infinite;
}

.sq-quiz-hero::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    animation: sqFloat 10s ease-in-out infinite reverse;
}

.sq-quiz-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

@keyframes sqFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 10px); }
}

.sq-quiz-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.sq-quiz-card:hover .sq-quiz-hero-icon {
    transform: scale(1.08) rotate(-5deg);
}

.sq-quiz-hero-icon .material-icons {
    font-size: 30px;
    color: #fff !important;
}

.sq-quiz-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
    line-height: 1.35;
    position: relative;
    z-index: 2;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    word-wrap: break-word;
}

.sq-quiz-hero .sq-quiz-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.sq-quiz-hero .sq-quiz-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 11px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
}

.sq-quiz-hero .sq-quiz-detail:hover {
    background: rgba(255, 255, 255, 0.28);
}

.sq-quiz-hero .sq-quiz-detail .material-icons {
    font-size: 14px !important;
    color: #fff !important;
}

/* ---------- Compact Instructions Content ---------- */
.sq-quiz-content {
    flex: 1 1 auto;
    padding: 32px 32px 28px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sq-instructions-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sq-instructions-icon {
    font-size: 20px !important;
    color: #1d9bf0 !important;
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.12), rgba(106, 90, 249, 0.12));
    padding: 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.sq-quiz-card:hover .sq-instructions-icon {
    background: linear-gradient(135deg, #1d9bf0, #6a5af9);
    color: #fff !important;
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(29, 155, 240, 0.3);
}

.sq-quiz-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: #0f1419;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sq-instructions-lead {
    color: #536471;
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.5;
    font-weight: 400;
}

/* ---------- Compact Instructions List ---------- */
.sq-instructions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sq-instructions-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9rem;
    color: #0f1419;
    line-height: 1.45;
    padding: 10px 12px;
    background: #f7f9f9;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.035);
    transition: all 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sq-instructions-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1d9bf0, #6a5af9);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    border-radius: 0 3px 3px 0;
}

.sq-instructions-list li:hover {
    background: #eef6fb;
    border-color: rgba(29, 155, 240, 0.15);
    box-shadow: 0 4px 12px -4px rgba(29, 155, 240, 0.15);
}

.sq-instructions-list li strong {
    color: #1d9bf0;
    font-weight: 700;
}

.sq-instruction-bullet {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d9bf0, #6a5af9);
    margin-top: 1px;
    box-shadow: 0 2px 6px rgba(29, 155, 240, 0.25);
}

.sq-instruction-bullet .material-icons {
    font-size: 12px !important;
    color: #fff !important;
}

/* ---------- Compact CTA ---------- */
.sq-quiz-cta {
    text-align: center;
    margin-top: auto;
    padding-top: 8px;
}

.sq-btn-start-quiz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #1d9bf0 0%, #6a5af9 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 8px 24px -6px rgba(29, 155, 240, 0.5), 0 4px 12px rgba(106, 90, 249, 0.2);
    width: 100%;
    max-width: 340px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.sq-btn-start-quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.sq-btn-start-quiz:hover::before {
    left: 100%;
}

.sq-btn-start-quiz:hover {
    box-shadow: 0 14px 32px -8px rgba(29, 155, 240, 0.6), 0 6px 16px rgba(106, 90, 249, 0.3);
}

.sq-btn-start-quiz:active {
    box-shadow: 0 6px 18px -4px rgba(29, 155, 240, 0.5);
}

.sq-btn-start-quiz .sq-btn-icon {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.sq-btn-start-quiz:hover .sq-btn-icon {
    transform: translateX(5px);
}

.sq-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sq-btn-start-quiz:hover .sq-btn-glow {
    opacity: 1;
}

.sq-cta-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #8b98a5;
    margin: 10px 0 0;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.sq-cta-hint .material-icons {
    font-size: 14px !important;
    color: #f39c12;
}

/* ---------- Dark Mode Support ---------- */
body[data-theme="dark"] .sq-start-quiz-container {
    background: #16181c !important;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .sq-quiz-content h2 { color: #e7e9ea; }
body[data-theme="dark"] .sq-instructions-lead { color: #8b98a5; }

body[data-theme="dark"] .sq-instructions-list li {
    background: #1e2126;
    color: #e7e9ea;
    border-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .sq-instructions-list li:hover {
    background: #26292f;
    border-color: rgba(29, 155, 240, 0.25);
}

body[data-theme="dark"] .sq-instructions-list li strong {
    color: #4db8ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .sq-quiz-card {
        flex-direction: column;
        min-height: auto;
    }

    .sq-quiz-hero {
        flex: 0 0 auto;
        padding: 28px 22px;
    }

    .sq-quiz-hero-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 12px;
    }

    .sq-quiz-hero-icon .material-icons { font-size: 26px; }
    .sq-quiz-hero-title { font-size: 1.15rem; margin-bottom: 14px; }

    .sq-quiz-content { padding: 26px 24px 24px; }
    .sq-quiz-content h2 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .sq-start-quiz-container { border-radius: 20px; }
    .sq-quiz-content { padding: 22px 18px 20px; }
    .sq-quiz-content h2 { font-size: 1.35rem; }
    .sq-instructions-lead { font-size: 0.8rem; }
    .sq-instructions-list li {
        font-size: 0.82rem;
        padding: 9px 11px;
        gap: 9px;
    }
    .sq-btn-start-quiz {
        padding: 13px 22px;
        font-size: 0.92rem;
        max-width: 100%;
    }
    .sq-quiz-hero { padding: 24px 18px; }
    .sq-quiz-hero-title { font-size: 1.05rem; }
    .sq-quiz-hero-icon { width: 48px; height: 48px; }
    .sq-quiz-hero-icon .material-icons { font-size: 24px; }
}

@media (max-width: 400px) {
    .sq-quiz-hero .sq-quiz-detail {
        font-size: 0.7rem;
        padding: 4px 9px;
    }
}


/* ========================================== */
/* CHALLENGE TABS */
/* ========================================== */
.challenge-tabs {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
}
.challenge-tabs::-webkit-scrollbar { display: none; }

.challenge-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    color: #64748b !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.challenge-tab:hover { background: #f1f5f9; color: #1e293b; }

.challenge-tab.active {
    background: linear-gradient(135deg, #6c5ce7, #8e7cff);
    color: #fff !important;
}

.challenge-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.challenge-tab:not(.active) .challenge-tab-count {
    background: #e2e8f0;
    color: #475569;
}

/* ========================================== */
/* CHALLENGE CARD */
/* ========================================== */
.challenge-card-ui {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid #d8dadc;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    animation: cardFadeIn 0.35s ease both;
}

.challenge-card-ui[data-status="pending"]   { border-left: 4px solid #fdcb6e; }
.challenge-card-ui[data-status="accepted"]  { border-left: 4px solid #0984e3; }
.challenge-card-ui[data-status="completed"] { border-left: 4px solid #00b894; }
.challenge-card-ui[data-status="expired"]   { border-left: 4px solid #adb5bd; opacity: 0.75; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.challenge-opponent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.challenge-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.challenge-avatar.challenger { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.challenge-avatar.opponent   { background: linear-gradient(135deg, #00b894, #00cec9); }

.challenge-opponent-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.challenge-opponent-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-opponent-meta {
    font-size: 11px;
    color: #94a3b8;
}

.challenge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.challenge-pill-success { background: #d1fae5; color: #065f46; }
.challenge-pill-danger  { background: #fee2e2; color: #991b1b; }
.challenge-pill-warning { background: #fef3c7; color: #92400e; }
.challenge-pill-info    { background: #dbeafe; color: #1e40af; }
.challenge-pill-muted   { background: #f1f5f9; color: #64748b; }

.challenge-card-body {
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.challenge-quiz-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.challenge-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.challenge-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.challenge-score-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.challenge-score-value {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    min-width: 40px;
    text-align: center;
}

.challenge-score-value.win { color: #00b894; }

.challenge-score-divider {
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 500;
    margin-top: 14px;
}

.challenge-card-footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.challenge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.challenge-btn .material-icons { font-size: 16px; }

.challenge-btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #8e7cff);
    color: #fff;
    box-shadow: 0 3px 12px rgba(108, 92, 231, 0.25);
}

.challenge-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.challenge-btn-outline {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #e2e8f0 !important;
}

.challenge-btn-outline:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

/* ========================================== */
/* EMPTY STATE */
/* ========================================== */
.challenge-empty {
    background: #fff;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    animation: cardFadeIn 0.35s ease both;
}

.challenge-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.challenge-empty-icon .material-icons {
    font-size: 32px;
    color: #94a3b8;
}

.challenge-empty h5 {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 6px;
}

.challenge-empty p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}

.challenge-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6c5ce7, #8e7cff);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(108, 92, 231, 0.25);
    transition: all 0.2s ease;
}

.challenge-empty-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.challenge-empty-btn .material-icons { font-size: 16px; }

/* ========================================== */
/* TOAST */
/* ========================================== */
.challenge-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    max-width: calc(100% - 40px);
}

.challenge-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */
@media (max-width: 480px) {
    .challenge-card-header { flex-wrap: wrap; }
    .challenge-opponent    { width: 100%; }
    .challenge-pill        { margin-top: 4px; }
    .challenge-btn         { flex: 1; justify-content: center; }
}


/* ========================================== */
/* HERO SECTION */
/* ========================================== */
.coins-hero {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    padding: 24px 0;
    border-bottom: 3px solid rgba(255,255,255,0.1);
    margin-bottom:1rem;
    border-radius: 14px;
}

.hero-content {
    color: #2d3436;
}

.hero-back-btn {
    color: rgba(0,0,0,0.5);
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-back-btn:hover {
    color: #2d3436;
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.hero-back-btn span {
    color: #f8f8f8 !important;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    color: #2d3436;
}

.hero-coin-display {
    display: flex;
    align-items: center;
}

.coin-balance-badge {
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.coin-balance-badge .coin-icon {
    font-size: 24px;
}

.coin-balance-badge .coin-amount {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
}

.coin-balance-badge .coin-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* ========================================== */
/* COIN SUMMARY CARDS */
/* ========================================== */
.coin-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.summary-icon {
    font-size: 28px;
}

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

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3436;
}

.summary-label {
    font-size: 0.875rem !important;
    color: #6c757d;
}

/* ========================================== */
/* EARN OPPORTUNITIES */
/* ========================================== */
.earn-opportunities-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    font-size: 20px;
}

.header-badge {
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
}

.card-body {
    padding: 16px 20px;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.opportunity-item {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.opportunity-item:hover {
    background: #f0edff;
}

.opportunity-icon {
    font-size: 20px;
}

.opportunity-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.opportunity-name {
    font-size: 13px;
    color: #2d3436;
    font-weight: 500;
}

.opportunity-amount {
    font-size: 12px;
    color: #6c5ce7;
    font-weight: 600;
}

/* ========================================== */
/* DAILY BONUS */
/* ========================================== */
.daily-bonus-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 20px;
    border-left: 4px solid #fdcb6e;
}

.bonus-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bonus-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bonus-icon-wrapper {
    font-size: 32px;
}

.bonus-title {
    font-weight: 600;
    margin-bottom: 0;
}

.bonus-description {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.bonus-streak {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.bonus-streak .streak-label {
    font-size: 12px;
    color: #6c757d;
}

.bonus-streak .streak-value {
    font-size: 12px;
    font-weight: 600;
    color: #f39c12;
}

.bonus-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bonus-amount {
    font-size: 24px;
    font-weight: 700;
    color: #00b894;
}

.btn-claim-bonus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: #2d3436;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-claim-bonus:hover {
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.4);
}

.btn-claim-bonus:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bonus-timer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.timer-icon {
    font-size: 16px;
}

.timer-value {
    font-weight: 600;
    color: #2d3436;
}

/* ========================================== */
/* TRANSACTION HISTORY */
/* ========================================== */
.transaction-history-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.history-loading {
    text-align: center;
    padding: 30px 0;
}

.transaction-list {
    padding: 4px 0;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: #f8f9fa;
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.transaction-icon.earned {
    background: #d4edda;
}

.transaction-icon.spent {
    background: #f8d7da;
}

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

.transaction-source {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
}

.transaction-description {
    font-size: 12px;
    color: #6c757d;
}

.transaction-date {
    font-size: 11px;
    color: #adb5bd;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
}

.transaction-amount.earned {
    color: #00b894;
}

.transaction-amount.spent {
    color: #e17055;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state .empty-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6c757d;
    margin: 0;
}

.empty-state small {
    color: #adb5bd;
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 22px;
    }

    .coin-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .summary-card {
        padding: 12px;
    }

    .summary-value {
        font-size: 16px;
    }

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

    .bonus-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }

    .bonus-info {
        flex-direction: column;
    }

    .bonus-action {
        justify-content: center;
    }

    .coin-balance-badge {
        padding: 6px 14px;
    }

    .coin-balance-badge .coin-amount {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .coin-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .summary-card {
        padding: 10px;
    }

    .summary-value {
        font-size: 14px;
    }

    .summary-icon {
        font-size: 20px;
    }

    .summary-label {
        font-size: 10px;
    }

    .transaction-item {
        padding: 10px 16px;
    }

    .transaction-amount {
        font-size: 14px;
    }

    .btn-claim-bonus {
        padding: 8px 16px;
        font-size: 14px;
    }

    .bonus-amount {
        font-size: 20px;
    }
}

/* ========================================== */
/* ANIMATIONS */
/* ========================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.earn-opportunities-card {
    animation: slideUp 0.4s ease;
}

.daily-bonus-card {
    animation: slideUp 0.5s ease;
}

.transaction-history-card {
    animation: slideUp 0.6s ease;
}

.summary-card {
    animation: slideUp 0.3s ease;
}

.summary-card:nth-child(2) { animation-delay: 0.05s; }
.summary-card:nth-child(3) { animation-delay: 0.1s; }
.summary-card:nth-child(4) { animation-delay: 0.15s; }
.summary-card:nth-child(5) { animation-delay: 0.2s; }
.summary-card:nth-child(6) { animation-delay: 0.25s; }

@keyframes pulse-gold {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-coin-display {
    animation: pulse-gold 3s ease-in-out infinite;
}

/*  */
.edit-profile label,
.change-password label {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 15px;
    color:#333;
}

.theme-status {
    margin-left: 3px !important;
    justify-content: center !important;
}
