﻿/* Make WhatsApp and Email links in teacher list white */
.teacher-list a,
.teacher-list a:visited {
  color: #fff !important;
  text-decoration: underline;
}
/* Small square for result answer tabs */
.result-answer-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 6px;
  background: #1e293b;
  color: #fbbf24;
  font-weight: 600;
  font-size: 1em;
  border: 1.5px solid #334155;
  margin: 0 auto;
}
/* Compact Start Exam button */
.btn.start-exam {
  min-width: 110px;
  max-width: 140px;
  width: 120px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
/* Small square answer option buttons for test runner */
.option-btn.square {
  width: 38px;
  height: 38px;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px;
  max-height: 38px;
  padding: 0;
  border-radius: 8px;
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.option-btn.square.success {
  background: #166534 !important;
  color: #fff !important;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}

/* Keep exam timer visible while scrolling the test page */
.exam-sticky-timer {
  position: fixed;
  top: 78px;
  right: 20px;
  margin: 0 !important;
  padding: 8px 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1000;
}
.teacher-list.wide-cols .col-name {
  min-width: 160px;
  max-width: 240px;
  width: 18%;
}
.teacher-list.wide-cols .col-additional {
  min-width: 180px;
  max-width: 320px;
  width: 22%;
}
/* Horizontal rectangle style for bottom options */
.darpan-horizontal-rects {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 24px;
}
.darpan-horizontal-rect {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(2,6,23,0.10);
  border: 1.5px solid #334155;
  padding: 16px 28px;
  min-width: 340px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.darpan-rect-label {
  color: #fff;
  font-size: 1.08em;
  margin-right: 18px;
  white-space: normal;
  flex: 1 1 auto;
}
.darpan-horizontal-rect .btn {
  min-width: 120px;
  max-width: 180px;
  margin-left: 18px;
  width: auto;
}
@media (max-width: 700px) {
  .darpan-horizontal-rects {
    flex-direction: column;
    gap: 10px;
  }
  .darpan-horizontal-rect {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
    padding: 14px 10px;
  }
  .darpan-horizontal-rect .btn {
    margin-left: 0;
    margin-top: 10px;
    min-width: 0;
    width: 100%;
  }
  .darpan-rect-label {
    margin-right: 0;
    margin-bottom: 6px;
    text-align: center;
  }
}
/* Stack the two bottom rectangles vertically */
.darpan-options-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.btn-green-yellow {
  background: #15803d !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 1.08em;
  margin-bottom: 8px;
  width: 100%;
  transition: background 0.2s;
}
.btn-green-yellow:hover {
  background: #166534 !important;
  color: #e5e7eb !important;
}

.darpan-auth-rect, .darpan-rectangle, .darpan-option-card.small {
  background: #1e293b;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(2,6,23,0.18);
  padding: 18px 18px 10px 18px;
  margin: 10px 0;
  min-width: 180px;
  max-width: 320px;
  text-align: center;
  border: 1.5px solid #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.darpan-rect-desc {
  color: #fbbf24;
  font-size: 0.98em;
  margin-top: 2px;
  margin-bottom: 2px;
}
.darpan-options-rectangles {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.darpan-options-grid.small {
  gap: 18px;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.darpan-option-card.small {
  min-width: 180px;
  max-width: 320px;
  padding: 18px 18px 10px 18px;
  font-size: 0.98em;
  margin-bottom: 10px;
}
.darpan-option-card.small a {
  margin-bottom: 6px;
}
@media (max-width: 700px) {
  .darpan-options-rectangles, .darpan-options-grid.small {
    flex-direction: column;
    gap: 10px;
  }
}
.darpan-options-grid.small {
  gap: 18px;
  margin-top: 18px;
}
.darpan-option-card.small {
  min-width: 170px;
  max-width: 220px;
  padding: 18px 10px 14px 10px;
  font-size: 0.98em;
}
.darpan-option-card.small h3 {
  font-size: 1.15em;
  margin-bottom: 6px;
}
.darpan-option-card.small p {
  font-size: 0.95em;
  margin-bottom: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: linear-gradient(135deg, #0b1220 0%, #111827 55%, #1f2937 100%);
  color: #e5e7eb;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: #111827;
  color: white;
}
.nav a { color: white; text-decoration: none; margin-left: 12px; }
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.user-chip {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
}
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px 40px;
}
.card {
  background: #0f172a;
  border-radius: 18px;
  border: 1px solid #1f2937;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  padding: 24px;
  margin-bottom: 20px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
}

/* Darpan custom homepage styles */
.darpan-hero {
  text-align: center;
  margin: 32px 0 24px 0;
}
.darpan-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 10px;
}
.darpan-title {
  font-size: 2.2rem;
  margin-bottom: 6px;
  color: #fbbf24;
  letter-spacing: 1px;
}
.darpan-options-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.darpan-option-card {
  background: #1e293b;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(2,6,23,0.25);
  padding: 32px 28px 28px 28px;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  color: #f1f5f9;
  border: 1.5px solid #334155;
  margin-bottom: 12px;
}
.darpan-option-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  background-size: contain;
  background-repeat: no-repeat;
}
.darpan-option-icon.student {
  background-image: url('https://img.icons8.com/ios-filled/50/4ecca3/student-male.png');
}
.darpan-option-icon.teacher {
  background-image: url('https://img.icons8.com/ios-filled/50/fbbf24/teacher.png');
}
.darpan-auth-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.darpan-auth-card {
  min-width: 220px;
  max-width: 320px;
  color: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.darpan-auth-card:hover {
  box-shadow: 0 8px 32px rgba(34,197,94,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border-color: #22c55e;
}

.darpan-benefits-card {
  margin-top: 8px;
}

.darpan-benefits-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #fbbf24;
  text-align: center;
}

.darpan-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 14px;
}

.darpan-benefit-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
}

.darpan-benefit-item h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.darpan-benefit-item p {
  margin: 0;
}

.darpan-login-layout {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(260px, 380px) minmax(210px, 270px);
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.darpan-login-ad-card {
  max-width: 270px;
  margin: 0;
}

.darpan-login-card {
  width: 100%;
}

.darpan-ad-card {
  border: 1px solid #334155;
  background: #0f172a;
  padding: 14px;
}

.darpan-ad-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #475569;
}

.darpan-home-ad-card {
  max-width: 760px;
  margin: 0 auto 20px;
}

/* Teacher List Table */
.teacher-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
}
.teacher-list th, .teacher-list td {
  padding: 12px 10px;
  text-align: left;
}
.teacher-list th {
  background: #334155;
  color: #fbbf24;
  font-weight: 600;
  border-bottom: 2px solid #475569;
}
.teacher-list tr:nth-child(even) {
  background: #273449;
}
.teacher-list tr:nth-child(odd) {
  background: #1e293b;
}
.teacher-list td {
  color: #e5e7eb;
}

/* Make WhatsApp and Email links in teacher list white */
.teacher-list a,
.teacher-list a:visited {
  color: #fff !important;
  text-decoration: underline;
}

/* Teacher Registration Form */
.teacher-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 18px;
}
.teacher-form .form-group {
  display: flex;
  flex-direction: column;
}
.teacher-form label {
  color: #fbbf24;
  margin-bottom: 4px;
  font-weight: 500;
}
.teacher-form input, .teacher-form select, .teacher-form textarea {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
}
.teacher-form textarea {
  min-height: 48px;
  resize: vertical;
  font-family: inherit;
}
.teacher-form button {
  grid-column: span 2;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .darpan-options-grid, .darpan-auth-grid, .teacher-form {
    flex-direction: column;
    display: block;
  }

  .darpan-benefits-grid {
    grid-template-columns: 1fr;
  }

  .darpan-login-layout {
    grid-template-columns: 1fr;
  }

  .darpan-login-ad-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .teacher-form {
    grid-template-columns: 1fr;
  }
}
  border: none;
  background: #2563eb;
  color: white;
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary { background: #475569; }
.btn.success { background: #059669; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  margin-bottom: 14px;
}
.subject-card, .topic-card, .test-card {
  padding: 18px;
  border: 1px solid #334155;
  border-radius: 14px;
  background: #111827;
}
.muted { color: #cbd5e1; }
.question {
  border: 1px solid #475569;
  border-radius: 14px;
  background: #020617;
  padding: 16px;
  margin-bottom: 16px;
}
.question img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid #64748b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 14px 28px rgba(0, 0, 0, 0.45);
}
.placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 2px dashed #64748b;
  color: #cbd5e1;
  background: #0f172a;
  border-radius: 12px;
  padding: 16px;
}
.footer-note { margin-top: 16px; font-size: 0.95rem; color: #64748b; }

.result-table .result-row {
  border-bottom: 1px solid #334155;
}

.result-table .status-correct {
  background: #052e16;
}

.result-table .status-incorrect {
  background: #450a0a;
}

.result-table .status-unattempted {
  background: #0f172a;
}

table {
  width: 100%;
}

@media (max-width: 768px) {
  .nav {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .container {
    margin: 12px auto;
    padding: 0 10px 20px;
  }

  .card {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .question {
    padding: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .nav-links a,
  .nav-links .user-chip {
    margin-left: 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .question img {
    max-width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    font-size: 12px;
    padding: 8px !important;
  }

  .exam-sticky-timer {
    top: 68px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.95rem;
  }
}
