:root {
    --color-1: #004E98;
    /* Biru tua utama */
    --color-2: #0074D9;
    /* Biru terang sebagai gradasi */
    --color-3: #803d3b;
    --color-4: #322c2b;
    --text-dark: #344767;
    --bg-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--color-1), var(--color-2));
    --gradient-secondary: linear-gradient(135deg, var(--color-2), var(--color-3));
}


body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}

/* =====================================================
   NAVBAR STYLES — Zoom-proof (100%, 130%, 150%, 160%)
   ===================================================== */
.navbar {
    background: var(--gradient-primary);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    padding: 0 1rem;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    height: 70px;
}

/* Force single-row layout at all zoom levels */
.navbar .container-fluid {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0 15px;
    height: 70px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    /* NEVER wrap */
    overflow: visible;
    gap: 8px;
}

/* Left side: nav links shrink to fit, allow horizontal scroll if needed */
.navbar .container-fluid>.d-flex:first-child {
    flex: 1 1 auto;
    min-width: 0;
    height: 70px;
    overflow: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 70px;
    overflow: hidden;
}

.nav-links ul,
.navbar .nav-links .nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 70px;
    white-space: nowrap;
}

.nav-links li {
    height: 70px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Nav link items */
.nav-link {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Right section — never shrink, never wrap */
.navbar-right-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Auth buttons wrapper */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* The actual Login / Register button */
.navbar-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    transition: background 0.2s ease;
    line-height: 1.4;
}

.navbar-auth-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white !important;
}

/* ≤ 900px effective viewport (covers 150%+ zoom on laptops):
   hide text, show icon-only circles */
@media (max-width: 900px) {
    .auth-btn-label {
        display: none;
    }

    .navbar-auth-btn {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .nav-link {
        padding: 0.5rem 0.6rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-link i {
        margin-right: 0 !important;
    }
}



/* Hover effect */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Active link style */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    font-weight: 600;
}

/* Underline effect for active link */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* Hover animation for non-active links */
.nav-link:not(.active)::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: width 0.3s ease;
}

.nav-link:not(.active):hover::before {
    width: 20px;
}

/* Update dropdown styles */
.dropdown.d-inline {
    height: 100%;
    display: flex !important;
    align-items: center;
}

.dropdown-toggle {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Profile Section Styles */
.profile-section {
    position: relative;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-section:hover {
    background-color: rgba(255, 213, 111, 0.2);
}

.profile-section>a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
}

.profile-section img {
    border: 2px solid white;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-section:hover img {
    transform: scale(1.1);
}

.profile-section span {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.profile-section:hover span {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 8px;
    min-width: 180px;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.dropdown-item:hover {
    background-color: rgba(255, 123, 84, 0.1);
    color: var(--color-1);
    transform: translateX(5px);
}

/* Update these icon selectors */
.dropdown-item::before,
button.dropdown-item::before {
    /* Added button selector */
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.dropdown-item[href*="profile"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230074D9'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

/* Update the logout icon selector */
button.dropdown-item[type="submit"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230074D9'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E");
}

/* Dropdown arrow styling */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background-color: white;
    transform: rotate(45deg);
    border-radius: 3px;
}

/* Container Layout */
.container {
    display: flex;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
}

/* Updated Sidebar Styles */

.sidebar {
    width: 250px;
    background-color: var(--bg-light);
    padding: 1.5rem 0;
    position: fixed;
    height: calc(100vh - 70px);
    left: 0;
    top: 70px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    /* Fix horizontal scrollbar jitter */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    /* Only transition transform for mobile toggle */
    scrollbar-gutter: stable;
    /* Prevent layout shift when scrollbar appears */
}

.sidebar-header {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    color: #0056b3;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0056b3;
    border-radius: 2px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0.25rem;
    border-radius: 0 30px 30px 0;
    font-weight: 500;
    margin-right: 10px;
    /* Ensure space for hover transform */
    width: calc(100% - 15px);
    /* Prevent overflow */
}

.menu-item:hover {
    color: #0056b3;
    background-color: rgba(0, 86, 179, 0.07);
    transform: translateX(3px);
}

.menu-item.active {
    background-color: #0056b3;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

.menu-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.menu-item:hover i {
    transform: translateX(2px) scale(1.1);
}

.menu-item.active i {
    color: white;
}

/* Enhanced Active Menu Item */
.menu-item.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding-left: 2.5rem;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: white;
}

/* Menu Item Icons */
.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.menu-item:hover i {
    transform: translateX(5px);
    color: var(--color-1);
}

.menu-item.active i {
    color: white;
}

/* Menu Item Text Animation */
.menu-item span {
    position: relative;
    z-index: 1;
}

.menu-item:not(.active):hover span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    animation: linkUnderline 0.3s ease forwards;
}

@keyframes linkUnderline {
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Update Main Content margin */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background-color: #fff;
    position: relative;
}

/* Content Specific Styles */
.content-header {
    margin-bottom: 2rem;
}

.content-title {
    font-size: 30.5px;
    margin: 0;
}

.content-image {
    max-width: 400px;
    margin: 2rem 0;
}

.content-text {
    max-width: 867px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Example Section Styles */
.example-section {
    background-color: #E7E9EB;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.code-block {
    background-color: white;
    border-left: 4px solid #04AA6D;
    padding: 1rem;
    font-family: 'Source Code Pro', monospace;
    overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .main-content {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .container {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
}

/* Profile Card Styles */
.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.profile-body {
    padding: 30px;
}

/* Profile Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-1);
    box-shadow: 0 0 0 0.2rem rgba(255, 123, 84, 0.25);
}

.btn-update {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 123, 84, 0.2);
}

.btn-update:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 123, 84, 0.3);
}

.password-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

/* Materi Card Styles */
.materi-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 123, 84, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 123, 84, 0.1);
}

.materi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 123, 84, 0.2);
}

.materi-card-body {
    padding: 2rem;
}

.materi-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.materi-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--color-1), transparent);
    border-radius: 2px;
}

.materi-description {
    font-size: 0.875rem;
    color: #67748e;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 4.5em;
    word-wrap: break-word;
}

/* Progress Bar Enhancements */
.progress-container {
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 8px;
    background: rgba(0, 78, 152, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.leaderboard-progress-bar {
    position: relative;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(45deg, #004e98, #0074d9);
    animation: progressFill 1.5s ease-out forwards;
}

.leaderboard-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent);
    background-size: 20px 20px;
    z-index: 1;
}

@keyframes progressFill {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.progress-percentage {
    color: #004e98;
    font-weight: 700;
    font-size: 0.9rem;
}

.progress-text {
    color: #344767;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Container and Layout */
.container-fluid {
    padding: 2rem 4rem;
}

.dashboard-header {
    padding: 2rem 0 4rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-1);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.title-underline {
    width: 180px;
    height: 5px;
    background: linear-gradient(to right, var(--color-1), var(--color-2));
    margin: 0 auto;
    border-radius: 3px;
}

.materials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .materials-container {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 2rem;
    }

    .materi-card-body {
        padding: 1.5rem;
    }
}

.progress-item-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-item-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.question-info {
    color: #666;
    font-size: 0.9rem;
}

.question-info i {
    margin-right: 0.5rem;
}

/* Profile Page Specific Styles */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    margin-bottom: 3rem;
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
}

.min-height-300 {
    min-height: 300px;
}

.border-radius-xl {
    border-radius: 1rem;
}

.mt-n6 {
    margin-top: -6rem;
}

/* Avatar Styles */
.avatar-xl {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 1rem;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: var(--color-1);
}

.avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 8px;
    background-color: var(--color-1);
}

.avatar-xl:hover img {
    transform: scale(1.05);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: alertFade 0.3s ease;
}

.alert-success {
    background: linear-gradient(to right, var(--color-4), #7a8152);
    color: white;
}

@keyframes alertFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.btn-close {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Form Enhancements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--color-1);
    box-shadow: 0 0 0 0.2rem rgba(255, 123, 84, 0.15);
    background-color: white;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Password Section */
.password-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 123, 84, 0.1);
}

.password-section h5 {
    color: var(--color-1);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Submit Button */
.btn-update i {
    margin-right: 0.5rem;
}

/* Add these styles to your existing CSS file */

.question-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.answers-container {
    padding-left: 1.5rem;
}

.form-check-input {
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background-color: var(--color-1);
    border-color: var(--color-1);
}

.form-check-label {
    cursor: pointer;
    padding-left: 0.5rem;
    color: var(--text-dark);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
}

/* Tambahkan styles dari exercise-feedback.css */
.exercise-feedback {
    position: relative;
    display: none;
    background-color: var(--color-4);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Tambahkan styles dari material-show.css */
.content-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Tambahkan styles dari question-review.css */
.review-container {
    max-width: 900px;
    margin: 0 auto;
}

.question-review {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 2px solid var(--color-2);
    overflow: hidden;
}

.card-header {
    position: relative;
    padding-top: 24px !important;
}

.icon.icon-lg {
    width: 64px;
    height: 64px;
    position: absolute;
    top: -20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon.icon-lg i {
    font-size: 24px;
    line-height: 1;
}

.card-header .text-end {
    margin-left: 75px;
}

/* Exercise Feedback Styles */
.exercise-feedback {
    position: relative;
    display: none;
    background-color: #1a2035;
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    /* Prevent flickering */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
}

.feedback-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;

    /* Prevent flickering */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
}

.feedback-icon-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.feedback-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Prevent flickering */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.feedback-icon.success {
    background-color: #00A67E;
}

.feedback-icon.error {
    background-color: #E94F37;
}

.feedback-icon i {
    font-size: 60px;
    color: white;
}

.feedback-actions {
    margin-top: 2rem;
}

#tryAgainBtn,
#retryQuestionBtn,
#nextQuestionBtn {
    border: none;
    padding: 0.5rem 2rem;
    margin: 0 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#tryAgainBtn:hover,
#retryQuestionBtn:hover,
#nextQuestionBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#tryAgainBtn,
#nextQuestionBtn {
    background-color: #00A67E;
}

#retryQuestionBtn {
    background-color: #f0ad4e;
}

/* Material Show Page Styles */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.materi-heading {
    font-size: 2rem;
    font-weight: 600;
    color: #344767;
    margin-bottom: 0.5rem;
}

.heading-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #004E98, #0074D9);
    border-radius: 2px;
}

.materi-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.materi-card-body {
    padding: 1.5rem;
}

/* Content Text Styles */
.content-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #344767;
}

.content-text ul,
.content-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-text img:hover {
    transform: scale(1.02);
}

.content-text pre,
.content-text code {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
    font-size: 0.9rem;
}

.content-text table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.content-text table th,
.content-text table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.content-text blockquote {
    background: linear-gradient(to right, rgba(233, 30, 99, 0.1), transparent);
    border-left: 4px solid #e91e63;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.content-text blockquote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 1rem;
    font-size: 3rem;
    color: #0074D9;
    ;
    opacity: 0.2;
}

/* Section Heading */
.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #344767;
    margin-bottom: 1rem;
}

.review-container {
    max-width: 900px;
    margin: 0 auto;
}

.question-review {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 2px solid #004E98;
    overflow: hidden;
}

.question-header {
    background: linear-gradient(135deg, rgba(0, 78, 152, 0.1), rgba(0, 78, 152, 0.05));
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #004E98;
    margin-bottom: 1.5rem;
}

.question-number {
    display: flex;
    align-items: center;
    color: #004E98;
    font-weight: 600;
    font-size: 1.1rem;
}

.question-number i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #004E98;
}

.question-content {
    padding: 1.5rem;
}

.question-text {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1.15rem;
    color: #344767;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border: 3px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-text:hover {
    border: 3px solid #004E98;
    transition: all 0.3s ease;
}

.answers-container {
    padding: 0 1rem;
}

.answer-option {
    background: white;
    border: 3px solid #eef2f7;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.answer-option:hover {
    transform: translateX(5px);
    border: 3px solid #004E98;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.answer-option.correct-answer {
    border: 3px solid #4CAF50;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    border: 2px solid #eef2f7;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #004E98;
    border-color: #004E98;
}

.form-check-label {
    font-size: 1.1rem;
    color: #344767;
    padding-left: 0.75rem;
    cursor: pointer;
}

.answer-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(25, 118, 210, 0.05);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1976d2;
    border-left: 3px solid #1976d2;
}

.answer-explanation i {
    color: #1976d2;
    margin-right: 0.5rem;
}

.navigation-buttons {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.btn-check-answer {
    background: linear-gradient(45deg, #004E98, #0074D9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-check-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.2);
}

.review-header {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-title {
    font-size: 1.5rem;
    color: #344767;
    margin-bottom: 0;
    font-weight: 600;
}

.badge.bg-gradient-primary {
    background: linear-gradient(45deg, #004E98, #0074D9);
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Styles */
.progress-container {
    margin: 1rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-text {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.progress-percentage {
    color: var(--color-1);
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--color-1), var(--color-2));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-detail {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Progress Item Card Styles */
.progress-item-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.progress-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.guest-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(45deg, #004E98, #0074D9) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.guest-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.guest-badge i {
    font-size: 1rem;
}

.navbar-brand {
    background-color: transparent !important;
}

/* Styling untuk gambar profil di navbar */
.profile-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 78, 152, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.profile-image:hover {
    transform: scale(1.1);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 116, 217, 0.7);
}

/* Efek pulsing pada border (opsional) */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.nav-link:hover .profile-image {
    animation: pulse-border 1.5s infinite;
}

/* Penyesuaian untuk dropdown toggle */
.dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Spasi untuk dropdown arrow */
.profile-dropdown::after {
    margin-left: 8px;
    vertical-align: middle;
    opacity: 0.8;
}

/* Styling untuk nama pengguna */
.profile-dropdown span {
    font-weight: 500;
    letter-spacing: 0.2px;
}

.btn-start-material {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 123, 84, 0.3);
    transition: all 0.3s ease;
}

.btn-start-material:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 123, 84, 0.4);
    color: white;
    background: linear-gradient(135deg, var(--color-2), var(--color-1));
}

.btn-start-material i {
    margin-right: 8px;
}

/* ===== LEADERBOARD STYLES ===== */
.leaderboard-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: all 0.4s ease;
    animation: slideInUp 0.6s ease-out;
    transform-origin: center;
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

/* Current user rank styling */
.current-user-rank {
    animation: fadeInScale 0.8s ease-out;
    background: linear-gradient(135deg, rgba(0, 78, 152, 0.05) 0%, rgba(0, 116, 217, 0.08) 100%);
    border: 2px solid rgba(0, 78, 152, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rank-badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Level badge styling - Enhanced */
.level-badge {
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.level-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
}

.level-badge:hover::before {
    left: 100%;
}

.level-badge:hover {
    transform: translateY(-2px) rotate(2deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.level-success {
    background: linear-gradient(45deg, #2E7D32, #4CAF50, #8BC34A);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.level-warning {
    background: linear-gradient(45deg, #FF8F00, #FFA000, #FFB300);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.level-danger {
    background: linear-gradient(45deg, #C62828, #D32F2F, #E53935);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.level-secondary {
    background: linear-gradient(45deg, #455A64, #607D8B, #90A4AE);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated border table */
.animated-border-table {
    position: relative;
    border-radius: 15px;
    background: white;
    padding: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.animated-border-table::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(90deg,
            var(--color-1), var(--color-2), #00BCD4, #4CAF50, #8BC34A,
            #CDDC39, #FFC107, #FF9800, var(--color-1));
    background-size: 500% 500%;
    border-radius: 17px;
    animation: animatedBorder 8s linear infinite;
}

@keyframes animatedBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Table styling */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    color: #344767;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1rem;
    border-bottom: 2px solid rgba(0, 78, 152, 0.1);
}

.table tbody tr {
    border-bottom: 1px solid rgba(0, 78, 152, 0.05);
}

.table tbody tr:nth-child(even) {
    background-color: rgba(0, 78, 152, 0.02);
}

/* Table row hover effect */
.leaderboard-table tbody tr {
    transition: background-color 0.3s ease;
    position: relative;
}

.leaderboard-table tbody tr:hover {
    background: #f8f9fa;
}

/* Current user row styling */
.highlight-row {
    background: rgba(0, 78, 152, 0.02) !important;
    position: relative;
}

.highlight-row td {
    border-color: rgba(0, 78, 152, 0.08) !important;
}

.highlight-row td:first-child {
    border-left: 3px solid var(--color-1);
}

/* Remove the pointing hand animation */
.highlight-row::before {
    display: none;
}

/* Adjust table margin */
.animated-border-table {
    margin-left: 0;
}

/* Smooth transition for table cells */
.leaderboard-table td {
    transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover td {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Progress bar container in table */
.progress-wrapper {
    background: rgba(0, 78, 152, 0.05);
    padding: 10px;
    border-radius: 10px;
}

/* Rank number styling */
.top-rank {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 100%);
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #E0E0E0 100%);
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #D4A676 100%);
}

/* Level System Styles */
.level-container {
    padding: 30px 0;
}

.level-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 40px 0;
}

.level-item {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    text-align: center;
}

.level-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.level-item.locked .level-circle {
    background-color: #6c757d;
    color: #fff;
    opacity: 0.7;
}

.level-item.unlocked .level-circle {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

.level-item.unlocked .level-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.level-item.completed .level-circle {
    background-color: #2196F3;
    color: white;
}

.level-connector {
    width: 4px;
    height: 40px;
    background-color: #e0e0e0;
    position: absolute;
    z-index: 1;
}

.level-connector.completed {
    background-color: #2196F3;
}

.level-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.level-number {
    font-size: 24px;
    font-weight: bold;
}

.level-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.legend-text {
    font-size: 14px;
    color: #555;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
}

.timeline-marker {
    flex-shrink: 0;
    width: 30px;
    margin-right: 15px;
    text-align: center;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 5px 0;
    color: #666;
}

.timeline-content small {
    color: #999;
}

.activity-timeline {
    padding: 20px 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    background-color: #f0f2f5;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.activity-content {
    flex-grow: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.activity-details {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.activity-details .fw-bold {
    color: var(--color-1);
}

.activity-time {
    color: #999;
    font-size: 0.85rem;
    margin-top: 8px;
}

.bg-success {
    background-color: #28a745;
}

.bg-warning {
    background-color: #ffc107;
}

.bg-info {
    background-color: #17a2b8;
}

.podium-wrapper {
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 78, 152, 0.05) 100%);
    border-radius: 15px;
    margin-top: 30px;
}

.podium-display {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 0 2rem;
    animation: fadeIn 1s ease-out;
}

.podium-item {
    position: relative;
}

.player-avatar {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 100%);
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.player-avatar:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.first-place .player-avatar {
    padding-top: 40px;
    padding-bottom: 30px;
    min-width: 250px;
    position: relative;
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ff 100%);
    border: 2px solid rgba(0, 116, 217, 0.3);
    box-shadow: 0 8px 25px rgba(0, 116, 217, 0.2);
}

.second-place .player-avatar {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border: 2px solid rgba(108, 117, 125, 0.3);
    min-width: 250px;
    /* Match first place width */
    padding-top: 30px;
    /* Similar padding to first place */
    padding-bottom: 30px;
}

.third-place .player-avatar {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff5e6 100%);
    border: 2px solid rgba(205, 127, 50, 0.3);
    min-width: 250px;
    /* Match first place width */
    padding-top: 30px;
    /* Similar padding to first place */
    padding-bottom: 30px;
}

.podium-base {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    border-radius: 10px;
    margin-top: 0;
    width: 100%;
}

.podium-base.first {
    height: 100px;
    background: linear-gradient(135deg, #0074D9 0%, #004E98 100%);
    box-shadow: 0 5px 15px rgba(0, 78, 152, 0.3);
}

.podium-base.second {
    height: 80px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.podium-base.third {
    height: 60px;
    background: linear-gradient(135deg, #CD7F32 0%, #A06030 100%);
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.3);
}

.player-name {
    color: #000000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.score-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #344767;
    transition: all 0.3s ease;
}

.player-avatar:hover .score {
    transform: scale(1.1);
    color: var(--color-1);
}

/* Enhanced Leaderboard Card Animation */
.leaderboard-card {
    animation: slideInUp 0.6s ease-out;
    transform-origin: center;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

/* Enhanced Current User Rank Section */
.current-user-rank {
    animation: fadeInScale 0.8s ease-out;
    background: linear-gradient(135deg, rgba(0, 78, 152, 0.05) 0%, rgba(0, 116, 217, 0.08) 100%);
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Podium Animations */
.podium-display {
    animation: fadeIn 1s ease-out;
}

.first-place {
    animation: podiumFirst 1s ease-out 0.2s backwards;
}

.second-place {
    animation: podiumSecond 1s ease-out 0.4s backwards;
}

.third-place {
    animation: podiumThird 1s ease-out 0.6s backwards;
}

@keyframes podiumFirst {
    from {
        transform: translateY(50px) scale(0.8);
        opacity: 0;
    }

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

@keyframes podiumSecond {
    from {
        transform: translateX(-50px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes podiumThird {
    from {
        transform: translateX(50px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Enhanced Medal Badges */
.medal-badge {
    display: inline-block;
    transform-origin: center;
    animation: medalFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.medal-gold {
    animation-delay: 0s;
}

.medal-silver {
    animation-delay: 0.2s;
}

.medal-bronze {
    animation-delay: 0.4s;
}

@keyframes medalFloat {

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

    25% {
        transform: translateY(-5px) rotate(5deg);
    }

    75% {
        transform: translateY(5px) rotate(-5deg);
    }
}

.medal-badge:hover {
    animation: medalSpin 1s ease-in-out;
}

@keyframes medalSpin {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.leaderboard-decoration {
    display: flex;
    gap: 10px;
    align-items: center;
}

.medal-badge {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Crown styling */
.crown-icon {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    /* Larger size */
    color: #FFD700;
    text-shadow:
        0 0 5px rgba(255, 215, 0, 0.8),
        0 0 10px rgba(255, 140, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.7);
    filter:
        drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    animation: floatCrown 3s ease-in-out infinite;
    z-index: 5;
}

/* More realistic floating animation */
@keyframes floatCrown {
    0% {
        transform: translateX(-50%) translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateX(-50%) translateY(-7px) rotate(2deg);
    }

    100% {
        transform: translateX(-50%) translateY(0) rotate(-2deg);
    }
}

/* First place level badge special styling */
.first-place .level-badge {
    background: linear-gradient(45deg, #DC3545, #FF4757) !important;
    color: white !important;
    font-weight: 700;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Table row hover effect */
.leaderboard-table tbody tr {
    transition: background-color 0.3s ease;
    position: relative;
}

.leaderboard-table tbody tr:hover {
    background: #f8f9fa;
}

/* Highlight current user's row */
.highlight-row {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.1));
    border-left: 4px solid #0d6efd;
}

.highlight-row:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.15)) !important;
}

/* Smooth transition for table cells */
.leaderboard-table td {
    transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover td {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* UEQ Survey Styles */
.ueq-thankyou-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 78, 152, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(0, 78, 152, 0.1);
    transition: all 0.3s ease;
}

.ueq-thankyou-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 78, 152, 0.15);
    border-color: var(--color-1);
}

.ueq-thankyou-icon {
    font-size: 5rem;
    color: var(--color-1);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.ueq-thankyou-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.ueq-thankyou-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ueq-thankyou-decoration {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.ueq-decoration-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.8;
    animation: float 3s infinite ease-in-out;
}

.ueq-decoration-item:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(135deg, var(--color-1), #3a7bd5);
}

.ueq-decoration-item:nth-child(2) {
    animation-delay: 0.5s;
    background: linear-gradient(135deg, #3a7bd5, var(--color-2));
}

.ueq-decoration-item:nth-child(3) {
    animation-delay: 1s;
    background: linear-gradient(135deg, var(--color-2), #00c6ff);
}

.ueq-thankyou-actions {
    margin-top: 2rem;
}

.ueq-thankyou-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ueq-thankyou-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 78, 152, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {

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

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

/* Styling untuk tabel UEQ */
.table-bordered {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.table-bordered thead th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.table-bordered tbody tr:nth-child(odd) {
    background-color: rgba(0, 78, 152, 0.05);
}

.table-bordered tbody tr:hover {
    background-color: rgba(0, 78, 152, 0.1);
}

.table-bordered td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #eee;
}

.table-bordered input[type="radio"] {
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--color-1);
}

.table-bordered label {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Welcome Banner Styles */
.welcome-banner {
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    border-radius: 15px;
    padding: 25px 30px;
    margin: 0 20px 30px 20px;
    box-shadow: 0 10px 25px rgba(0, 78, 152, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(-30deg);
    animation: shimmer 8s infinite linear;
}

.welcome-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.welcome-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite ease-in-out;
}

.welcome-icon i {
    font-size: 32px;
    color: white;
    animation: wave 2s infinite;
}

.welcome-text {
    color: white;
}

.welcome-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0;
    opacity: 0;
    animation: fadeInRight 0.5s ease-out 0.3s forwards;
}

.welcome-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0 10px 0;
    opacity: 0;
    animation: fadeInRight 0.5s ease-out 0.5s forwards;
}

.welcome-message {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInRight 0.5s ease-out 0.7s forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes shimmer {
    from {
        transform: rotate(-30deg) translateX(-100%);
    }

    to {
        transform: rotate(-30deg) translateX(100%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .welcome-title,
    .welcome-name,
    .welcome-message {
        animation-name: fadeInUp;
    }
}

.materi-overview {
    text-align: center;
    padding: 15px 0;
}

.materi-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4e73df;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.count-number {
    margin-left: 10px;
}

.materi-description {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 15px;
}

.difficulty-breakdown {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.difficulty-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 5px;
    background-color: #f8f9fa;
    width: 30%;
}

.difficulty-count {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
}

.badge {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.materi-content-preview {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 10px 0;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.progress-item-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.progress-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-1);
    margin-bottom: 10px;
}

.question-info {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.question-info i {
    margin-right: 8px;
    color: var(--color-2);
}

.button-container {
    margin-top: 15px;
    width: 100%;
}

.materi-overview {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.difficulty-breakdown {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.materi-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.materi-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* CSS untuk warna bintang tingkat kesulitan */
.difficulty-star.beginner,
.difficulty-item .beginner-star {
    color: #28a745;
    /* Hijau untuk tingkat Beginner */
}

.difficulty-star.medium,
.difficulty-item .medium-star {
    color: #ffc107;
    /* Kuning untuk tingkat Medium */
}

.difficulty-star.hard,
.difficulty-item .hard-star {
    color: #dc3545;
    /* Merah untuk tingkat Hard/Advanced */
}

/* Styling untuk item kesulitan pada sidebar */
.difficulty-item {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 35px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.difficulty-item:hover {
    background-color: rgba(255, 123, 84, 0.1);
    color: var(--color-1);
}

.difficulty-item.active {
    background-color: #e9f0f7;
    color: var(--color-1);
    border-left: 3px solid var(--color-1);
}

/* Pastikan warna bintang tetap sesuai meskipun item active */
.difficulty-item.active .beginner-star {
    color: #28a745;
}

.difficulty-item.active .medium-star {
    color: #ffc107;
}

.difficulty-item.active .hard-star {
    color: #dc3545;
}

/* CSS untuk tingkat kesulitan di sidebar */
.difficulty-menu {
    padding-left: 0;
    margin-top: 0;
}

/* Styling untuk sub-menu (difficulty levels) */
.sub-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 35px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    background-color: #f8f9fa;
    border-left: 3px solid transparent;
}

/* Hover effect pada sub-menu */
.sub-menu-item:hover {
    background-color: #e9f0f7;
    color: var(--color-1);
}

/* Active state pada sub-menu */
.sub-menu-item.active {
    background-color: #e9f0f7;
    color: var(--color-1);
    border-left: 3px solid var(--color-1);
}

/* Warna untuk bintang tingkat kesulitan */
.beginner-star {
    color: #28a745 !important;
    /* Hijau */
}

.medium-star {
    color: #ffc107 !important;
    /* Kuning */
}

.hard-star {
    color: #dc3545 !important;
    /* Merah */
}

/* Override warna ikon bintang pada item active */
.menu-item.active .beginner-star,
.menu-item.active .medium-star,
.menu-item.active .hard-star {
    color: inherit !important;
}

/* Styling khusus untuk Beginner yang active */
.menu-item.sub-menu-item.active .beginner-star {
    color: #28a745 !important;
}

.menu-item.sub-menu-item.active .medium-star {
    color: #ffc107 !important;
}

.menu-item.sub-menu-item.active .hard-star {
    color: #dc3545 !important;
}

/* Styling untuk tampilan materi dan tingkat kesulitan */
.sidebar-title {
    color: #0056b3;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0056b3;
    border-radius: 2px;
}

/* Styling untuk item materi */
.material-menu-item {
    background-color: #0056b3;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.material-menu-item:hover {
    background-color: #004494;
    transform: translateX(5px);
}

.material-menu-item.active {
    background-color: #0056b3;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

.material-menu-item i {
    color: #ffffff;
}

/* Styling untuk menu tingkat kesulitan */
.difficulty-menu {
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 10px;
}

.difficulty-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    color: #495057;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    border-radius: 10px;
    background-color: #f8f9fa;
}

/* Styling spesifik untuk setiap tingkat kesulitan */
.difficulty-item.beginner {
    border-left: 4px solid #28a745;
}

.difficulty-item.beginner.active {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    font-weight: 500;
}

.difficulty-item.medium {
    border-left: 4px solid #ffc107;
}

.difficulty-item.medium.active {
    background-color: rgba(255, 193, 7, 0.15);
    color: #d39e00;
    font-weight: 500;
}

.difficulty-item.hard {
    border-left: 4px solid #dc3545;
}

.difficulty-item.hard.active {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    font-weight: 500;
}

/* Hover effect untuk item kesulitan */
.difficulty-item:hover {
    transform: translateX(5px);
}

.difficulty-item.beginner:hover {
    background-color: rgba(40, 167, 69, 0.08);
}

.difficulty-item.medium:hover {
    background-color: rgba(255, 193, 7, 0.08);
}

.difficulty-item.hard:hover {
    background-color: rgba(220, 53, 69, 0.08);
}

/* Styling untuk ikon bintang */
.beginner-star {
    color: #28a745 !important;
    margin-right: 10px;
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
}

.medium-star {
    color: #ffc107 !important;
    margin-right: 10px;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
}

.hard-star {
    color: #dc3545 !important;
    margin-right: 10px;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
}

/* Animasi untuk bintang kesulitan */
.difficulty-item:hover .beginner-star,
.difficulty-item:hover .medium-star,
.difficulty-item:hover .hard-star {
    transform: rotate(15deg) scale(1.2);
    transition: all 0.3s ease;
}

/* Pastikan menu active tetap terlihat jelas */
.difficulty-item.active {
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling untuk item materi utama */
.menu-item.active {
    background-color: #0056b3;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
    border-radius: 10px;
}

/* Styling untuk menu tingkat kesulitan */
.difficulty-menu {
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Base styling untuk item kesulitan */
.difficulty-item,
.menu-item.sub-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    color: #495057;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    border-radius: 10px;
    background-color: #f8f9fa;
}

/* Beginner difficulty styling */
.difficulty-item.beginner.active,
.menu-item.sub-menu-item.active:has(.beginner-star) {
    background-color: #0056b3;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

/* Medium difficulty styling */
.difficulty-item.medium.active,
.menu-item.sub-menu-item.active:has(.medium-star) {
    background-color: #0056b3;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

/* Hard difficulty styling */
.difficulty-item.hard.active,
.menu-item.sub-menu-item.active:has(.hard-star) {
    background-color: #0056b3;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

/* Hover styles */
.difficulty-item:hover,
.menu-item.sub-menu-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 86, 179, 0.1);
}

/* Star colors */
.beginner-star {
    color: #28a745 !important;
    /* Hijau */
    margin-right: 10px;
}

.medium-star {
    color: #ffc107 !important;
    /* Kuning */
    margin-right: 10px;
}

.hard-star {
    color: #dc3545 !important;
    /* Merah */
    margin-right: 10px;
}

/* Ensure stars keep their colors even in active state */
.menu-item.sub-menu-item.active .beginner-star {
    color: #28a745 !important;
}

.menu-item.sub-menu-item.active .medium-star {
    color: #ffc107 !important;
}

.menu-item.sub-menu-item.active .hard-star {
    color: #dc3545 !important;
}

/* Hover animations for stars */
.difficulty-item:hover .beginner-star,
.difficulty-item:hover .medium-star,
.difficulty-item:hover .hard-star,
.menu-item.sub-menu-item:hover .beginner-star,
.menu-item.sub-menu-item:hover .medium-star,
.menu-item.sub-menu-item:hover .hard-star {
    transform: rotate(15deg) scale(1.2);
    transition: all 0.3s ease;
}

/* Podium Styling - Blue Theme */
.podium-wrapper {
    margin-top: 30px;
    padding: 20px 0;
}

.podium-display {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    position: relative;
}

/* Player Avatar Styling */
.player-avatar {
    background-color: white;
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    width: 180px;
    box-shadow: 0 8px 24px rgba(0, 78, 152, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.player-avatar:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 78, 152, 0.25);
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 10px 0 8px;
    color: var(--text-dark);
}

/* Podium Base Styling */
.podium-base {
    height: 40px;
    text-align: center;
    color: white;
    font-weight: 700;
    line-height: 40px;
    font-size: 1.2rem;
    border-radius: 0 0 8px 8px;
    position: relative;
    margin-top: 10px;
}

/* First Place Styling */
.first-place .player-avatar {
    background: linear-gradient(145deg, #f9f9f9, #f0f8ff);
    border: 2px solid #0074D9;
    box-shadow: 0 10px 25px rgba(0, 116, 217, 0.3);
}

.podium-base.first {
    background: linear-gradient(145deg, #0074D9, #004E98);
    height: 80px;
    box-shadow: 0 5px 15px rgba(0, 78, 152, 0.3);
}

.first-place .medal-badge {
    background: linear-gradient(145deg, #FFD700, #FFC107);
    border: 2px solid #FFC107;
}

/* Second Place Styling */
.second-place .player-avatar {
    background: linear-gradient(145deg, #f9f9f9, #f0f8ff);
    border: 2px solid #6c757d;
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.2);
}

.podium-base.second {
    background: linear-gradient(145deg, #6c757d, #495057);
    height: 60px;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.second-place .medal-badge {
    background: linear-gradient(145deg, #C0C0C0, #A9A9A9);
    border: 2px solid #A9A9A9;
}

/* Third Place Styling */
.third-place .player-avatar {
    background: linear-gradient(145deg, #f9f9f9, #f0f8ff);
    border: 2px solid #CD7F32;
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.2);
}

.podium-base.third {
    background: linear-gradient(145deg, #CD7F32, #8B4513);
    height: 40px;
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.3);
}

.third-place .medal-badge {
    background: linear-gradient(145deg, #CD7F32, #8B4513);
    border: 2px solid #8B4513;
}

/* Medal Badge Styling */
.medal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Crown Icon Styling */
.crown-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFD700;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: floatCrown 3s ease-in-out infinite;
}

@keyframes floatCrown {
    0% {
        transform: translateX(-50%) translateY(0);
    }

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

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Level Badge Styling */
.level-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Level Badge Colors - Keep existing color scheme for consistency */
.level-primary {
    background-color: rgba(0, 116, 217, 0.2);
    color: #0074D9;
}

.level-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.level-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.level-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.level-info {
    background-color: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

/* Base player avatar styling */
.player-avatar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 78, 152, 0.1);
    text-align: center;
    min-width: 200px;
    margin-bottom: 15px;
    /* Added space between avatar and podium */
    border: 2px solid rgba(0, 78, 152, 0.1);
    transition: all 0.3s ease;
}

.player-avatar:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.first-place .player-avatar {
    padding-top: 40px;
    padding-bottom: 30px;
    min-width: 250px;
    position: relative;
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ff 100%);
    border: 2px solid rgba(0, 116, 217, 0.3);
    box-shadow: 0 8px 25px rgba(0, 116, 217, 0.2);
}

.second-place .player-avatar {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border: 2px solid rgba(108, 117, 125, 0.3);
    min-width: 250px;
    /* Match first place width */
    padding-top: 30px;
    /* Similar padding to first place */
    padding-bottom: 30px;
}

.third-place .player-avatar {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff5e6 100%);
    border: 2px solid rgba(205, 127, 50, 0.3);
    min-width: 250px;
    /* Match first place width */
    padding-top: 30px;
    /* Similar padding to first place */
    padding-bottom: 30px;
}

/* Podium base styling to match avatar widths */
.podium-base {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    border-radius: 10px;
    /* Changed from pointy to more rounded */
    margin-top: 0;
    width: 100%;
    /* Match the width of the avatar above */
}

.podium-base.first {
    height: 100px;
    background: linear-gradient(135deg, #0074D9 0%, #004E98 100%);
    box-shadow: 0 5px 15px rgba(0, 78, 152, 0.3);
}

.podium-base.second {
    height: 80px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.podium-base.third {
    height: 60px;
    background: linear-gradient(135deg, #CD7F32 0%, #A06030 100%);
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.3);
}

/* Ensure the podium items have the right structure */
.podium-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    /* Add some horizontal spacing between podium items */
}

/* Add more space in podium display */
.podium-display {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    /* Increased gap between podium items */
    padding: 0 2rem;
}

/* Reduce spacing above page headers */
.dashboard-header {
    padding-top: 1rem !important;
    /* Reduced from 2.5rem */
    margin-top: 1rem !important;
    margin-bottom: 1.5rem;
}

.main-title {
    margin-top: 0;
}

/* Fix spacing after navbar */
.navbar+.container-fluid,
.navbar+.dashboard-header,
.navbar+.dashboard-content,
.navbar+div {
    margin-top: 1rem !important;
    padding-top: 0.5rem !important;
}

/* Adjust content spacing */
.dashboard-content,
.materials-container {
    padding-top: 0.5rem !important;
}

/* Responsive Sidebar Styles */
.sidebar-toggler {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.sidebar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Improved Profile Dropdown */
.profile-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.profile-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.profile-dropdown .dropdown-item:hover {
    background-color: rgba(0, 78, 152, 0.08);
    transform: translateX(5px);
}

.profile-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

.profile-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--color-1);
}

/* Responsive styles for mobile */
@media (max-width: 991.98px) {
    .sidebar-toggler {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1030;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        transition: margin 0.3s ease;
    }

    .main-content.sidebar-open {
        margin-left: 250px !important;
    }

    /* Fix profile dropdown on mobile */
    .profile-dropdown .dropdown-menu {
        position: absolute;
        width: 100%;
        max-width: 250px;
    }

    /* Improve the profile section visibility */
    .profile-image {
        width: 32px !important;
        height: 32px !important;
    }

    /* Add backdrop when sidebar is open */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1025;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
}

/* ── Overlay / Spotlight ── */
.introjs-overlay {
    backdrop-filter: blur(2px) !important;
    background: rgba(10, 15, 30, 0.65) !important;
}

.introjs-helperLayer {
    border-radius: 14px !important;
    border: 2px solid rgba(0, 116, 217, 0.5) !important;
    box-shadow:
        0 0 0 9999px rgba(10, 15, 30, 0.65),
        0 0 30px rgba(0, 116, 217, 0.4) !important;
}

/* ── Tooltip Container (Speech Bubble) ── */
.introjs-tooltip {
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow:
        0 24px 50px rgba(0, 78, 152, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.10) !important;
    background: #fff !important;
    min-width: 280px !important;
    max-width: 340px !important;
    font-family: 'Roboto', sans-serif !important;
}

/* ── Header strip (biru tipis di atas) ── */
.introjs-tooltip-header {
    background: linear-gradient(135deg, #004E98 0%, #0074D9 100%) !important;
    padding: 14px 20px 12px !important;
    border-bottom: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.introjs-tooltip-title {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ── Skip / Close Button ── */
.introjs-skipbutton {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: color 0.2s !important;
    background: transparent !important;
    border: none !important;
    top: auto !important;
    right: auto !important;
    position: static !important;
}

.introjs-skipbutton:hover {
    color: #fff !important;
}

/* ── Body Text ── */
.introjs-tooltiptext {
    padding: 18px 20px 10px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin: 0 !important;
}

/* ── Button Row ── */
.introjs-tooltipbuttons {
    border-top: 1px solid #F1F5F9 !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #FAFBFF !important;
}

/* ── Shared Button Base ── */
.introjs-button {
    border-radius: 99px !important;
    padding: 7px 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    font-family: 'Roboto', sans-serif !important;
    letter-spacing: 0.2px !important;
}

/* ── Prev Button ── */
.introjs-prevbutton {
    background: #F1F5F9 !important;
    color: #64748B !important;
    margin-right: auto !important;
}

.introjs-prevbutton:hover {
    background: #E2E8F0 !important;
    color: #1E293B !important;
    transform: translateX(-2px) !important;
}

/* ── Next / Done Button ── */
.introjs-nextbutton,
.introjs-donebutton {
    background: linear-gradient(135deg, #004E98 0%, #0074D9 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 116, 217, 0.35) !important;
    margin-left: auto !important;
}

.introjs-nextbutton:hover,
.introjs-donebutton:hover {
    background: linear-gradient(135deg, #003d78 0%, #005fb5 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 116, 217, 0.45) !important;
    color: #fff !important;
}

/* ── Progress Bullets ── */
.introjs-bullets {
    padding: 6px 0 2px !important;
    text-align: center !important;
}

.introjs-bullets ul li a {
    background: #CBD5E1 !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 99px !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
}

.introjs-bullets ul li a.active {
    background: linear-gradient(90deg, #004E98, #0074D9) !important;
    width: 22px !important;
    border-radius: 4px !important;
}

/* ── Progress Bar ── */
.introjs-progress {
    background: #E2E8F0 !important;
    border-radius: 2px !important;
    height: 3px !important;
    margin: 0 !important;
}

.introjs-progressbar {
    background: linear-gradient(90deg, #004E98, #0074D9) !important;
    border-radius: 2px !important;
}

/* ── Robot Mascot floating di pojok atas tooltip ── */
.tour-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    animation: tourMascotFloat 3s ease-in-out infinite;
}

.tour-mascot img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@keyframes tourMascotFloat {

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

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

/* ── Step number badge ── */
.tour-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

/* ── Tour content standard classes ── */
.tour-body {
    padding: 4px 0;
}

.tour-body h4,
.tour-body h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}

.tour-body p {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 8px;
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.tour-badge--blue {
    background: rgba(0, 78, 152, .1);
    color: #004E98;
}

.tour-badge--green {
    background: rgba(16, 185, 129, .1);
    color: #059669;
}

.tour-badge--orange {
    background: rgba(245, 158, 11, .1);
    color: #D97706;
}