@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #F8FAFC;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.logo {
  margin-bottom: 10px;
}

.logo h2 {
  font-size: 28px;
}

.active {
  background: white;
  color: #0F766E;
  font-weight: 600;
}
.active .dash {
  color: #0F766E;
}

.sidebar {
  width: 260px;
  height: 100vh;
  background: #0F766E;
  color: #ffffff;
  position: fixed;
  left: 0;
  top: 0;
  padding: 30px;
}
.sidebar ul li {
  padding: 0;
  margin-bottom: 10px;
  border-radius: 12px;
  color: white;
  transition: 0.3s ease;
}
.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 15px;
  text-decoration: none;
  color: white;
  cursor: pointer;
}
.sidebar ul li i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar li:not(.active):hover {
  background: rgba(255, 255, 255, 0.15);
}

.main-content {
  margin-left: 260px;
  padding: 35px;
}

header {
  margin-bottom: 40px;
}

header h1 {
  font-size: 34px;
  color: #1F2937;
}

header p {
  color: #777;
  margin-top: 8px;
}

@media print {
  body {
    background: #fff;
    margin: 0;
    padding: 0;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 20px !important;
    width: 100% !important;
  }
}
@media print {
  .report-section {
    margin: 0 auto;
    width: 100%;
  }
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.card-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #CCFBF1;
  color: #0F766E;
  font-size: 24px;
  flex-shrink: 0;
}

.card-info h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
}

.card-info span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #0F172A;
}

.welcome {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.welcome h2 {
  margin-bottom: 15px;
  color: #1F2937;
}

.welcome p {
  color: #666;
  line-height: 1.7;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
}

#addStudentBtn {
  background: #0F766E;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

#addStudentBtn:hover {
  background: #115E59;
}

.edit-btn {
  background: #2563EB;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  margin-right: 8px;
}

.edit-btn:hover {
  background: #1D4ED8;
}

.delete-btn {
  background: #EF4444;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
}

.delete-btn:hover {
  background: #DC2626;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.modal-buttons button {
  padding: 12px 20px;
  border-radius: 8px;
}

.modal-buttons button:first-child {
  background: #E5E7EB;
}

.modal-buttons button:last-child {
  background: #0F766E;
  color: white;
}

.btn-light {
  background: #F3F4F6;
  color: #374151;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-danger {
  background: #DC2626;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-light:hover {
  background: #E5E7EB;
}

.btn-danger:hover {
  background: #B91C1C;
}

/* =====================================
   PRIMARY BUTTON
===================================== */
.btn-primary {
  background: #0F766E;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary:hover {
  background: #115E59;
}

/* =====================================
   SECONDARY BUTTON
===================================== */
.btn-secondary {
  background: #2563EB;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.btn-secondary:hover {
  background: #1D4ED8;
}

.btn-success {
  background: #16A34A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.btn-success:hover {
  background: #15803D;
}

.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.action-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 15px;
}

.action-btn i {
  pointer-events: none;
}

.edit-btn {
  background: #DCFCE7;
  color: #15803D;
}

.edit-btn:hover {
  background: #BBF7D0;
  transform: translateY(-2px);
}

.delete-btn {
  background: #FEE2E2;
  color: #DC2626;
}

.delete-btn:hover {
  background: #FECACA;
  transform: translateY(-2px);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.student-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

/* ======================================
   REPORT BUTTON CONTAINER
====================================== */
.report-buttons {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 50px;
  margin: 0;
  padding: 0;
}

/* ======================================
   REPORT BUTTONS
====================================== */
.report-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 160px !important;
  height: 44px !important;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #ffffff;
  cursor: pointer;
}

/* ======================================
   REPORT BUTTON COLOURS
====================================== */
.report-btn-generate {
  background: #0F766E !important;
}

.report-btn-print {
  background: #2563EB !important;
}

.report-btn-excel {
  background: #16A34A !important;
}

.student-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.student-actions input {
  width: 350px;
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

.student-actions input:focus {
  border-color: #0F766E;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.form-group input,
.form-group select {
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #0F766E;
}

.input-error {
  border: 1px solid #DC2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* ======================================
   REPORT CONTROLS
====================================== */
.report-controls {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 20px;
}

/* ======================================
   REPORT SELECTORS
====================================== */
.report-field {
  width: 170px;
  display: flex;
  flex-direction: column;
}

.report-field label {
  display: block;
  height: 20px;
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: #1f2937;
}

.report-field-type {
  display: block;
  width: 170px !important;
  height: 44px !important;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 44px;
  outline: none;
}

.report-field-week {
  display: block;
  width: 100px !important;
  height: 44px !important;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 44px;
  outline: none;
}

.table-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #0F766E;
  color: white;
}

th {
  padding: 16px;
  text-align: left;
  font-size: 14px;
}

td {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

tbody tr {
  transition: 0.3s;
}

tbody tr:hover {
  background: #F7F7F7;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.teacher-info {
  text-align: right;
}

.teacher-info h3 {
  color: #1F2937;
}

.teacher-info span {
  color: #777;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 500px;
  background: white;
  border-radius: 12px;
  padding: 30px;
  animation: popup 0.25s ease;
}

@keyframes popup {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  color: #1F2937;
}

#closeModal {
  background: none;
  font-size: 30px;
  color: #777;
  cursor: pointer;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.student-counter {
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  font-weight: 600;
  color: #374151;
}

.student-counter span {
  color: #0F766E;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #0F766E;
  color: #FFFFFF;
  padding: 15px 22px;
  border-radius: 10px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  pointer-events: none;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #16A34A;
  color: #fff;
}

.toast.error {
  background: #DC2626;
  color: #fff;
}

.toast.warning {
  background: #F59E0B;
  color: #fff;
}

.toast.info {
  background: #2563EB;
  color: #fff;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#finalizeRegisterBtn {
  background: #0F766E;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#finalizeRegisterBtn:hover {
  background: #115E59;
}

#finalizeRegisterBtn:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
}

.setup-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #F4F7FB;
  padding: 40px;
}

.setup-card {
  width: 520px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 45px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.setup-card h1 {
  font-size: 32px;
  color: #1F2937;
  margin-bottom: 10px;
}

.setup-card p {
  color: #6B7280;
  margin-bottom: 35px;
  line-height: 1.6;
}

.setup-card button {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  background: #0F766E;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.setup-card button:hover {
  background: #115E59;
  transform: translateY(-2px);
}

.setup-card button:active {
  transform: translateY(0);
}

.setup-logo {
  text-align: center;
  margin-bottom: 30px;
}
.setup-logo img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}
.setup-logo h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #0F766E;
}
.setup-logo p {
  margin-top: 10px;
  color: #666;
  font-size: 15px;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.confirm-card {
  width: 450px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  animation: popup 0.25s ease;
}

.confirm-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
}

.confirm-header h2 {
  margin: 0;
  color: #1F2937;
}

.confirm-body {
  padding: 28px 24px;
  line-height: 1.8;
  color: #4B5563;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #E5E7EB;
}

@keyframes popup {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ======================================
   IMPORT SUMMARY
====================================== */
.import-summary-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.import-summary-modal.show {
  display: flex;
}

.import-summary-card {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.import-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 25px;
  border-bottom: 1px solid #e5e7eb;
}

.import-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ccfbf1;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.import-summary-header h2 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.import-summary-close {
  border: none;
  background: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
}

.import-summary-body {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.import-summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
}

.import-summary-item > i {
  font-size: 20px;
}

.import-summary-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.import-summary-item strong {
  font-size: 20px;
  color: #111827;
}

.import-summary-item span {
  font-size: 13px;
  color: #64748b;
}

.import-summary-item.success {
  background: #ecfdf5;
}

.import-summary-item.success > i {
  color: #16a34a;
}

.import-summary-item.warning {
  background: #fffbeb;
}

.import-summary-item.warning > i {
  color: #d97706;
}

.import-summary-item.danger {
  background: #fef2f2;
}

.import-summary-item.danger > i {
  color: #dc2626;
}

.import-summary-item.neutral {
  background: #f8fafc;
}

.import-summary-item.neutral > i {
  color: #64748b;
}

.import-summary-footer {
  padding: 18px 25px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.duplicate-details {
  display: none;
  margin-top: 5px;
  padding: 15px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.duplicate-details.show {
  display: block;
}

.duplicate-details h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #92400e;
}

.duplicate-details ul {
  margin: 0;
  padding-left: 20px;
}

.duplicate-details li {
  margin-bottom: 6px;
  font-size: 13px;
  color: #475569;
}

.duplicate-details strong {
  color: #1f2937;
}

/* ==========================
   SUMMARY CARDS
========================== */
.attendance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.summary-cards {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.summary-cards span {
  display: block;
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.summary-cards h3 {
  color: #0F172A;
  font-size: 22px;
  font-weight: 600;
}

/* ==========================
   ATTENDANCE PAGE
========================== */
.attendance-dashboard {
  margin-top: 10px;
  width: 100%;
}

.attendance-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.attendance-card h2 {
  margin-bottom: 8px;
  color: #1F2937;
}

.attendance-card p {
  color: #6B7280;
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 250px 180px;
  gap: 30px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 1000;
  color: #374151;
}

.form-group input,
.form-group select {
  height: 45px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0F766E;
}

#openAttendance {
  margin-top: 30px;
  background: #0F766E;
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#openAttendance:hover {
  background: #115E59;
}

/* ==========================
   ATTENDANCE TABLE
========================== */
.attendance-table-section {
  margin-top: 35px;
}

.table-wrapper {
  width: 100%;
  overflow: auto;
}

.attendance-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.attendance-table th {
  background: #0F766E;
  color: #fff;
  padding: 14px;
  text-align: center;
  font-size: 14px;
}

.attendance-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ECECEC;
}

.attendance-table td,
.attendance-table th {
  border: 1px solid #94A3B8;
}

.morning {
  border-right: 2px solid #b0b2b5 !important;
}

.attendance-table tbody tr:hover {
  background: #F9FAFB;
}

.student-name {
  text-align: left !important;
  font-weight: 500;
}

.attendance-cell {
  cursor: pointer;
  font-size: 18px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.weekly-total {
  font-weight: 700;
  color: #0F766E;
}

.page-title p {
  margin-top: 8px;
  color: #6B7280;
}

.present {
  width: 22px;
  height: 22px;
  background: #16A34A;
  color: #FFFFFF;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.absent {
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.attendance-summary-box {
  display: flex;
  align-items: flex-end;
  gap: 25px;
}

.summary-table {
  border-collapse: collapse;
  width: 420px;
}

.summary-table th {
  background: #0F766E;
  color: white;
}

.summary-table td,
.summary-table th {
  border: 1px solid #CBD5E1;
  padding: 10px;
  text-align: center;
}

.total-row {
  font-weight: 700;
  background: #F8FAFC;
}

.weekly-percentage {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  text-align: center;
  font-weight: 600;
}

.weekly-percentage span {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  color: #16A34A;
}

.attendance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 25px 0;
}

.status {
  font-weight: 600;
}

/* =====================================
   REPORT SUMMARY
===================================== */
.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: 0.5s;
}

.summary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.card-content h3 {
  margin: 0;
  color: #777;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-content h2 {
  margin-top: 8px;
  font-size: 28px;
  color: #222;
  font-weight: 700;
}

.summary-card p {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* =====================================
   PRINT HEADER
===================================== */
.print-header {
  display: none;
}

.print-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

@media print {
  .main-content {
    display: flex;
    flex-direction: column;
    margin-left: 0 !important;
    width: 100%;
    padding: 0;
  }
  .print-header {
    order: 1;
  }
  .report-summary {
    order: 2;
  }
  .report-section {
    order: 3;
  }
  .print-footer {
    order: 4;
  }
  body {
    background: #fff;
  }
  .sidebar,
  .top-header,
  .report-controls,
  #printReport,
  #generateReport,
  #exportExcel {
    display: none !important;
  }
  .print-header {
    display: block;
    margin-bottom: 30px;
    text-align: center;
  }
  .print-header h1 {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .print-header h2 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .print-info {
    text-align: left;
    margin-top: 25px;
    font-size: 11px;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    padding: 10px 0;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  table th,
  table td {
    border: 1px solid #000;
    padding: 4px;
  }
}
.print-footer {
  display: none;
}

@media print {
  .report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0 20px;
  }
  .summary-card {
    padding: 10px;
    border-left: 3px solid #0F766E;
    box-shadow: none;
    border-radius: 6px;
  }
  .summary-card h3 {
    font-size: 11px;
    margin-bottom: 5px;
  }
  .summary-card p {
    font-size: 18px;
    font-weight: 700;
  }
}
@media print {
  table {
    width: 100%;
    font-size: 11px;
  }
  table th {
    padding: 6px;
    font-size: 11px;
  }
  table td {
    padding: 5px;
    font-size: 10px;
  }
}
@media print {
  .print-footer {
    display: block;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #666;
  }
}
@page {
  size: A4 portrait;
  margin: 10mm;
}
@media print {
  .attendance-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 10px;
  }
  .attendance-table th {
    padding: 4px;
    font-size: 10px;
  }
  .attendance-table td {
    padding: 4px;
    font-size: 10px;
  }
  /* COLUMN WIDTHS */
  .attendance-table th:nth-child(1),
  .attendance-table td:nth-child(1) {
    width: 6%;
  }
  .attendance-table th:nth-child(2),
  .attendance-table td:nth-child(2) {
    width: 34%;
  }
  .attendance-table th:nth-child(3),
  .attendance-table td:nth-child(3),
  .attendance-table th:nth-child(4),
  .attendance-table td:nth-child(4),
  .attendance-table th:nth-child(5),
  .attendance-table td:nth-child(5),
  .attendance-table th:nth-child(6),
  .attendance-table td:nth-child(6) {
    width: 15%;
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -10px;
}

.logo img {
  width: 100px;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  height: auto;
  display: block;
  margin-left: -30px;
}

.logo h2 {
  margin-left: -10px;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.analytics-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.analytics-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.card-content h3 {
  margin: 0;
  color: #777;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-content h2 {
  margin-top: 8px;
  font-size: 28px;
  color: #222;
  font-weight: 700;
}

.analytics-charts {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.chart-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.chart-card h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #111827;
}

.chart-card canvas {
  width: 100% !important;
  height: 400px !important;
}

@media (max-width: 768px) {
  .analytics-charts {
    grid-template-columns: 1fr;
  }
}
.attendance-ranking {
  margin-top: 35px;
}

.ranking-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ranking-header h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.ranking-header span {
  font-size: 13px;
  color: #6b7280;
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th {
  text-align: left;
  padding: 14px;
  background: #0F766E;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.ranking-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  font-size: 14px;
}

.ranking-table tbody tr:hover {
  background: #f9fafb;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
  width: 80px;
  text-align: center;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
  width: 180px;
  text-align: center;
  font-weight: 600;
}

.ranking-header h3 i {
  margin-right: 8px;
}

.attendance-alerts {
  margin-top: 35px;
}

.attendance-alerts .ranking-table th {
  background: #0F766E;
  color: #fff;
}

.attendance-alerts .ranking-table td:last-child {
  font-weight: 600;
}

.critical-attendance {
  margin-top: 35px;
}

.critical-attendance .ranking-header span {
  font-weight: 600;
}

.critical-attendance .ranking-header h3 i {
  margin-right: 8px;
}

.critical-attendance .ranking-table th {
  background: #0F766E;
  color: #fff;
}

.weekly-analysis {
  margin-top: 35px;
}

.weekly-analysis .ranking-header h3 i {
  margin-right: 8px;
}

.ranking-table.analysis th {
  background: #0F766E;
  color: #fff;
}

.ranking-table.analysis {
  width: 100%;
}

.ranking-table.analysis th {
  background: #0F766E;
  color: #fff;
}

.ranking-table.analysis td {
  padding: 14px;
}

.ranking-table.analysis {
  width: 100%;
  table-layout: fixed;
}

.ranking-table.analysis th:nth-child(1),
.ranking-table.analysis td:nth-child(1) {
  width: 20%;
}

.ranking-table.analysis th:nth-child(2),
.ranking-table.analysis td:nth-child(2) {
  width: 45%;
  text-align: center;
}

.ranking-table.analysis th:nth-child(3),
.ranking-table.analysis td:nth-child(3) {
  width: 35%;
}

.attendance-insights {
  margin-top: 35px;
}

.attendance-insights .ranking-header h3 i {
  margin-right: 8px;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  color: #374151;
  font-size: 14px;
}

.insight-item i {
  width: 20px;
  text-align: center;
  color: #0F766E;
}

/* =====================================
   SETTINGS
===================================== */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

/* =====================================
   SETTINGS CARD
===================================== */
.settings-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* =====================================
   SETTINGS CARD HEADER
===================================== */
.settings-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.settings-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #e6f4f1;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}

.settings-card-header h2 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.settings-card-header p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

/* =====================================
   SETTINGS ACTIONS
===================================== */
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================
   SETTINGS BUTTON
===================================== */
.settings-btn {
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  background: #0F766E;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
}

.settings-btn:hover {
  background: #0b625b;
  transform: translateY(-1px);
}

.settings-btn.secondary {
  background: #e6f4f1;
  color: #0F766E;
}

.settings-btn.secondary:hover {
  background: #d5ebe7;
}

/* =====================================
   DANGER BUTTON
===================================== */
.settings-btn.danger {
  background: #dc2626;
}

.settings-btn.danger:hover {
  background: #b91c1c;
}

/* =====================================
   ABOUT
===================================== */
.about-content {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.about-content p {
  margin: 5px 0;
}

.about-content strong {
  color: #0F766E;
  font-size: 18px;
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 768px) {
  .settings-card {
    padding: 20px;
  }
  .settings-actions {
    flex-direction: column;
  }
  .settings-btn {
    width: 100%;
  }
}
/* ==========================================
   SETTINGS MESSAGE MODAL
========================================== */
.settings-message-modal,
.settings-confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 9999;
}

.settings-message-modal.show,
.settings-confirm-modal.show {
  opacity: 1;
  visibility: visible;
}

.settings-message-content,
.settings-confirm-content {
  background: #fff;
  width: min(420px, 90%);
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.settings-message-content h3,
.settings-confirm-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.settings-message-content p,
.settings-confirm-content p {
  margin-bottom: 24px;
  line-height: 1.5;
}

.settings-message-content button,
.settings-confirm-content button {
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  cursor: pointer;
  font-weight: 600;
}

.settings-message-content button {
  background: #0F766E;
  color: #fff;
}

.settings-confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#settingsConfirmCancel {
  background: #e5e7eb;
  color: #333;
}

#settingsConfirmOk {
  background: #dc2626;
  color: #fff;
}

#settingsConfirmOk:hover {
  background: #b91c1c;
}

/* ==========================================
   REGISTER INFORMATION
========================================== */
.register-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.register-info-item {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.register-info-item span {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.register-info-item strong {
  display: block;
  font-size: 15px;
  color: #111827;
}

.register-status.locked {
  color: #dc2626;
}

.register-status.unlocked {
  color: #0f766e;
}

@media (max-width: 700px) {
  .register-info-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================
   6.4.2 — EDIT REGISTER MODAL
========================================== */
.register-edit-action {
  margin-top: 25px;
}

.settings-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.settings-edit-modal.show {
  display: flex;
}

.settings-edit-content {
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.settings-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.settings-edit-header h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.settings-edit-header p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.settings-edit-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
}

.settings-form-group {
  margin-bottom: 18px;
}

.settings-form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
}

.settings-form-group input,
.settings-form-group select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.settings-form-group input:focus,
.settings-form-group select:focus {
  border-color: #0F766E;
}

.settings-form-group input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

/* ==========================================
   EDIT REGISTER NOTE
========================================== */
.settings-edit-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #e6f4f1;
  color: #0F766E;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.settings-edit-note i {
  margin-top: 2px;
}

.settings-edit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}

/* ==========================================
   6.4.3 — REGISTER STATUS
========================================== */
.register-status-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.register-status-wrapper small {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  font-weight: 400;
}

.register-status.locked {
  color: #dc2626;
}

.register-status.unlocked {
  color: #0F766E;
}

/* =========================================
   AUTHENTICATION PAGES
   LOGIN + CREATE ACCOUNT
========================================= */
/* =========================================
   RESET
========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================
   AUTH BODY
========================================= */
.body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7f7;
  padding: 20px;
}

/* =========================================
   AUTH CONTAINERS
========================================= */
.login-container,
.signup-container {
  width: 100%;
  max-width: 430px;
}

/* =========================================
   AUTH CARDS
========================================= */
.login-card,
.signup-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================
   AUTH LOGO
========================================= */
.login-logo,
.signup-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo img,
.signup-logo img {
  width: 75px;
  height: 75px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 10px;
}

.login-logo h1,
.signup-logo h1 {
  color: #0F766E;
  font-size: 28px;
  font-weight: 700;
}

.login-logo p,
.signup-logo p {
  color: #777;
  font-size: 13px;
  margin-top: 4px;
}

/* =========================================
   FORM GROUP
========================================= */
.login-card .form-group,
.signup-card .form-group {
  margin-bottom: 20px;
}

/*
   Create Account has more fields,
   so keep its spacing slightly tighter.
*/
.signup-card .form-group {
  margin-bottom: 18px;
}

/* =========================================
   FORM LABEL
========================================= */
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
  color: #333;
}

/* =========================================
   FORM LABEL ROW (label + inline link)
========================================= */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.form-label-row label {
  margin-bottom: 0;
}

.forgot-password-link {
  font-size: 12.5px;
  font-weight: 500;
  color: #0F766E;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* =========================================
   INPUT WRAPPER
========================================= */
.input-wrapper {
  position: relative;
}

/* =========================================
   INPUT ICON
========================================= */
.input-wrapper i.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

/* =========================================
   INPUT
========================================= */
.input-wrapper input {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 45px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.input-wrapper input:focus {
  border-color: #0F766E;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* =========================================
   PASSWORD TOGGLE
========================================= */
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #777;
  cursor: pointer;
  font-size: 15px;
}

/* =========================================
   AUTH BUTTONS
========================================= */
.login-btn,
.signup-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #0F766E;
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 5px;
}

.login-btn:hover,
.signup-btn:hover {
  background: #0b625c;
}

.login-btn:disabled,
.signup-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================
   LOGIN / CREATE ACCOUNT LINK
========================================= */
.login-link {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: #777;
}

.login-link a {
  color: #0F766E;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* =========================================
   AUTH FOOTER
========================================= */
.login-footer,
.signup-footer {
  text-align: center;
  margin-top: 25px;
  color: #888;
  font-size: 12px;
}

/* =========================================
   AUTH MESSAGE MODALS
========================================= */
.login-message-modal,
.signup-message-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.login-message-modal.show,
.signup-message-modal.show {
  display: flex;
}

/* =========================================
   MESSAGE CONTENT
========================================= */
.login-message-content,
.signup-message-content {
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* =========================================
   MESSAGE ICON
========================================= */
.login-message-icon,
.signup-message-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #e6f4f2;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 22px;
}

/* =========================================
   MESSAGE TITLE
========================================= */
.login-message-content h3,
.signup-message-content h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

/* =========================================
   MESSAGE TEXT
========================================= */
.login-message-content p,
.signup-message-content p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* =========================================
   MESSAGE BUTTON
========================================= */
.login-message-content button,
.signup-message-content button {
  border: none;
  background: #0F766E;
  color: white;
  padding: 10px 28px;
  border-radius: 7px;
  font-family: inherit;
  cursor: pointer;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 480px) {
  .login-card,
  .signup-card {
    padding: 30px 22px;
  }
}
/* =========================================
   EMAIL VERIFICATION
========================================= */
.verification-section {
  display: none;
  text-align: center;
}

.verification-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e6f4f2;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
}

.verification-section h2 {
  font-size: 21px;
  margin-bottom: 8px;
  color: #333;
}

.verification-section > p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 22px;
}

.verification-section .form-group {
  text-align: left;
}

.verification-code {
  width: 100%;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 15px;
  text-align: center;
  letter-spacing: 6px;
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}

.verification-code:focus {
  border-color: #0F766E;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.resend-code-btn {
  display: block;
  width: 100%;
  margin-top: 15px;
  border: none;
  background: transparent;
  color: #0F766E;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.resend-code-btn:hover {
  text-decoration: underline;
}

.back-auth-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: none;
  background: transparent;
  color: #777;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.back-auth-btn:hover {
  color: #0F766E;
}

/* =========================================
   OTP VERIFICATION
========================================= */
.otp-message {
  text-align: center;
  margin-bottom: 25px;
}

.otp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e6f4f2;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.otp-message h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.otp-message p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}

.otp-message strong {
  color: #0F766E;
  font-weight: 600;
}

.resend-otp-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: #777;
  font-family: inherit;
  font-size: 13px;
  margin-top: 18px;
  cursor: pointer;
}

.resend-otp-btn span {
  color: #0F766E;
  font-weight: 600;
}

.resend-otp-btn:hover span {
  text-decoration: underline;
}

.resend-otp-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* =========================================
   MOBILE & TABLET

   Loaded last so these rules can safely
   override earlier partials at narrow
   viewports without needing !important.
========================================= */
/* =========================================
   MOBILE TOPBAR + SIDEBAR DRAWER

   Hidden by default (desktop). The sidebar
   stays exactly as it is above 1024px; below
   that it becomes an off-canvas drawer,
   toggled by auth.js via the .open class.
========================================= */
.mobile-topbar {
  display: none;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #0F766E;
    padding: 0 18px;
    z-index: 950;
  }
  .mobile-topbar .mobile-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
  }
  .mobile-topbar .mobile-topbar-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1000;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
  .main-content {
    margin-left: 0;
    margin-top: 56px;
  }
}
/* =========================================
   LAYOUT — HEADERS, GRIDS, TOOLBARS
========================================= */
@media (max-width: 768px) {
  .main-content {
    padding: 22px;
  }
  /* HEADERS */
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .teacher-info {
    text-align: left;
  }
  /* DASHBOARD CARDS */
  .cards {
    grid-template-columns: 1fr;
  }
  /* STUDENTS TABLE — TIGHTER PADDING */
  .table-container table th,
  .table-container table td {
    padding: 8px 6px;
    font-size: 13px;
  }
  /* ATTENDANCE PAGE — STACK WEEK / SCHOOL OPENED */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* ATTENDANCE CARD — TIGHTER SIDE PADDING */
  .attendance-card {
    padding: 30px 12px;
  }
  /* ATTENDANCE TABLE — TIGHTER TBODY ROWS +
     STICKY S/N + STUDENT NAME COLUMNS

     Uses positional selectors rather than
     .col-sn/.student-name classes: the HTML
     header cells (<th>) never carry those
     classes (only the JS-rendered <td> body
     cells do), so a class-based rule would
     leave the header out of sync with the
     body while scrolling. nth-child covers
     both consistently, on Attendance and
     Reports alike, since they share this
     table markup shape. */
  .attendance-table tbody td {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  /*
   * Headers only: S/N and Student Name use
   * rowspan="2" (Attendance page) or are the
   * only header row (Reports page). Scoping to
   * thead tr:first-child matters because on
   * Attendance, the SECOND header row's first
   * two cells are actually Monday's M/A
   * subheaders, not S/N/Name — targeting them
   * by plain nth-child would incorrectly pin
   * those subheaders on top of the real sticky
   * columns instead.
   */
  .attendance-table thead tr:first-child th:nth-child(-n+2),
  .attendance-table tbody td:nth-child(-n+2) {
    position: sticky;
    z-index: 2;
  }
  .attendance-table thead tr:first-child th:nth-child(1),
  .attendance-table tbody td:nth-child(1) {
    left: 0;
    width: 34px;
    min-width: 34px;
  }
  .attendance-table thead tr:first-child th:nth-child(2),
  .attendance-table tbody td:nth-child(2) {
    left: 34px;
    width: 130px;
    min-width: 130px;
    text-align: left;
  }
  .attendance-table tbody td:nth-child(-n+2) {
    background: #fff;
  }
  .attendance-table thead tr:first-child th:nth-child(-n+2) {
    background: #0F766E;
    z-index: 3;
  }
  .attendance-table tbody td:nth-child(2) {
    border-right: 2px solid #94A3B8;
  }
  /* ATTENDANCE SUMMARY CARDS */
  .attendance-summary {
    grid-template-columns: 1fr;
  }
  .attendance-summary-box {
    flex-wrap: wrap;
  }
  /* STUDENTS PAGE TOOLBAR */
  .student-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .student-actions input {
    width: 100%;
  }
  .student-buttons {
    flex-wrap: wrap;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  /* REPORTS CONTROLS */
  .report-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .report-field {
    width: 100%;
  }
  .report-buttons {
    flex-wrap: wrap;
    height: auto;
  }
  .report-section {
    overflow-x: auto;
  }
  .report-section table {
    min-width: 650px;
  }
  /* WIDE TABLES — SCROLL INSTEAD OF SQUISH */
  .table-container {
    overflow-x: auto;
  }
  .table-container table {
    min-width: 600px;
  }
  /* MODALS */
  .confirm-modal,
  .modal {
    padding: 20px;
  }
  .confirm-card {
    width: 100%;
    max-width: 450px;
  }
  .modal-content {
    width: 100%;
    max-width: 500px;
  }
}
/* =========================================
   SMALL PHONES
========================================= */
@media (max-width: 480px) {
  .main-content {
    padding: 16px;
  }
  header h1,
  .top-header h1 {
    font-size: 24px;
  }
  .card,
  .analytics-card,
  .summary-card,
  .summary-cards {
    padding: 18px;
  }
  .settings-edit-buttons {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .settings-edit-buttons button {
    width: 100%;
  }
}/*# sourceMappingURL=style.css.map */