/* =========================================
   The Rankers Vision - Mock Test CSS (Fixed UI)
   ========================================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #0f172a; 
    color: #e2e8f0;
}

.header {
    background: #1a237e; 
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-bottom: 3px solid #ff6b6b; 
}
.header h1 { margin: 5px 0 0 0; color: #ffffff; font-size: 24px; }
.header p { margin: 0; color: #cbd5e1; font-size: 14px; }
.candidate { text-align: right; }
.candidate h2 { margin: 5px 0; color: #ffffff; font-size: 20px; }

.screen { padding: 30px; }
.hidden { display: none !important; }

.container {
    width: 100%;
    max-width: 600px;
    margin: 60px auto;
    background: #1e293b;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-align: center;
    border: 1px solid #334155;
    position: relative; /* For back buttons */
}
.container h1, .container h2 { color: #ffffff; margin-bottom: 20px; }
.container ul { font-size: 16px; line-height: 1.8; color: #cbd5e1; text-align: left; display: inline-block;}

/* INPUTS & SELECT */
select {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: white;
    outline: none;
    font-size: 16px;
}

/* BUTTONS FIX - RESTORED PREMIUM COLORS */
button {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #3b82f6; /* DEFAULT BLUE COLOR RESTORED */
    color: white;
}
button:hover { transform: translateY(-2px); }

#proceed-btn { background: #1a237e; padding: 14px 30px; font-size: 16px; width: 80%; }
#start-exam-btn { background: #22c55e; padding: 14px 30px; font-size: 16px; }
#start-exam-btn:hover { background: #16a34a; }

/* PRO BACK BUTTON (UGEE DASHBOARD WALA) */
.back-btn-pro {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 15px;
    background-color: #334155; 
    color: white;
    border: 1px solid #475569;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.back-btn-pro:hover { background-color: #475569; border-color: #94a3b8; }

/* QUIZ LAYOUT */
.main-layout { display: flex; gap: 25px; max-width: 1400px; margin: 0 auto; }
.palette { width: 280px; background: #1e293b; padding: 20px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px; height: fit-content; border: 1px solid #334155; align-content: flex-start; }
.palette button { width: 45px; height: 45px; border-radius: 8px; background: #334155; border: 1px solid #475569; padding: 0; }
.palette button.active { background: #22c55e !important; border-color: #16a34a !important; }
.palette button.marked { background: #f59e0b !important; border-color: #d97706 !important; }
.palette button.current { background: #1a237e !important; border-color: #3b82f6 !important; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

.quiz-content { flex: 1; display: flex; flex-direction: column; }
.top-bar { display: flex; justify-content: space-between; background: #1e293b; padding: 15px 25px; border-radius: 10px; font-size: 20px; font-weight: bold; border: 1px solid #334155; color: #ff6b6b; }
#question-count { color: #3b82f6; }
.question-box { background: #1e293b; padding: 30px; margin-top: 20px; border-radius: 10px; font-size: 20px; border: 1px solid #334155; min-height: 150px; }
.options-box button { display: block; width: 100%; margin: 15px 0; padding: 18px 25px; background: #334155; border: 1px solid #475569; border-radius: 8px; text-align: left; font-size: 16px; }
.options-box button:hover { background: #475569; }
.options-box button.selected { background: #1a237e !important; border-color: #3b82f6 !important; box-shadow: 0 0 10px rgba(26, 35, 126, 0.5); }

.action-buttons { margin-top: 30px; display: flex; justify-content: space-between; gap: 15px; }
#mark-btn { background: #f59e0b; }
#clear-response-btn { background: transparent; color: #ef4444; border: 1px solid #ef4444; }
#clear-response-btn:hover { background: rgba(239, 68, 68, 0.1); }
#next-btn { background: #22c55e; flex-grow: 1; }

@media (max-width: 768px) {
    .header { flex-direction: column; text-align: center; gap: 10px; }
    .candidate { text-align: center; }
    .main-layout { flex-direction: column-reverse; }
    .palette { width: 100%; justify-content: center; }
    .action-buttons { flex-direction: column; }
    .container { padding-top: 80px; }
    .back-btn-pro { position: static; margin-bottom: 20px; width: 100%; justify-content: center; }
}