*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #eef2ff 100%);
    color:#111827;
}

.container{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.container.admin-page{
    display:block;
    max-width:1200px;
    margin:0 auto;
    padding:24px;
}

.card{
    width:500px;
    background:white;
    padding:30px;
    border-radius:18px;
    box-shadow:0 18px 35px rgba(37, 99, 235, 0.12);
    border:1px solid #e5eefb;
}

.container.admin-page .card{
    width:100%;
    max-width:100%;
}

h2{
    text-align:center;
    margin-bottom:20px;
}

input{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ddd;
    border-radius:5px;
}

button{
    width:100%;
    padding:12px;
    border:none;
    background:linear-gradient(135deg, #2563eb, #4f46e5);
    color:white;
    cursor:pointer;
    border-radius:10px;
    font-weight:600;
    transition:transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 18px rgba(79, 70, 229, 0.28);
}

.btn.secondary{
    background:#e5e7eb;
    color:#111827;
}

.btn.secondary:hover{
    background:#d1d5db;
}

.grid{
    display:grid;
    gap:16px;
    margin-bottom:20px;
}

.grid.two-cols{
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-header,
.actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}

.stat-card strong{
    display:block;
    font-size:2rem;
    color:#2563eb;
}

.table-wrap{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

th, td {
    text-align:left;
    padding:12px;
    border-bottom:1px solid #e5e7eb;
}

th {
    background:#eff6ff;
    color:#1e3a8a;
}

tr:hover {
    background:#f8fbff;
}

.hero-card {
    background:linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #4f46e5 100%);
    color:#ffffff;
}

.hero-card p, .hero-card h1 {
    color:#ffffff;
    text-align:left;
}

p{
    text-align:center;
    margin-top:15px;
}

.dashboard{
    padding:40px;
}

#userInfo{
    margin-top:20px;
    margin-bottom:20px;
}

.exam-container{
    width:min(1200px, 96vw);
    margin:0 auto;
    padding:24px;
    min-height:100vh;
    background:linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%);
    box-shadow:0 18px 40px rgba(15, 23, 42, 0.12);
    border-radius:18px;
}

.exam-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:18px;
    padding-bottom:14px;
    border-bottom:1px solid #dbe7ff;
}

#timer{
    font-size:1.4rem;
    font-weight:800;
    color:#dc2626;
    background:#fff1f2;
    padding:0.45rem 0.75rem;
    border-radius:999px;
}

.question-box{
    background:#ffffff;
    padding:22px;
    border-radius:14px;
    margin-bottom:18px;
    border:1px solid #e5efff;
    box-shadow:0 10px 25px rgba(15, 23, 42, 0.06);
}

.option{
    margin-top:10px;
    padding:8px 10px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#f9fbff;
}

.button-group{
    display:flex;
    gap:10px;
    justify-content:flex-end;
    flex-wrap:wrap;
}

.button-group button,
#submitRoundBtn,
#prevBtn,
#nextBtn{
    border:none;
    border-radius:8px;
    padding:8px 12px;
    font-size:0.9rem;
    font-weight:600;
    cursor:pointer;
    background:#2563eb;
    color:#fff;
}

#roundTitle{
    font-size:1.35rem;
    margin-bottom:14px;
    font-weight:800;
    color:#111827;
}

.monitoring-section{
    display:grid;
    grid-template-columns: 260px 1fr;
    gap:16px;
    align-items:start;
    margin-bottom:18px;
    background:#fff;
    border:1px solid #e5efff;
    border-radius:14px;
    padding:16px;
}

#video{
    border:2px solid #2563eb;
    border-radius:14px;
    width:100%;
    max-width:260px;
    background:#e5eefb;
}


/*//////////////////////////////////////////////////////////////////
////////////////

///////////////////


//////////////////

*/

/* ==================================
   ADMIN DASHBOARD CSS
   Modern Classic · Wider Layout · Compact Buttons
   ================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #eff6ff;
  --secondary: #6b7280;
  --secondary-dark: #4b5563;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --dark: #111827;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.2s ease;
}

/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f3f4f6;
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
  padding: 2rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

/* ---------- CONTAINER - WIDER LAYOUT ---------- */
.container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.admin-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---------- CARD COMPONENT ---------- */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.hero-card {
  background: white;
  border-bottom: none;
  border-top: 4px solid var(--primary);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-700);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- GRID SYSTEM ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.two-cols {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1000px) {
  .grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid.two-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- STAT CARDS ---------- */
.stat-card {
  text-align: center;
  transition: var(--transition);
  background: white;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--primary);
}

.stat-card h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

/* ---------- TABLE ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--gray-50);
}

/* Column specific styling */
td:nth-child(5) {
  font-weight: 500;
  color: var(--danger);
}

td:nth-child(3) {
  font-weight: 600;
  color: var(--primary);
}

td:nth-child(4) {
  font-weight: 500;
}

td:last-child {
  color: var(--gray-500);
  font-size: 0.8125rem;
}

/* Empty state */
tbody:has(td[colspan]) td {
  text-align: center;
  padding: 3rem;
  color: var(--gray-400);
  font-style: italic;
}

/* ---------- STATUS TEXT ---------- */
#statusText {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 9999px;
  font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  th, td {
    padding: 0.75rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .btn {
    white-space: nowrap;
  }

  th {
    font-size: 0.7rem;
    padding: 0.75rem 0.5rem;
  }

  td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ---------- LOADING STATES ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ---------- SCROLLBAR STYLING ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---------- PRINT STYLES ---------- */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .btn,
  .actions {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ---------- FOCUS STATES FOR ACCESSIBILITY ---------- */
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- EMPTY/ERROR STATES ---------- */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray-400);
}

.error-state {
  color: var(--danger);
  background: #fef2f2;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
}