/* Volunteer Room Proctor View Styling
 * AWS Student Builder Group | DY Patil International University (DYPIU)
 * Theme: Techy Minimalist — Obsidian / Deep Navy, AWS Orange (#FF9900), Cyber Purple (#8B5CF6)
 * Designed for handheld smartphones and tablets at classroom doorways with 100% single-screen thumb operability
 */

.volunteer-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

/* ---------------- COMPACT PROCTOR STATION BAR ---------------- */
.proctor-station-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.station-meta-left {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.station-room-badge {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
  letter-spacing: 0.02em;
}

.station-room-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--purple-bright);
}

.station-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.station-switch-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.station-select-pill {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.station-select-pill:focus {
  border-color: var(--orange-primary);
}

/* ---------------- STANDBY EMPTY STATE ---------------- */
.volunteer-standby-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.standby-icon-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--purple-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.expected-team-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card-elevated);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------------- ACTIVE STATION PROCTORING CARD ---------------- */
.active-proctor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--orange-primary);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inbound-team-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  gap: 0.75rem;
}

.team-title-group {
  display: flex;
  flex-direction: column;
}

.active-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.inbound-team-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.inbound-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ---------------- BIG 3:00 COUNTDOWN DIGITAL CLOCK ---------------- */
.countdown-clock-container {
  background: #030509;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.countdown-clock-container.clock-warning {
  border-color: var(--orange-primary);
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.35);
}

.countdown-clock-container.clock-urgent {
  border-color: var(--status-red);
  box-shadow: 0 0 35px rgba(255, 51, 68, 0.45);
  animation: urgentPulse 1s infinite alternate;
}

@keyframes urgentPulse {
  from { background-color: #030509; }
  to { background-color: rgba(255, 51, 68, 0.08); }
}

.countdown-clock-container.clock-overtime {
  border-color: #f97316;
  background-color: rgba(249, 115, 22, 0.08);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
  animation: overtimePulse 1.2s infinite alternate;
}

@keyframes overtimePulse {
  from { border-color: #f97316; box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }
  to { border-color: #ef4444; box-shadow: 0 0 35px rgba(239, 68, 68, 0.6); }
}

.countdown-clock-container.clock-dq-expired {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.7);
}

.overtime-warning-banner {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid #f97316;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fb923c;
  line-height: 1.4;
  margin-top: 0.5rem;
  text-align: center;
}

.incoming-squad-alert {
  background: rgba(255, 153, 0, 0.1);
  border: 1px dashed var(--orange-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: inboundFlash 2s infinite ease-in-out;
}

@keyframes inboundFlash {
  0%, 100% { border-color: var(--orange-primary); background: rgba(255, 153, 0, 0.08); }
  50% { border-color: #fff; background: rgba(255, 153, 0, 0.2); }
}

.countdown-sub-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.countdown-digits {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-white);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.countdown-clock-container.clock-warning .countdown-digits {
  color: var(--orange-bright);
}

.countdown-clock-container.clock-urgent .countdown-digits {
  color: var(--status-red);
}

/* Progress bar inside clock */
.countdown-progress-bar-track {
  width: 100%;
  height: 5px;
  background: var(--border-subtle);
  border-radius: 3px;
  margin-top: 0.65rem;
  overflow: hidden;
}

.countdown-progress-bar-fill {
  height: 100%;
  background: var(--orange-primary);
  border-radius: 3px;
  transition: width 0.3s linear, background-color 0.3s ease;
}

.countdown-clock-container.clock-urgent .countdown-progress-bar-fill {
  background: var(--status-red);
}

/* ---------------- PROCTOR TOUCH ACTION AREA (THUMB ZONE) ---------------- */
.proctor-actions-area {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-proctor-action {
  min-height: 52px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-pulse-start {
  animation: startPulse 2s infinite;
}

@keyframes startPulse {
  0% { box-shadow: 0 0 10px rgba(255, 153, 0, 0.2); }
  50% { box-shadow: 0 0 24px rgba(255, 153, 0, 0.55); }
  100% { box-shadow: 0 0 10px rgba(255, 153, 0, 0.2); }
}

.proctor-actions-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.65rem;
}

.btn-timeout-mode {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.btn-timeout-mode:hover {
  border-color: var(--orange-primary);
  color: #fff;
}

.btn-timeout-mode.pulse-timeout {
  border-color: var(--status-red);
  color: var(--status-red);
  animation: timeoutPulse 1s infinite alternate;
}

@keyframes timeoutPulse {
  from { box-shadow: 0 0 8px rgba(255, 51, 68, 0.2); }
  to { box-shadow: 0 0 20px rgba(255, 51, 68, 0.6); }
}

/* ---------------- COMPACT CHALLENGE BRIEFING DRAWER ---------------- */
.proctor-judging-compact {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
}

.judging-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.judging-criteria-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--purple-bright);
  font-weight: 700;
  text-transform: uppercase;
}

.judging-cap {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.judging-instruction-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.judging-pass-rule {
  font-size: 0.75rem;
  color: var(--status-green);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

/* ---------------- DISQUALIFIED WARNING IN VOLUNTEER VIEW ---------------- */
.proctor-dq-warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid #EF4444;
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.proctor-dq-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
}

/* ---------------- PROCTOR HUB DASHBOARD STYLING ---------------- */
.proctor-dashboard-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding-bottom: 2.5rem;
}

.dashboard-hero {
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(10, 13, 20, 0.98));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-icon-block {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 153, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-primary);
  flex-shrink: 0;
}

.dashboard-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 0.2rem 0;
}

.dashboard-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.hero-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.dashboard-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 2.5rem;
  background: #030509;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-wrapper input:focus {
  border-color: var(--orange-primary);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-subtle);
  pointer-events: none;
}

.btn-clear-search {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
}

.category-pills-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--border-light);
  color: #fff;
}

.filter-pill.active {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #000;
  font-weight: 800;
}

.proctor-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.85rem;
}

.proctor-room-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.proctor-room-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange-primary);
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.14);
}

.room-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.room-card-number {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  line-height: 1;
}

.room-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.room-type-tag.tag-memory {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--purple-bright);
}

.room-type-tag.tag-config {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #00D2FF;
}

.room-type-tag.tag-wordgrep {
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 153, 0, 0.35);
  color: var(--orange-primary);
}

.room-type-tag.tag-headsup {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #FB7185;
}

.room-type-tag.tag-finish {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ADE80;
}

.room-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.room-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.room-card-desc {
  font-size: 0.74rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

.room-occupancy-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.room-occupancy-pill.status-occupied {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.room-occupancy-pill.status-ready {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86EFAC;
}

.room-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--orange-primary);
  font-weight: 700;
}

.btn-hub-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-hub-back:hover {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #000;
}

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */
@media (max-width: 650px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-stats-pill {
    align-self: flex-start;
  }

  .proctor-rooms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .volunteer-container {
    gap: 0.65rem;
  }

  .proctor-station-bar {
    padding: 0.5rem 0.75rem;
  }

  .station-room-badge {
    font-size: 1.2rem;
  }

  .active-proctor-card {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .inbound-team-title {
    font-size: 1.2rem;
  }

  .countdown-digits {
    font-size: 2.75rem;
  }

  .countdown-clock-container {
    padding: 0.65rem 0.75rem;
  }

  .btn-proctor-action {
    min-height: 48px;
    font-size: 0.88rem;
  }

  .proctor-actions-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
