/* Lie Detector - Neon Truth/Lie Theme */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    background: #121212;
    min-height: 100vh;
    color: #ffffff;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Cards */
.card {
    background: #1E1E2E;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #3d3d5c;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    color: white;
}

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

.card h1, .card h2, .card h3, .card p, .card span, .card div {
    color: white;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2979FF 0%, #00E676 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 121, 255, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary:hover:not(:disabled) {
    background: white;
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-1px);
}

/* Button Loading States */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading.hidden {
    display: none;
}

.btn-text {
    display: block;
}

.btn-loading:not(.hidden) ~ .btn-text {
    display: none;
}

/* Truth/Lie Choice Buttons */
.choice-button {
    flex: 1;
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.choice-button.truth {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.choice-button.truth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5);
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
}

.choice-button.truth.selected {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.8);
    animation: truthGlow 2s ease-in-out infinite alternate;
}

.choice-button.lie {
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}

.choice-button.lie:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.5);
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
}

.choice-button.lie.selected {
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.8);
    animation: lieGlow 2s ease-in-out infinite alternate;
}

@keyframes truthGlow {
    0% { box-shadow: 0 0 30px rgba(0, 230, 118, 0.8); }
    100% { box-shadow: 0 0 40px rgba(0, 230, 118, 1); }
}

@keyframes lieGlow {
    0% { box-shadow: 0 0 30px rgba(255, 23, 68, 0.8); }
    100% { box-shadow: 0 0 40px rgba(255, 23, 68, 1); }
}

/* Horizontal Choice Layout */
.choices-horizontal {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.choices-horizontal .choice-button {
    flex: 1;
}

/* Step Numbers */
.step-number {
    background: linear-gradient(135deg, #2979FF 0%, #00E676 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Form Elements */
input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #3d3d5c;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #1a1a2e;
    color: white;
}

input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

/* Error Messages */
.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

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

/* Questions Container - Single Card View */
.questions-container {
    margin-bottom: 100px; /* Space for fixed save button */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 500px;
    padding: 20px;
}

/* Single Question Container */
.single-question-container {
    margin-bottom: 40px;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.question-card-single {
    background: #1E1E2E;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border: 2px solid #3d3d5c;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
}

.question-card-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00E676 0%, #FFD600 50%, #FF1744 100%);
}

.question-card-single .question-header {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #121212;
    padding: 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.question-card-single .question-number {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: #121212;
}

.question-card-single .question-text {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    color: #121212;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.question-card-single .question-content {
    padding: 2rem;
    background: #1E1E2E;
}

/* Vertical Truth/Lie Button Layout */
.question-card-single .choices-horizontal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
}

.question-card-single .choice-button {
    flex: 1;
    padding: 24px 32px;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.question-card-single .choice-button.truth {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: #121212;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
}

.question-card-single .choice-button.truth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 230, 118, 0.4);
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
}

.question-card-single .choice-button.truth.selected {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.8);
    animation: truthGlow 2s ease-in-out infinite alternate;
    transform: scale(1.02);
}

.question-card-single .choice-button.truth.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #121212;
    color: #00E676;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.question-card-single .choice-button.lie {
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.3);
}

.question-card-single .choice-button.lie:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 23, 68, 0.4);
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
}

.question-card-single .choice-button.lie.selected {
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
    box-shadow: 0 0 40px rgba(255, 23, 68, 0.8);
    animation: lieGlow 2s ease-in-out infinite alternate;
    transform: scale(1.02);
}

.question-card-single .choice-button.lie.selected::after {
    content: '✗';
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    color: #FF1744;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.question-card-single .choice-button:active {
    transform: scale(0.98);
}

.question-card-single .choice-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes truthGlow {
    0% { box-shadow: 0 0 40px rgba(0, 230, 118, 0.8); }
    100% { box-shadow: 0 0 50px rgba(0, 230, 118, 1); }
}

@keyframes lieGlow {
    0% { box-shadow: 0 0 40px rgba(255, 23, 68, 0.8); }
    100% { box-shadow: 0 0 50px rgba(255, 23, 68, 1); }
}

@keyframes fadeInOut {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
    20% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1); 
    }
    80% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.9); 
    }
}

/* Dice Button */
.dice-container {
    position: absolute;
    bottom: -60px;
    right: 20px;
    z-index: 20;
}

.dice-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border: none;
    color: rgb(26, 26, 26);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.dice-btn:active {
    transform: scale(0.95);
}

.dice-btn i {
    animation: none;
    transition: transform 0.3s ease;
}

.dice-btn:hover i {
    animation: spin 0.5s ease-in-out;
}

.dice-btn.clicked i {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Final Card Styles */
.final-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.final-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 1rem;
}

.final-card p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.final-card .final-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.final-card .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.final-card .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Save Button */
.fixed.bottom-6 {
    z-index: 1000 !important;
}

/* Progress Bar */
.card {
    position: relative;
    z-index: 10;
}

/* Ensure progress section stays on top */
.mb-6 {
    position: relative;
    z-index: 10;
}

/* Share Button Styles */
.share-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.share-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.share-text {
    flex: 1;
}

/* Platform-specific colors */
.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.tiktok {
    background: #000000;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.messenger {
    background: #0084ff;
    color: white;
}

.share-btn.whatsapp-status {
    background: #25d366;
    color: white;
}

.share-btn.snapchat {
    background: #fffc00;
    color: black;
}

.questions-scroll {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

/* Question Card */
.question-card {
    width: 100%;
    max-width: 700px;
    min-height: 400px;
    background: #2d2d44;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #3d3d5c;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* .question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
} */


/* Question Header */
.question-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 24px 24px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* overflow: hidden; */
}

.question-header::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

/* .question-card:hover .question-header::before {
    transform: translateX(100%);
} */

.question-number {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    /* border: 2px solid rgba(255, 255, 255, 0.3); */
}

/* Question Delete Button */
.question-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.question-delete-btn:hover {
    background: #dc2626;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.question-dropdown-container {
    flex: 1;
    position: relative;
    overflow: visible;
}

.question-text {
    text-align: center;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    /* background: rgba(255, 255, 255, 0.1); */
    border-radius: 8px;
    /* border: 2px solid rgba(255, 255, 255, 0.2); */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.question-text:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.dropdown-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.question-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    max-height: 300px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.question-dropdown-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.question-dropdown-content {
    max-height: 300px;
    overflow-y: auto;
}

.question-dropdown-item {
    padding: 16px 20px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.question-dropdown-item:last-child {
    border-bottom: none;
}

.question-dropdown-item:hover {
    background: #f8f9fa;
    color: #111827;
}

.question-dropdown-item.selected {
    background: #ff6b35;
    color: white;
}

.question-dropdown-item.selected::before {
    content: '✓';
    font-weight: bold;
    color: white;
}



/* Question Content */
.question-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    flex: 1;
    justify-content: flex-start;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #3d3d5c;
    margin-bottom: 8px;
    /* border: 1px solid #4d4d6c; */
    position: relative;
}

.option-item:hover {
    background: #4d4d6c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.option-item.selected {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: transparent;
}

.option-radio.selected {
    border-color: white;
    background: white;
}

.option-radio.selected::after {
    content: '✓';
    width: 10px;
    height: 10px;
    background: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
}

.option-text {
    flex: 1;
    font-size: 16px;
    color: #f9fafb; /* Light text for dark backgrounds */
    font-weight: 500;
}

.option-remove {
    background: #ef4444;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.option-item:hover .option-remove {
    opacity: 1;
}

.option-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Add Option Button */
.add-option-btn {
    background: #3d3d5c;
    border: 2px dashed #6b7280;
    color: #9ca3af;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
}

.add-option-btn:hover {
    background: #4d4d6c;
    border-color: #9ca3af;
    color: white;
}

/* Add Question Button as Card */
.add-question-card {
    width: 100%;
    max-width: 700px;
    min-height: 400px;
    margin: 0 auto;
    background: #2d2d44;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 2px dashed #3d3d5c;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.add-question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
    border-color: #ff6b35;
    background: #3d3d5c;
}

.add-question-card.disabled {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    cursor: not-allowed;
    opacity: 0.6;
}

.add-question-card.disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.add-question-icon {
    font-size: 64px;
    color: #6b7280;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.add-question-card:hover .add-question-icon {
    color: #ff6b35;
    transform: scale(1.1);
}

.add-question-text {
    color: #6b7280;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.add-question-card:hover .add-question-text {
    color: white;
}

/* Quiz Taking Styles */
.quiz-option {
    background: #2d2d44;
    border: 2px solid #4a4a6b;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Creator name highlighting in questions */
.creator-name-highlight {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.quiz-option:hover {
    border-color: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    background: #3d3d5c;
}

.quiz-option.correct {
    border-color: #059669;
    background: #064e3b;
    animation: correctAnswer 0.8s ease-out;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.4);
}

.quiz-option.correct .option-text {
    color: #059669;
}

.quiz-option.incorrect {
    border-color: #dc2626;
    background: #7f1d1d;
    animation: incorrectAnswer 1.0s ease-out;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.4);
}

.quiz-option.incorrect .option-text {
    color: #dc2626;
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    25% { transform: scale(1.03); }
    50% { transform: scale(0.98); }
    75% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

@keyframes incorrectAnswer {
    0% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-3px) rotate(-1deg); }
    20% { transform: translateX(3px) rotate(1deg); }
    30% { transform: translateX(-2px) rotate(-0.5deg); }
    40% { transform: translateX(2px) rotate(0.5deg); }
    50% { transform: translateX(-1px) rotate(-0.25deg); }
    60% { transform: translateX(1px) rotate(0.25deg); }
    70% { transform: translateX(-0.5px) rotate(-0.1deg); }
    80% { transform: translateX(0.5px) rotate(0.1deg); }
    90% { transform: translateX(-0.25px) rotate(-0.05deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.quiz-option.disabled {
    pointer-events: none;
    /* Remove opacity dimming to keep options visually clear */
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: #f9fafb;
}

.leaderboard-rank {
    background: #6b7280;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.leaderboard-rank.rank-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.leaderboard-rank.rank-2 { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); }
.leaderboard-rank.rank-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }

.leaderboard-name {
    flex: 1;
    font-weight: 500;
    /* color: #374151 !important; Override global card text color */
}

.leaderboard-score {
    font-weight: 700;
    color: #8b5cf6 !important; /* Override global card text color */
}

.leaderboard-view-btn {
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaderboard-view-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Answer Item in Modal */
.answer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.answer-item.correct {
    background: #ecfdf5;
    border: 1px solid #059669;
}

.answer-item.incorrect {
    background: #fef2f2;
    border: 1px solid #dc2626;
}

.answer-question {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.answer-selected {
    color: #6b7280;
    font-size: 14px;
}

.answer-correct {
    color: #059669;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .question-card {
        min-width: 280px;
        width: 280px;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .question-card {
        min-width: 260px;
        width: 400px;
    }
    
    .questions-scroll {
        padding: 12px 0;
        gap: 12px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.w-full {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.mr-2 {
    margin-right: 8px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

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

/* App Banner Styles */
.app-banner {
    transition: all 0.3s ease;
}

.app-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.app-banner .group:hover {
    transform: scale(1.02);
}

/* Save Button Wobble Animation */
@keyframes wobble {
    0% { transform: translateX(0); }
    15% { transform: translateX(-5px) rotate(-5deg); }
    30% { transform: translateX(5px) rotate(3deg); }
    45% { transform: translateX(-3px) rotate(-3deg); }
    60% { transform: translateX(2px) rotate(2deg); }
    75% { transform: translateX(-1px) rotate(-1deg); }
    100% { transform: translateX(0); }
}

.save-btn-wobble {
    animation: wobble 0.8s ease-in-out;
}
