@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

:root {
  --main-red: #e53935;
  --confirm-green: #22c55e;
  --gray-bg: #f3f4f6;
  --text-main: #111827;
  --text-muted: #6b7280;
}

/* Базовая типографика */
body {
  background: var(--gray-bg);
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ---------- HEADER / SITE SHELL ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);

  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);

  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* чуть более плотная шапка при скролле (класс навешивается JS-ом) */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.09);
}

/* ---------- BUTTONS ---------- */

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  border-radius: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: none;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;

  background-color: var(--confirm-green);
  color: #ffffff;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease;
}

button:hover,
.btn:hover {
  background-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* Красная вариация */
.btn-red {
  background-color: var(--main-red);
}

.btn-red:hover {
  background-color: #c62828;
}

/* ---------- REACTION QUESTION ---------- */

.reaction-option {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;

  font-size: 0.85rem;
  color: var(--text-main);

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.reaction-option:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* Прячем стандартный radio */
.reaction-option input[type="radio"] {
  display: none;
}

/* emoji / иконка реакции */
.reaction-option img {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Активный вариант */
.reaction-option input[type="radio"]:checked + img {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #bfdbfe;
  border-radius: 999px;
}

/* Текст возле активной реакции */
.reaction-option input[type="radio"]:checked ~ span {
  font-weight: 600;
  color: #1d4ed8;
}

/* ---------- GLASS CARD (инфо-блоки / подсказки) ---------- */

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(249, 250, 251, 0.96));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
  padding: 1.5rem;
}

/* ---------- FULLSCREEN ADMIN MESSAGE ---------- */

.screen-msg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1000;
}

/* ---------- MODAL ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 0.9rem;
  max-height: 80vh;
  overflow-y: auto;
  width: 92%;
  max-width: 520px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

/* ---------- TEST TIMER CHIP ---------- */

.test-timer {
  position: sticky;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  padding: 0.65rem 1.2rem;
  border-radius: 999px;

  background: linear-gradient(135deg, #020617, #111827);
  color: #f9fafb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.4);

  z-index: 30;
}

.test-timer .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

/* ---------- TEACHER LAYOUT ---------- */

.teacher-shell {
  align-items: flex-start;
}

.teacher-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
  max-height: calc(100vh - 6rem);
  flex-shrink: 0;
  overflow: hidden;
}

/* если внутри сайдбара есть прокрутка */
.teacher-sidebar:hover {
  overflow: auto;
}

/* немного сглаженный скролл только для сайдбара, если нужно
.teacher-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #e5e7eb;
}
.teacher-sidebar::-webkit-scrollbar {
  width: 6px;
}
.teacher-sidebar::-webkit-scrollbar-track {
  background: #e5e7eb;
}
.teacher-sidebar::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
  border-radius: 999px;
}
*/
