/* ==========================================================================
   STYLE.CSS - THỐNG KÊ ĐIỂM HỌC SINH (LỚP - KHỐI - GIÁO VIÊN - PHÒNG THI)
   ========================================================================== */

/* 1. In ấn & Xuất PDF */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background-color: #fff !important;
    font-size: 10.5pt !important;
    color: #0f172a !important;
  }
  .print-break {
    page-break-before: always;
  }
  .shadow-xs, .shadow-sm, .shadow-md, .shadow-lg {
    box-shadow: none !important;
  }
  .border {
    border-color: #cbd5e1 !important;
  }
  table {
    font-size: 9.5pt !important;
  }
  #appContainer {
    padding: 0 !important;
    max-width: 100% !important;
  }
}

/* 2. Thanh cuộn tùy chỉnh */
.custom-scroll::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 3. Tab Navigation */
.tab-btn {
  position: relative;
  transition: all 0.2s ease;
  color: #64748b;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover {
  color: #1e293b;
  background-color: #f8fafc;
}
.tab-btn.active {
  border-bottom: 3px solid #2563eb;
  color: #1d4ed8;
  font-weight: 600;
  background-color: #eff6ff;
}

/* 4. Tiêu đề bảng có thể sắp xếp */
.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sortable-th:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* 5. Chế độ xem phổ điểm (Mode buttons) */
.pd-mode-btn {
  transition: all 0.15s ease-in-out;
}
.pd-mode-btn.active {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* 6. Hộp thoại (Modal / Dialog) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* 7. Dropzone Drag & Drop */
.dropzone-active {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

/* 8. Badge trạng thái & nút tương tác nhỏ */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

/* 9. Card KPI & bảng dữ liệu sticky */
.sticky-header th {
  position: sticky;
  top: 0;
  z-index: 10;
}
.sticky-footer td {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

