/* semua */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

/* body */
body {
    font-family: "Inter", Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Account for fixed nav */
}

/* navigation - cleaned up for DaisyUI integration */

/* header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 20px;
    margin: 0;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 0;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

header * {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

header h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #fff;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #667eea;
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* isian */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.content h2 {
    font-size: 22px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.content p {
    /*font-size: 16px;*/
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0;
}

/* Modern Navbar Styles */
.navbar {
    height: 80px;
    padding: 0 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    align-items: center;
    justify-content: space-between;
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.98) !important;
    backdrop-filter: blur(30px);
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

/* Enhanced Dropdown Styles */
.dropdown-content {
    animation: dropdownSlide 0.2s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(75, 85, 99, 0.2);
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    transform: translateX(0) !important;
    min-width: 220px;
    max-width: 280px;
}

.dropdown-hover:hover .dropdown-content {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

.dropdown-end .dropdown-content {
    left: auto !important;
    right: 0 !important;
    transform: translateX(0) !important;
}

/* Mobile dropdown specific positioning */
.dropdown:first-child .dropdown-content {
    left: -16px !important;
    transform: translateX(0) !important;
}

/* Submenu improvements */
.dropdown-content ul {
    background: rgba(55, 65, 81, 0.5) !important;
    border-radius: 12px;
    margin: 8px 0;
    padding: 8px;
    backdrop-filter: blur(8px);
}

.dropdown-content ul li a {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-content ul li a:hover {
    transform: translateX(4px);
    background: rgba(55, 65, 81, 0.8) !important;
}

/* Navbar brand improvements */
.navbar .text-xl {
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Menu item hover effects */
.menu a {
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.025em;
    margin: 0 4px;
}

.menu a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.menu a:hover::before {
    left: 100%;
}

/* CTA Button enhanced styling */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Icon colors and effects */
.fas {
    transition: all 0.2s ease;
}

.dropdown-content .fas {
    width: 16px;
    text-align: center;
}

/* Backdrop overlay for mobile menu */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile improvements */
@media (max-width: 1023px) {
    .navbar {
        padding: 0 1rem;
        height: 70px;
        min-height: 70px;
    }

    .dropdown-content {
        margin-top: 0.75rem;
        box-shadow:
            0 20px 25px -5px rgba(0, 0, 0, 0.1),
            0 10px 10px -5px rgba(0, 0, 0, 0.04);
        left: 0 !important;
        right: auto !important;
        min-width: 250px;
    }

    .navbar-start {
        flex: none;
        width: auto;
        min-width: 100px;
    }

    .navbar-center {
        flex: 1;
        justify-content: center;
    }

    .navbar-end {
        flex: none;
        width: auto;
        min-width: 80px;
        justify-content: flex-end;
    }

    /* Mobile dropdown full width fix */
    .dropdown-content {
        left: -16px !important;
        right: 16px !important;
        width: calc(100vw - 32px) !important;
        max-width: 340px !important;
        padding: 1.5rem !important;
        border-radius: 20px !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        background: rgba(31, 41, 55, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 9999 !important;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Mobile navbar brand improvements */
    .navbar-start {
        min-width: 120px;
    }

    .navbar-start a {
        font-size: 1.1rem !important;
        gap: 8px !important;
    }

    .navbar-start i {
        font-size: 1.3rem !important;
    }

    /* Mobile user menu improvements */
    .navbar-end .dropdown-content {
        right: -8px !important;
        left: auto !important;
        max-width: 200px !important;
    }

    .dropdown-content ul li {
        margin: 6px 0 !important;
    }

    .dropdown-content ul li a {
        padding: 16px 16px !important;
        margin: 0 !important;
        border-radius: 14px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
    }

    .dropdown-content ul li a:hover {
        background-color: rgba(99, 102, 241, 0.2) !important;
        transform: translateX(4px) scale(1.02) !important;
        color: rgba(255, 255, 255, 1) !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    }

    .dropdown-content ul li a i {
        margin-right: 14px !important;
        font-size: 18px !important;
        width: 20px !important;
        text-align: center !important;
    }
}

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

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu a {
    transition: all 0.2s ease;
}

.menu a:hover {
    transform: translateY(-1px);
}

.menu a.active {
    font-weight: 600;
    border-radius: 8px;
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth scroll offset for anchors */
html {
    scroll-padding-top: 100px;
}

/* footer */
footer {
    width: 100%;
    background-color: #333;
    color: #fff;
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
}

/* Mobile First Responsive Design */
@media (max-width: 480px) {
    body {
        padding-top: 75px;
    }

    /* Enhanced navbar for mobile */
    .navbar {
        height: 65px !important;
        min-height: 65px !important;
        padding: 0 0.75rem !important;
    }

    .navbar-start {
        min-width: 140px !important;
    }

    .navbar-start a {
        font-size: 1rem !important;
        gap: 6px !important;
    }

    .navbar-start i {
        font-size: 1.2rem !important;
    }

    /* Mobile hamburger menu */
    .btn-square {
        width: 44px !important;
        height: 44px !important;
    }

    /* Mobile user dropdown */
    .navbar-end .dropdown-content {
        right: -4px !important;
        left: auto !important;
        max-width: 180px !important;
        min-width: 160px !important;
    }

    .dropdown-content {
        left: -10px !important;
        transform: translateX(0) !important;
        width: calc(100vw - 32px) !important;
        max-width: 350px !important;
        border-radius: 20px !important;
        padding: 2rem 1.5rem !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        background: rgba(17, 24, 39, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        margin-top: 1rem !important;
    }

    .dropdown-content::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(
            145deg,
            rgba(99, 102, 241, 0.1),
            rgba(139, 69, 19, 0.05)
        ) !important;
        border-radius: 20px !important;
        z-index: -1 !important;
    }

    .dropdown-content li {
        margin: 8px 0 !important;
    }

    .dropdown-content li a {
        padding: 18px 16px !important;
        margin: 0 !important;
        border-radius: 16px !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .dropdown-content li a::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent
        ) !important;
        transition: left 0.5s ease !important;
    }

    .dropdown-content li a:hover::before {
        left: 100% !important;
    }

    .dropdown-content li a:hover {
        background-color: rgba(99, 102, 241, 0.25) !important;
        transform: translateX(6px) scale(1.02) !important;
        color: rgba(255, 255, 255, 1) !important;
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4) !important;
    }

    .dropdown-content li a i {
        width: 24px !important;
        text-align: center !important;
        margin-right: 16px !important;
        font-size: 20px !important;
        transition: transform 0.3s ease !important;
    }

    .dropdown-content li a:hover i {
        transform: scale(1.1) rotate(5deg) !important;
    }

    /* Special styling for submenu items */
    .dropdown-content details summary {
        padding: 18px 16px !important;
        margin: 8px 0 !important;
        border-radius: 16px !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .dropdown-content details summary:hover {
        background-color: rgba(99, 102, 241, 0.25) !important;
        transform: translateX(6px) !important;
        color: rgba(255, 255, 255, 1) !important;
    }

    .dropdown-content details ul {
        margin-top: 8px !important;
        padding-left: 0 !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 12px !important;
        padding: 8px !important;
    }

    .dropdown-content details ul li a {
        padding: 12px 20px !important;
        font-size: 15px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        margin: 2px 0 !important;
    }

    .dropdown-end .dropdown-content {
        right: -8px !important;
        left: auto !important;
    }

    nav {
        padding: 15px 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    nav li {
        margin-left: 0;
        margin-bottom: 5px;
        font-size: 16px;
        text-align: center;
    }

    nav a {
        padding: 12px;
        width: 100%;
    }

    header {
        padding: 60px 20px 40px;
        min-height: 50vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 0;
        position: relative;
        overflow: hidden;
    }

    header::before {
        background: rgba(0, 0, 0, 0.4) !important;
    }

    header h1 {
        font-size: 2rem;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
        line-height: 1.1;
        word-break: break-word;
        text-align: center;
        font-weight: 800;
        max-width: 95%;
        padding: 0 10px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        animation: fadeInUp 1s ease-out;
    }

    header h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        line-height: 1.2;
        text-align: center;
        font-weight: 500;
        max-width: 95%;
        padding: 0 10px;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
        animation: fadeInUp 1s ease-out 0.3s both;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 22px;
        line-height: 1.4;
        padding: 0 25px;
        text-align: center;
        max-width: 90%;
        opacity: 0.85;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        animation: fadeInUp 1s ease-out 0.6s both;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
        width: 100%;
        margin-top: 8px;
        animation: fadeInUp 1s ease-out 0.9s both;
    }

    .btn-primary,
    .btn-secondary {
        padding: 16px 32px;
        font-size: 1rem;
        width: 240px;
        max-width: 85vw;
        font-weight: 600;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        display: inline-block;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .btn-primary::before,
    .btn-secondary::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
        );
        transition: left 0.5s ease;
    }

    .btn-primary:hover::before,
    .btn-secondary:hover::before {
        left: 100%;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .content {
        padding: 25px 20px;
        max-width: 100%;
        margin: 20px auto 0;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(10px);
        border-radius: 20px 20px 0 0;
        position: relative;
    }

    .content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        margin-top: 8px;
    }

    .content h1 {
        font-size: 26px;
        margin-bottom: 18px;
        line-height: 1.3;
        font-weight: 700;
        color: #2d3748;
        text-align: left;
    }

    .content h2 {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.3;
        font-weight: 600;
        color: #4a5568;
        text-align: left;
    }

    .content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 18px;
        text-align: left;
        color: #4a5568;
    }

    .content ol {
        padding-left: 18px;
        margin-bottom: 18px;
    }

    .content ol li {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 10px;
        color: #4a5568;
    }

    .content a {
        color: #667eea;
        font-weight: 600;
        text-decoration: underline;
    }

    footer {
        padding: 25px 20px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) and (min-width: 420px) {
    body {
        padding-top: 70px;
    }

    nav {
        padding: 18px 20px;
    }

    nav ul {
        display: none;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    nav li {
        margin-left: 0;
        font-size: 17px;
    }

    header {
        padding: 120px 20px 100px;
        min-height: 45vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    header h1 {
        font-size: 3rem;
        letter-spacing: 1.5px;
    }

    header h2 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .content {
        padding: 0 20px;
    }

    .content h1 {
        font-size: 26px;
    }

    .content h2 {
        font-size: 21px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .content {
        padding: 0 30px;
    }

    header {
        padding: 140px 30px 110px;
        min-height: 50vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }
}

/* Large screens optimization */
@media (min-width: 1201px) {
    .content {
        padding: 0 40px;
    }

    header {
        padding: 160px 40px 130px;
        min-height: 55vh;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    header h1 {
        font-size: 4rem;
        letter-spacing: 3px;
    }

    header h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 50px;
    }

    .hero-buttons {
        gap: 25px;
    }

    .btn-primary,
    .btn-secondary {
        color: white;
        padding: 18px 35px;
        font-size: 1.1rem;
    }

    .content h1 {
        font-size: 32px;
    }

    .content h2 {
        font-size: 24px;
    }
}

/* Enhanced Quiz Modal Styles */
#quizModal {
    z-index: 10000;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#quizModal.modal-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

#quizModal .modal-box {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 1.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalEnhancedSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

#quizModal .modal-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    border-radius: 1.5rem 1.5rem 0 0;
    animation: gradientShift 3s ease infinite;
}

@keyframes modalEnhancedSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px) rotateX(20deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(0) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

@keyframes gradientShift {
    0%,
    100% {
        background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    }
    50% {
        background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8);
    }
}

/* Quiz Progress Bar */
#progressBar {
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

#progressBar::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: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Answer Options */
.answer-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.answer-option::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.answer-option:hover {
    border-color: #3b82f6;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.answer-option.correct {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    animation: correctAnswer 0.6s ease-out;
}

.answer-option.incorrect {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    animation: incorrectAnswer 0.6s ease-out;
}

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

@keyframes incorrectAnswer {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Answer Option Text */
.answer-option span {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
}

.answer-option.selected span {
    color: #1e40af;
    font-weight: 600;
}

.answer-option.correct span {
    color: #065f46;
    font-weight: 600;
}

.answer-option.incorrect span {
    color: #991b1b;
    font-weight: 600;
}

/* Answer Option Icons */
.answer-option::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    transition: all 0.3s ease;
}

.answer-option.selected::after {
    border-color: #3b82f6;
    background: #3b82f6;
    box-shadow: inset 0 0 0 3px white;
}

.answer-option.correct::after {
    content: "✓";
    border-color: #10b981;
    background: #10b981;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.answer-option.incorrect::after {
    content: "×";
    border-color: #ef4444;
    background: #ef4444;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Quiz Results Animation */
#quizResults {
    animation: resultsSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes resultsSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Score Icon Animation */
#scoreIcon {
    animation: scoreIconBounce 1s ease-out 0.3s both;
}

@keyframes scoreIconBounce {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(-10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Score Statistics */
.bg-blue-50,
.bg-green-50,
.bg-red-50 {
    transition: all 0.3s ease;
}

.bg-blue-50:hover {
    background-color: #dbeafe !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.bg-green-50:hover {
    background-color: #dcfce7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.bg-red-50:hover {
    background-color: #fee2e2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Modal Backdrop Enhanced */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Button Enhancements for Quiz */
#startQuizBtn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

#startQuizBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

#startQuizBtn:hover::before {
    left: 100%;
}

#startQuizBtn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Navigation Buttons */
#prevBtn,
#nextBtn,
#submitBtn {
    min-width: 120px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

#nextBtn:disabled,
#prevBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Quiz Modal */
@media (max-width: 768px) {
    #quizModal .modal-box {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .answer-option {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    #questionText {
        font-size: 1.1rem !important;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    #prevBtn,
    #nextBtn,
    #submitBtn {
        min-width: 100px;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    #quizModal .modal-box {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .answer-option {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    #questionText {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    .flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem;
    }

    #prevBtn,
    #nextBtn,
    #submitBtn {
        width: 100%;
    }
}

/* Navbar Quiz Button */
#navbarQuizBtn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#navbarQuizBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

#navbarQuizBtn:hover::before {
    left: 100%;
}

#navbarQuizBtn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

#navbarQuizBtn:active {
    transform: translateY(0) scale(1.02);
    transition-duration: 0.1s;
}

/* Main Quiz Button Styling */
#startQuizBtn {
    position: relative;
    overflow: hidden;
}

#startQuizBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 0;
}

#startQuizBtn:hover::before {
    left: 100%;
}

#startQuizBtn i,
#startQuizBtn span {
    position: relative;
    z-index: 1;
}

/* Quiz Completion Message */
.quiz-completion-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.quiz-completion-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: completionSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

@keyframes completionSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quiz-completion-icon {
    font-size: 4rem;
    animation: celebrationBounce 1s ease-out;
}

@keyframes celebrationBounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }
    40%,
    43% {
        transform: translateY(-20px) scale(1.1);
    }
}

.quiz-completion-score {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.quiz-completion-countdown {
    color: #6b7280;
    font-size: 0.875rem;
    animation: pulse 1s infinite;
}

/* Quiz Navigation Buttons */
#prevBtn,
#nextBtn {
    min-width: 140px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

#prevBtn:disabled,
#nextBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

#submitBtn {
    min-width: 180px;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

#submitBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

#submitBtn:hover::before {
    left: 100%;
}

#submitBtn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

/* Main Quiz Button Container */
.w-full.flex.justify-center.items-center {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(79, 70, 229, 0.05) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.w-full.flex.justify-center.items-center:hover {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(79, 70, 229, 0.08) 100%
    );
    border-color: rgba(59, 130, 246, 0.2);
}

/* Interactive Quiz Enhancements */

/* Option Letters and Text */
.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

.answer-option.selected .option-letter {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1.1);
}

.answer-option.correct .option-letter {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: correctBounce 0.6s ease-out;
}

.answer-option.incorrect .option-letter {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: incorrectShake 0.6s ease-out;
}

/* Feedback Popup */
.feedback-popup {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: bold;
    font-size: 0.875rem;
    z-index: 10;
    animation: feedbackSlide 2s ease-out forwards;
}

.feedback-popup.correct {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feedback-popup.incorrect {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes feedbackSlide {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    20% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    80% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
}

@keyframes correctBounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: scale(1);
    }
    40%,
    43% {
        transform: scale(1.2);
    }
}

@keyframes incorrectShake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Explanation Box */
.explanation-box {
    animation: explanationSlide 0.5s ease-out;
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

@keyframes explanationSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timer Enhancements */
#quizTimer {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    animation: timerPulse 2s infinite;
}

@keyframes timerPulse {
    0%,
    100% {
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
    }
}

/* Streak Indicator */
#streakIndicator {
    animation: streakBounce 0.5s ease-out;
}

@keyframes streakBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Detailed Results */
.detailed-results {
    animation: resultsSlideUp 0.6s ease-out;
}

@keyframes resultsSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Level Badge */
.detailed-results .text-2xl {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: "Inter", sans-serif;
    font-weight: 800;
}

/* Review Mode Enhancements */
.quiz-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Modal Entrance Animation */
@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Confetti Canvas */
#confettiCanvas {
    animation: confettiShow 0.3s ease-out;
}

@keyframes confettiShow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Progress Bar Enhancement */
#progressBar {
    position: relative;
    overflow: hidden;
}

#progressBar::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: progressShine 2s infinite;
}

/* Mobile Enhancements for Interactive Features */
@media (max-width: 768px) {
    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-right: 0.75rem;
    }

    .feedback-popup {
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .explanation-box {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }

    .detailed-results .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    #startQuizBtn {
        min-width: 180px;
        font-size: 1rem !important;
        padding: 0.875rem 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .option-letter {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        margin-right: 0.5rem;
    }

    .option-text {
        font-size: 0.9rem;
    }

    .feedback-popup {
        position: static;
        margin-top: 0.5rem;
        transform: none;
        display: block;
        text-align: center;
    }

    .detailed-results .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    #quizTimer {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }

    #navbarQuizBtn {
        display: none !important;
    }

    #startQuizBtn {
        min-width: 160px;
        font-size: 0.95rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    #prevBtn,
    #nextBtn {
        min-width: 100px;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    #submitBtn {
        min-width: 140px;
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
    }

    .w-full.flex.justify-center.items-center {
        padding: 1rem 0.5rem;
        margin: 1rem 0;
    }
}

/* Enhanced Quiz System Styles */
.quiz-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.quiz-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.05) 0%,
        transparent 70%
    );
    animation: headerGlow 4s ease-in-out infinite;
    z-index: 0;
}

.quiz-header > * {
    position: relative;
    z-index: 1;
}

@keyframes headerGlow {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.quiz-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
    background-size: 200% 100%;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 4px;
    animation: progressGradient 3s ease infinite;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: progressShimmer 2s infinite;
    border-radius: 4px;
}

.progress-fill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border-radius: 4px;
}

@keyframes progressShimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes progressGradient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.question-counter {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-top: 0.75rem;
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(79, 70, 229, 0.1) 100%
    );
    border-radius: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: counterPulse 2s ease-in-out infinite;
}

@keyframes counterPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }
}

.quiz-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid rgba(59, 130, 246, 0.1);
    font-weight: 700;
    color: #475569;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.05),
        transparent
    );
    transition: left 0.5s;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat i {
    color: #3b82f6;
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
    animation: statIconPulse 2s ease-in-out infinite;
}

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

.question-container {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
}

.question-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: questionGlow 2s ease infinite;
}

@keyframes questionGlow {
    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.question-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    animation: questionFadeIn 0.6s ease-out;
}

@keyframes questionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: optionSlideIn 0.5s ease-out;
    animation-fill-mode: both;
}

.option-btn:nth-child(1) {
    animation-delay: 0.1s;
}
.option-btn:nth-child(2) {
    animation-delay: 0.2s;
}
.option-btn:nth-child(3) {
    animation-delay: 0.3s;
}
.option-btn:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes optionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.option-btn:hover::before {
    left: 100%;
}

.option-btn:hover {
    border-color: #3b82f6;
    background: linear-gradient(145deg, #f8faff 0%, #eff6ff 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 8px rgba(107, 114, 128, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

.option-btn.correct {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow:
        0 8px 25px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.2);
    animation: correctPulse 0.8s ease-out;
    transform: translateY(-2px) scale(1.02);
}

.option-btn.correct .option-label {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow:
        0 4px 8px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: correctBounce 0.8s ease-out;
}

.option-btn.correct .option-text {
    color: #065f46;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(6, 95, 70, 0.1);
}

.option-btn.incorrect {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    box-shadow:
        0 8px 25px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.2);
    animation: incorrectShake 0.8s ease-out;
}

.option-btn.incorrect .option-label {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow:
        0 4px 8px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: incorrectShake 0.8s ease-out;
}

.option-btn.incorrect .option-text {
    color: #991b1b;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(153, 27, 27, 0.1);
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes correctBounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: scale(1);
    }
    40%,
    43% {
        transform: scale(1.15);
    }
}

@keyframes incorrectShake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-3px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(3px);
    }
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    background: linear-gradient(145deg, #f8faff 0%, #eff6ff 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25);
}

.nav-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.nav-btn:hover:not(:disabled)::before {
    left: 100%;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.prev-btn {
    color: #6b7280;
}

.next-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
    background-size: 200% 100%;
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    animation: nextBtnGradient 3s ease infinite;
}

@keyframes nextBtnGradient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #2563eb 100%);
    background-size: 200% 100%;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
}

/* Results Container */
.results-container {
    text-align: center;
    animation: resultsSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resultsSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.results-header {
    margin-bottom: 2rem;
}

.score-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow:
        0 15px 35px rgba(59, 130, 246, 0.4),
        0 5px 15px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: scoreCountUp 1.2s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: scoreRotate 3s linear infinite;
}

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

@keyframes scoreCountUp {
    from {
        transform: scale(0) rotate(-180deg);
    }
    to {
        transform: scale(1) rotate(0deg);
    }
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    animation: levelBadgeSlide 0.8s ease-out 0.6s both;
}

@keyframes levelBadgeSlide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: statCardSlide 0.6s ease-out calc(var(--delay, 0) * 0.1s) both;
}

.stat-card:nth-child(1) {
    --delay: 1;
}
.stat-card:nth-child(2) {
    --delay: 2;
}
.stat-card:nth-child(3) {
    --delay: 3;
}
.stat-card:nth-child(4) {
    --delay: 4;
}
.stat-card:nth-child(5) {
    --delay: 5;
}

@keyframes statCardSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

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

.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    min-width: 140px;
    justify-content: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.action-btn.secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.action-btn.secondary:hover {
    border-color: #3b82f6;
    background: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.action-btn.danger {
    background: #ef4444;
    color: white;
}

.action-btn.danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.motivational-message {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #7dd3fc;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 2rem;
    color: #0c4a6e;
    font-weight: 600;
    animation: messageSlide 0.8s ease-out 1s both;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feedback Popup */
.feedback-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border: 3px solid;
    border-radius: 1.5rem;
    padding: 1.5rem 2.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    z-index: 10000;
    animation: feedbackEnhancedBounce 2s ease-out forwards;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feedback-popup.success {
    border-color: #10b981;
    color: #065f46;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.feedback-popup.error {
    border-color: #ef4444;
    color: #991b1b;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
}

@keyframes feedbackEnhancedBounce {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    30% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-2deg);
    }
    45% {
        transform: translate(-50%, -50%) scale(1.05) rotate(1deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7) rotate(-5deg);
    }
}

/* Enhanced Timer Styles */
#timer {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #92400e;
    box-shadow:
        0 8px 25px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: timerPulse 1s ease-in-out infinite;
    transition: all 0.3s ease;
}

#timer.warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #dc2626;
    animation: timerWarning 0.5s ease-in-out infinite;
    box-shadow:
        0 8px 25px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes timerPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 8px 25px rgba(245, 158, 11, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 12px 35px rgba(245, 158, 11, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes timerWarning {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow:
            0 8px 25px rgba(239, 68, 68, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    25% {
        transform: scale(1.08) rotate(-2deg);
    }
    75% {
        transform: scale(1.08) rotate(2deg);
    }
    50% {
        box-shadow:
            0 15px 40px rgba(239, 68, 68, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Loading States */
.quiz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 6px solid #e5e7eb;
    border-top: 6px solid #3b82f6;
    border-radius: 50%;
    animation: spinnerRotate 1s linear infinite;
    margin-bottom: 2rem;
    position: relative;
}

.loading-spinner::after {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid transparent;
    border-top: 2px solid #1d4ed8;
    border-radius: 50%;
    animation: spinnerRotate 1.5s linear infinite reverse;
}

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

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    animation: loadingPulse 2s ease-in-out infinite;
}

.loading-subtext {
    font-size: 1rem;
    color: #6b7280;
    animation: loadingFade 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes loadingFade {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Enhanced Confetti Animation */
.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    animation: confettiFall 3s linear forwards;
    z-index: 10000;
    border-radius: 2px;
}

.confetti:nth-child(odd) {
    background: linear-gradient(45deg, #f59e0b, #eab308);
    animation-duration: 3.5s;
}

.confetti:nth-child(3n) {
    background: linear-gradient(45deg, #10b981, #059669);
    animation-duration: 2.8s;
}

.confetti:nth-child(4n) {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    animation-duration: 3.2s;
}

.confetti:nth-child(5n) {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    animation-duration: 2.9s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-25vh) rotate(90deg) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translateY(0vh) rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    75% {
        transform: translateY(25vh) rotate(270deg) scale(0.9);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

/* Review Container */
.review-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.review-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.review-item.correct {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.review-item.incorrect {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fef7f7);
}

.review-question {
    margin-bottom: 1rem;
}

.review-answer {
    margin-bottom: 1rem;
}

.user-answer,
.correct-answer {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.user-answer .correct {
    color: #065f46;
}

.user-answer .incorrect {
    color: #991b1b;
}

.correct-answer .correct {
    color: #065f46;
}

.explanation {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    font-style: italic;
    color: #1e40af;
}

.review-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .quiz-header {
        padding: 1rem;
    }

    .quiz-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .question-container {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.125rem;
    }

    .option-btn {
        padding: 0.875rem 1rem;
    }

    .option-label {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-right: 0.75rem;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-btn {
        width: 100%;
        min-width: auto;
    }

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

    .score-number {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .results-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .quiz-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .question-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .question-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .option-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .option-label {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        margin-right: 0.5rem;
    }

    .score-circle {
        width: 80px;
        height: 80px;
    }

    .score-number {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .review-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .feedback-popup {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Komponen Layout Responsive */
@media (max-width: 640px) {
    .grid-cols-1.sm\:grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .max-w-xs {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .grid-cols-1.sm\:grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-1.sm\:grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
    }
}

@media (min-width: 1025px) {
    .grid-cols-1.sm\:grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5 {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 2rem !important;
    }
}

/* Kartu komponen responsive */
.komponen-card {
    width: 100%;
    max-width: 280px;
    min-height: 400px;
}

@media (max-width: 480px) {
    .komponen-card {
        max-width: 100%;
        margin: 0 auto 1.5rem auto;
    }

    .bg-gradient-to-br.from-blue-50.to-indigo-100 {
        padding: 2rem 1rem !important;
    }
}
