/* ========================================================
   Quantex Assessment & Recruitment Portal - Custom Stylesheet
   ======================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Logo styling */
.brand-logo-img {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 6px;
}

/* Code editor styling */
.editor-container {
  display: flex;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  font-family: "Fira Code", Consolas, Monaco, "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #334155;
  min-height: 380px;
}

.line-numbers {
  padding: 12px 10px;
  color: #64748b;
  background-color: #18181b;
  user-select: none;
  text-align: right;
  border-right: 1px solid #27272a;
  font-size: 13px;
}

.code-textarea {
  flex: 1;
  background-color: #1e1e1e;
  color: #f8fafc;
  border: none;
  padding: 12px 16px;
  resize: vertical;
  outline: none;
  white-space: pre;
  tab-size: 2;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  min-height: 380px;
}

/* Stepper styles */
.stepper-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.step-circle.active {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-circle.completed {
  background-color: #10b981;
  color: white;
}

.step-circle.upcoming {
  background-color: #e2e8f0;
  color: #64748b;
}

/* Live proctor webcam box */
.proctor-camera-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 180px;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 40;
  transition: transform 0.2s ease;
}

.proctor-camera-card:hover {
  transform: scale(1.03);
}

.proctor-camera-video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #020617;
}

.camera-recording-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  color: white;
  font-weight: 600;
}

.rec-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

/* Question Palette Buttons */
.palette-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border: 1px solid #cbd5e1;
  background-color: white;
  color: #475569;
  cursor: pointer;
}

.palette-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.palette-btn.current {
  border-color: #2563eb;
  background-color: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px #2563eb;
}

.palette-btn.answered {
  background-color: #10b981;
  border-color: #059669;
  color: white;
}

.palette-btn.marked {
  background-color: #8b5cf6;
  border-color: #7c3aed;
  color: white;
}

/* Badges */
.badge-assigned {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.badge-completed {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-shortlisted {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-rejected {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.badge-notassigned {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Modal backdrop */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

/* Print scorecard styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-report, #printable-report * {
    visibility: visible;
  }
  #printable-report {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    padding: 20px;
  }
  .no-print {
    display: none !important;
  }
}

