:root {
  --primary: #0056b3;
  --primary-dark: #003d80;
  --secondary: #6c757d;
  --mech-color: #d9534f;
  --elec-color: #f0ad4e;
  --success: #28a745;
  --danger: #dc3545;
  --light-bg: #f4f6f9;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border: #e0e0e0;
}

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  padding: 20px;
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.header {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-badge {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.header h1 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.host-info {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.host-tag {
  background: #e8f4fd;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  margin-right: 8px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 4px;
}

/* Steps Navigation */
.nav-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 15px 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
}

.step-item.active {
  color: var(--primary);
  font-weight: 700;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

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

.step-line {
  flex: 1;
  height: 2px;
  background: #e9ecef;
  margin: 0 10px;
}

/* Main Card */
.main-card {
  background: white;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  min-height: 520px;
}

.screen-section {
  display: none;
}

.screen-section.active {
  display: block;
}

.section-title {
  margin-bottom: 25px;
  border-bottom: 2px solid #f1f3f5;
  padding-bottom: 15px;
}

.section-title h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  font-weight: 500;
  font-size: 0.9rem;
}

.req {
  color: var(--danger);
}

input, select, textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e9ecef;
  color: #495057;
}

.btn-secondary:hover {
  background: #dee2e6;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #bd2130;
}

.btn-success {
  background: var(--success);
  color: white;
  font-size: 1.05rem;
  padding: 14px 28px;
}

.btn-success:hover {
  background: #218838;
}

.btn-mech {
  background: #c9302c;
  color: white;
}

.btn-mech:hover {
  background: #ac2925;
}

.btn-elec {
  background: #ec971f;
  color: white;
}

.btn-elec:hover {
  background: #d58512;
}

/* Test Selection */
.candidate-summary-badge {
  background: #f8f9fa;
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.test-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.test-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.test-card-header {
  padding: 18px 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-card-header.mech-theme {
  background: linear-gradient(135deg, #d9534f, #c9302c);
}

.test-card-header.elec-theme {
  background: linear-gradient(135deg, #f0ad4e, #ec971f);
}

.test-card-header h3 {
  font-size: 1.05rem;
}

.test-card-header small {
  font-size: 0.8rem;
  opacity: 0.9;
}

.test-card-header .icon {
  font-size: 1.8rem;
}

.test-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.test-card-body ul {
  list-style: none;
  margin-bottom: 20px;
}

.test-card-body li {
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 0.9rem;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e9ecef;
  color: #495057;
}

.badge.done {
  background: #d4edda;
  color: #155724;
}

.policy-callout {
  background: #e8f4fd;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 16px 20px;
  color: #004085;
  font-size: 0.9rem;
}

.policy-callout h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* Test Room */
.test-live-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #212529;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.test-live-bar h3 {
  font-size: 1.1rem;
}

.test-live-bar p {
  font-size: 0.85rem;
  color: #adb5bd;
}

.timer-box {
  text-align: right;
}

.timer-box span {
  font-size: 0.8rem;
  color: #ced4da;
}

.timer-display {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffc107;
  font-family: monospace;
}

.question-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.tracker-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  background: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.tracker-btn.active {
  border-color: var(--primary);
  background: #e8f4fd;
  color: var(--primary);
}

.tracker-btn.answered {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.question-content-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  background: #fafafa;
}

.q-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

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

.q-module {
  background: #e9ecef;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #495057;
}

.q-text {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 25px;
  line-height: 1.5;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opt-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.opt-label:hover {
  background: #f1f8ff;
  border-color: #b8daff;
}

.opt-label input[type="radio"] {
  width: 18px;
  height: 18px;
}

.test-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

/* Practical Scoring Screen */
.practical-timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.criteria-group {
  margin-bottom: 25px;
}

.criteria-group-title {
  background: #e2e8f0;
  padding: 10px 16px;
  border-left: 4px solid var(--primary);
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 10px;
  border-radius: 4px;
}

.criteria-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.criteria-table th, .criteria-table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.criteria-table th {
  background: #f8fafc;
}

.practical-total-box {
  background: #f0fdf4;
  border: 2px dashed #86efac;
  padding: 18px;
  border-radius: 8px;
  text-align: right;
  margin-top: 15px;
}

.examiner-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
}

/* Results Screen */
.result-header {
  text-align: center;
  margin-bottom: 30px;
}

.congrats-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.score-box {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.score-box.highlight-box {
  background: #eef7ee;
  border-color: #c3e6cb;
}

.score-box h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.score-val {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.multiskill-alert {
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: none;
}

.multiskill-alert.active-bonus {
  display: block;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.multiskill-alert.no-bonus {
  display: block;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.salary-decision-card {
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 25px;
  background: #fdfdfd;
  margin-bottom: 30px;
}

.salary-decision-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.decision-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.decision-content th, .decision-content td {
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  text-align: left;
  font-size: 0.95rem;
}

.decision-content th {
  background: #f1f3f5;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 25px;
}
