/* Класен Помощник — Версия 2.0 (Dark Mode & Dual View Styles) */

@layer base {
  html {
    -webkit-tap-highlight-color: transparent;
    color-scheme: dark;
  }
}

/* Custom Checkbox Design for fingers */
.student-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 2px solid #475569;
  background-color: #0f172a;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.student-checkbox:hover {
  border-color: #94a3b8;
  background-color: #1e293b;
}

.student-checkbox:checked {
  background-color: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.student-checkbox:checked::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Row states in Dark Theme */
.student-row {
  transition: all 0.2s ease;
}

.student-row.is-done {
  background-color: rgba(6, 78, 59, 0.25);
  border-color: rgba(16, 185, 129, 0.35);
}

.student-row.is-pending {
  background-color: #0f172a;
  border-color: #1e293b;
}

.student-row.is-pending:hover {
  border-color: #334155;
}

.student-row.is-absent {
  background-color: rgba(67, 20, 7, 0.3);
  border-color: rgba(234, 88, 12, 0.35);
}

.student-row.is-exempt {
  background-color: #0b1120;
  border-color: #1e293b;
  opacity: 0.6;
}

/* Compact List View Mode for Campaigns */
.campaign-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.campaign-list-row:hover {
  background-color: #1e293b;
  border-color: #3b82f6;
  transform: translateX(2px);
}

/* Filter pills */
.filter-pill.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Toast animation */
#toastNotification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Subtle bounce effect when clicking checkboxes */
@keyframes checkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.check-pop {
  animation: checkPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
