/**
 * Main CBT Exam Styles
 * File #151 of 300
 * Matches: cbt final.htm (Exam Interface Layout)
 */

/* Reset & Base */
.cbt-exam-page * { box-sizing: border-box; margin: 0; padding: 0; }
.cbt-exam-page { font-family: Arial, sans-serif; font-size: 14px; background: #f5f5f5; height: 100vh; overflow: hidden; }

/* Header (cbt final.htm) */
.cbt-header {
    background: #6a1b9a;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}
.cbt-header-left { display: flex; align-items: center; gap: 20px; }
.cbt-exam-title { font-weight: bold; font-size: 16px; }
.cbt-section-tabs { display: flex; gap: 5px; }
.cbt-section-tab {
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-size: 13px;
}
.cbt-section-tab.active { background: white; color: #6a1b9a; font-weight: bold; }
.cbt-header-right { display: flex; align-items: center; gap: 15px; }
.cbt-timer-label { font-size: 13px; }
.cbt-timer {
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    min-width: 100px;
    text-align: center;
    font-family: monospace;}
.cbt-timer.warning { background: #ffc107; }
.cbt-timer.danger { background: #dc3545; color: white; }

/* Main Layout */
.cbt-main {
    display: flex;
    height: calc(100vh - 60px);
    margin-top: 60px;
}

/* Question Panel */
.cbt-question-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
}

/* Candidate Info Bar (cbt final.htm) */
.cbt-candidate-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.cbt-candidate-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #6a1b9a;
}
.cbt-candidate-details { flex: 1; }
.cbt-candidate-name { font-weight: bold; font-size: 16px; color: #333; }
.cbt-question-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}
.cbt-question-info span { margin-right: 15px; }

/* Question Display */
.cbt-question-container {
    background: #fff;    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    min-height: 200px;
}
.cbt-question-number {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}
.cbt-question-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Options */
.cbt-options { list-style: none; }
.cbt-options li {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cbt-options li:hover { background: #f5f5f5; }
.cbt-options li.selected { background: #e3f2fd; border-color: #6a1b9a; }
.cbt-options input { margin-right: 10px; }

/* Navigation Buttons */
.cbt-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
}
.cbt-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.cbt-btn-primary { background: #6a1b9a; color: white; }
.cbt-btn-secondary { background: #e0e0e0; color: #333; }
.cbt-btn-success { background: #28a745; color: white; }
.cbt-btn-warning { background: #ffc107; color: #333; }
.cbt-btn-danger { background: #dc3545; color: white; }

/* Palette Panel */
.cbt-palette-panel {
    width: 320px;
    background: #fff;
    border-left: 2px solid #ddd;
    padding: 15px;
    overflow-y: auto;
}

/* Collapse Palette */
.cbt-collapse .cbt-palette-panel { display: none; }
.cbt-toggle-palette {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #6a1b9a;
    color: white;
    padding: 10px 5px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    .cbt-main { flex-direction: column; }
    .cbt-palette-panel { width: 100%; height: 200px; border-left: none; border-top: 2px solid #ddd; }
    .cbt-buttons { flex-direction: column; }
    .cbt-btn { width: 100%; }
}