/* Modern Professional Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

:root {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --secondary: #f97316;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #fef7f7;
    --border: #fecaca;
    --text: #374151;
    --text-light: #6b7280;
    --shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(239, 68, 68, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fdf2f8;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-steps {
    display: flex;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step.active {
    color: var(--primary);
}

.step.active span {
    background: var(--primary);
    color: white;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Onboarding Styles */
.onboarding-section {
    
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.onboarding-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.onboarding-content {
    max-width: 650px;
    margin: 0 auto;
    align-items: start;
}

.chat-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.message {
    margin-bottom: 1.5rem;
    animation: slideInMessage 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInMessage {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-message .message-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1.5rem;
    border-radius: 20px 20px 20px 5px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.bot-avatar {
    font-size: 2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.user-message {
    text-align: right;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 5px 20px;
    display: inline-block;
    max-width: 80%;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    position: relative;
}

.user-message .message-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.option-btn::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.6s;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: containerFadeIn 0.8s ease;
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chip {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: var(--text);
    border: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chip::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.5s;
}

.chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

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

.chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
    animation: chipSelect 0.3s ease;
}

@keyframes chipSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: translateY(-3px) scale(1.05); }
}

.option-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
}

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

.option-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.option-btn.multi-select {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.option-btn.multi-select.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary-dark);
}

.option-btn.multi-select:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* AI Mentor Styles */
.mentor-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.mentor-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.mentor-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.mentor-chat {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mentor-chat input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.3s ease;
}

.mentor-chat input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mentor-chat input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.mentor-chat button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mentor-chat button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mentor-chat button:hover {
    background: rgba(226, 132, 100, 0.3);
}

.mentor-response {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    min-height: 60px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: responseAppear 0.5s ease;
}

@keyframes responseAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Animations */
.typing-indicator {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Smooth page transitions */
.page-transition {
    animation: pageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Question Navigator */
.question-navigator {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.navigator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.navigator-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.legend .dot.current {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.legend .dot.answered {
    background: #10b981;
    border-color: #10b981;
}

.legend .dot.unanswered {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.navigator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.question-dot {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.question-dot:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.question-dot.current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: currentPulse 2s infinite;
}

.question-dot.answered {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.question-dot.unanswered {
    background: #f9fafb;
    color: var(--text-light);
    border-color: #e5e7eb;
}

.question-dot.unanswered:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

@keyframes currentPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
    }
}

/* Enhanced button hover effects */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::after {
    width: 300px;
    height: 300px;
}

/* Loading states */
.loading-pulse {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

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

.modal-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.hero-stats {
    display: none;
}

.stat {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Cards */
.section-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.6s ease;
}

.section-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 25px 50px rgba(239, 68, 68, 0.15);
}

.section-card.active::before {
    left: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--primary);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(249, 115, 22, 0.03));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.08));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2);
}

.upload-area:hover::before {
    opacity: 1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(0.8) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.2) rotate(360deg); opacity: 0; }
}

.upload-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.upload-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.upload-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.upload-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s;
}

.btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    transform: translateY(0);
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

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

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Timer Widget */
.timer-widget {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    z-index: 50;
}

/* Proctoring Widget */
.proctoring-widget {
    position: fixed;
    top: 100px;
    left: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    z-index: 50;
    width: 250px;
    transition: all 0.3s ease;
}

.proctoring-widget.minimized {
    height: 60px;
    overflow: hidden;
}

.proctoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px 15px 0 0;
}

#camera-status {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.minimize-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.minimize-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.proctoring-video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #000;
}

.proctoring-info {
    padding: 0.75rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(249, 115, 22, 0.03));
    border-radius: 0 0 15px 15px;
}

.proctoring-info small {
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.timer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-content i {
    font-size: 1.5rem;
    color: var(--primary);
}

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

#timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.timer-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.timer-warning {
    background: linear-gradient(135deg, var(--danger), #dc2626) !important;
    color: white !important;
    animation: pulse 1s infinite;
}

/* Assessment */
.assessment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.assessment-info h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.question-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.question-counter {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    color: var(--text);
}

.difficulty-badge {
    background:linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-section {
    text-align: right;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.progress {
    width: 200px;
    height: 8px;
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.skills-display {
    background:linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
}

/* Questions */
.questions-area {
    margin: 2rem 0;
}

.assessment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.assessment-actions .btn-primary,
.assessment-actions .btn-secondary {
    width: auto;
}

.rules-content {
    margin: 2rem 0;
    line-height: 1.8;
    color: var(--text-light);
}

.rules-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.rules-content ul {
    list-style-position: inside;
    padding-left: 0.5rem;
    margin-bottom: 1.5rem;
}

.rules-content li {
    margin-bottom: 0.75rem;
}

.rules-content li strong {
    color: var(--text);
}

.rules-actions { text-align: center; margin-top: 2rem; }

/* Review Screen Styles */
.review-question {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease-in-out;
}

.review-question:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.review-question-content {
    flex: 1;
}

.review-question-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.review-question-content .selected-answer {
    color: var(--dark);
    font-weight: 500;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.review-question-content .unanswered {
    color: var(--danger);
    font-weight: 600;
}

.review-actions {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.question {
    background: var(--light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.question:hover {
    box-shadow: var(--shadow);
}

.question h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.option {
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Results */
.results-display {
    margin: 2rem 0;
}

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

.result-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.result-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

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

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.score-total {
    font-size: 1rem;
    color: var(--text-light);
}

.level-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.beginner {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.level-badge.intermediate {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.level-badge.advanced {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.analysis-section {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.strengths-section, .weaknesses-section, .gaps-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
}

.strengths-section {
    border-left-color: #10b981;
}

.weaknesses-section {
    border-left-color: #f59e0b;
}

.gaps-section {
    border-left-color: #ef4444;
}

.analysis-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.skill-tag.strength {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.skill-tag.weakness {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.skill-tag.gap {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.field-selection h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--dark);
}

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

.field-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.field-card:hover, .field-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Enhanced Styles */
.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-badge {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.question-number {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.options-grid {
    display: grid;
    gap: 0.75rem;
}

.option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.option label {
    cursor: pointer;
    flex: 1;
}

.results-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    margin: 2rem 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--score-color) 0deg, var(--score-color) calc(var(--percentage, 0) * 3.6deg), var(--light) calc(var(--percentage, 0) * 3.6deg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
}

.score-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    z-index: 1;
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-light);
    z-index: 1;
}

.results-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.result-item i {
    color: var(--secondary);
    font-size: 1.25rem;
}

.field-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.field-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.field-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.roadmap-overview {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-radius: 15px;
}

.field-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.level-badge {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.roadmap-timeline {
    position: relative;
    margin: 2rem 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.roadmap-level {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    margin-left: 4rem;
    box-shadow: var(--shadow);
    position: relative;
}

.roadmap-level::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.roadmap-level.intermediate::before {
    background: var(--warning);
    box-shadow: 0 0 0 3px var(--warning);
}

.roadmap-level.advanced::before {
    background: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.level-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.level-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.timeline {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.roadmap-level ul {
    list-style: none;
    padding-left: 0;
}

.roadmap-content {
    padding: 1rem 0;
}

.topic {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

#roadmap-content-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.roadmap-display.blurred {
    filter: none;
    -webkit-filter: none;
    pointer-events: auto;
    opacity: 1;
    transition: all 0.3s ease;
}

#roadmap-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 25px;
    z-index: 10;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
    min-width: 400px;
    animation: overlayAppear 0.5s ease;
}

@keyframes overlayAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.lock-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: lockPulse 2s infinite;
}

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

.lock-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lock-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 350px;
}

.lock-content .btn-primary {
    width: auto;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.subtopic {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0.25rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    line-height: 1.4;
    position: relative;
}

.subtopic::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.skills-recommendation {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    border-radius: 15px;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.skills-recommendation h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.resume-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.resume-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-section ul {
    list-style: none;
    padding-left: 0;
}

.resume-section li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.context-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: white;
    color: var(--secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid var(--secondary);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--secondary);
    color: white;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.modal-icon.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.warning-text {
    color: var(--danger);
    font-weight: 600;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

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

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

/* Footer */
.footer {
    background: #f8fafc;
    color: var(--text);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.footer-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-steps { display: none; }
    .logo { height: 30px; }
    .onboarding-content { grid-template-columns: 1fr; gap: 1rem; }
    .mentor-chat { flex-direction: column; }
    .hero-content h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .assessment-header { flex-direction: column; gap: 1rem; }
    .timer-widget { position: relative; top: auto; right: auto; margin: 1rem 0; }
    .results-card { flex-direction: column; gap: 2rem; }
    .roadmap-timeline::before { display: none; }
    .roadmap-level { margin-left: 0; }
    .roadmap-level::before { display: none; }
    .container { padding: 1rem; }
    .section-card { padding: 1.5rem; }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-divider {
        display: none;
    }
}