/* Premium Corporate Light Theme Options */

.option-label {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 2px solid #e2e8f0; /* slate-200 */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.option-label:hover {
    background: #f8fafc; /* slate-50 */
    border-color: #cbd5e1; /* slate-300 */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0,0,0,0.05);
}

.option-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Radio Circle */
.option-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1; /* slate-300 */
    background-color: #ffffff;
    margin-right: 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Option Selected State (Prior to confirmation - Clean Modern Blue) */
.option-label:has(.option-input:checked),
.option-label.is-selected {
    background: #eff6ff !important; /* blue-50 */
    border-color: #3b82f6 !important; /* blue-500 */
    box-shadow: 0 4px 15px -3px rgba(37, 99, 235, 0.2) !important;
}

.option-input:checked ~ .option-radio,
.option-label.is-selected .option-radio {
    border-color: #2563eb !important; /* blue-600 */
    border-width: 6px !important; 
    background-color: #ffffff !important;
}

.option-label:has(.option-input:checked) .option-text,
.option-label.is-selected .option-text {
    color: #1e3a8a !important; /* blue-900 */
    font-weight: 700 !important;
}

/* Confirmed Correct State */
.option-label.is-correct {
    background: #ecfdf5 !important; /* emerald-50 */
    border-color: #10b981 !important; /* emerald-500 */
    box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.15) !important;
}
.option-label.is-correct .option-radio {
    border-color: #059669 !important; /* emerald-600 */
    border-width: 6px !important;
}
.option-label.is-correct .option-text {
    color: #065f46 !important; /* emerald-800 */
}

/* Confirmed Wrong State */
.option-label.is-wrong {
    background: #fef2f2 !important; /* red-50 */
    border-color: #ef4444 !important; /* red-500 */
    box-shadow: 0 4px 15px -3px rgba(239, 68, 68, 0.15) !important;
}
.option-label.is-wrong .option-radio {
    border-color: #dc2626 !important; /* red-600 */
    border-width: 6px !important;
}
.option-label.is-wrong .option-text {
    color: #991b1b !important; /* red-800 */
}

/* Text styles */
.option-text {
    font-size: 1.05rem;
    color: #475569; /* slate-600 */
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.option-input:checked ~ .option-label .option-text {
    color: #0f172a; /* slate-900 */
    font-weight: 700;
}

/* Enter animations */
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Quick Reorder Mode Red Border Animation */
@keyframes pulseRedBorder {
    0% {
        border-color: #ef4444 !important;
        background-color: #fef2f2 !important;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    }
    50% {
        border-color: #dc2626 !important;
        background-color: #fee2e2 !important;
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.35) !important;
    }
    100% {
        border-color: #ef4444 !important;
        background-color: #fef2f2 !important;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    }
}

.reorder-active-highlight {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: pulseRedBorder 0.6s ease-in-out infinite alternate !important;
    z-index: 10 !important;
    position: relative !important;
}

.reorder-dropzone-active {
    border: 2px dashed #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* Module Builder Polish */
[data-q-card] {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

[data-q-card]:hover {
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Corporate Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================== */
/* 360 WALKTHROUGH FULLSCREEN & HUD STYLES    */
/* ========================================== */
#walkthrough-container.is-fullscreen,
#walkthrough-container:fullscreen,
#walkthrough-container:-webkit-full-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #020617 !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

#walkthrough-container.is-fullscreen #walkthrough-top-bar,
#walkthrough-container:fullscreen #walkthrough-top-bar,
#walkthrough-container:-webkit-full-screen #walkthrough-top-bar {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    max-width: calc(100vw - 2rem) !important;
    z-index: 50 !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6) !important;
    border-radius: 1.25rem !important;
    padding: 0.875rem 1.25rem !important;
    color: #ffffff !important;
}

#walkthrough-container.is-fullscreen #wt-module-icon-box,
#walkthrough-container:fullscreen #wt-module-icon-box,
#walkthrough-container:-webkit-full-screen #wt-module-icon-box {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

#walkthrough-container.is-fullscreen #wt-module-title,
#walkthrough-container:fullscreen #wt-module-title,
#walkthrough-container:-webkit-full-screen #wt-module-title {
    color: #ffffff !important;
}

#walkthrough-container.is-fullscreen #wt-explored-counter,
#walkthrough-container:fullscreen #wt-explored-counter,
#walkthrough-container:-webkit-full-screen #wt-explored-counter {
    color: #f8fafc !important;
}

#walkthrough-container.is-fullscreen #wt-explored-badge-box,
#walkthrough-container:fullscreen #wt-explored-badge-box,
#walkthrough-container:-webkit-full-screen #wt-explored-badge-box {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

#walkthrough-container.is-fullscreen #wt-back-dashboard-btn,
#walkthrough-container:fullscreen #wt-back-dashboard-btn,
#walkthrough-container:-webkit-full-screen #wt-back-dashboard-btn {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}
#walkthrough-container.is-fullscreen #wt-back-dashboard-btn:hover,
#walkthrough-container:fullscreen #wt-back-dashboard-btn:hover,
#walkthrough-container:-webkit-full-screen #wt-back-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

#walkthrough-container.is-fullscreen #wt-proceed-quiz-btn,
#walkthrough-container:fullscreen #wt-proceed-quiz-btn,
#walkthrough-container:-webkit-full-screen #wt-proceed-quiz-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
}
#walkthrough-container.is-fullscreen #wt-proceed-quiz-btn:hover,
#walkthrough-container:fullscreen #wt-proceed-quiz-btn:hover,
#walkthrough-container:-webkit-full-screen #wt-proceed-quiz-btn:hover {
    background: #b91c1c !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.55) !important;
}

#walkthrough-container.is-fullscreen #walkthrough-pano-wrapper,
#walkthrough-container:fullscreen #walkthrough-pano-wrapper,
#walkthrough-container:-webkit-full-screen #walkthrough-pano-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
}

.tour-label {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 140ms ease;
}

.tour-label.is-visible {
    opacity: 1;
}

