@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
body {
  padding: 0;
  margin: 0;
  font-family: "Inter", sans-serif !important;
  box-sizing: border-box;
  background: #f8f9fa !important;
}
a {
  text-decoration: none !important;
}
.navbar {
  z-index: 9999 !important;
}
h2.accordion-header {
  padding: 13px 4px;
}
.accordion-button::after {
  display: none !important;
}
.accordion-button .chevron {
  transition: transform 0.3s ease;
}
.accordion-button[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}
.accordion-button {
  box-shadow: none !important;
}
.bg-black {
  background: #473f41 !important;
}
.bg-light-yellow {
  background: #e2cfb7 !important;
}
.bg-light-coffee {
  background: #e2cfb726 !important;
}
.bg-light-green {
  background: #d4edda30 !important;
}
a.edit-btn {
  color: #e2cfb7 !important;
}
.border-light-yellow {
  border-color: #e2cfb7 !important ;
}
.active > .page-link,
.page-link.active {
  border: 1px solid #000 !important;
}
.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.att-btn {
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 5px;
  font-weight: bold;
}
.btn-present {
  background: #c8ffcd;
  color: #0b7d11;
}
.btn-absent {
  background: #ffd1d1;
  color: #a30000;
}
.btn-leave {
  background: #ffe8b3;
  color: #a67300;
}
.att-btn.active {
  outline: 2px solid #000;
}
.summary-box {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.summary-box span {
  float: right;
}
.mark-all-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: bold;
}
.stat-box {
  border: 1px solid #dee2e6;
  transition: transform 0.2s;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}
.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
}
/* ::-webkit-scrollbar {
  width: 2px;
} */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #888;
}
/* Color styling for attendance status */
.status-present {
  color: green;
  font-weight: bold;
}
.status-absent {
  color: red;
  font-weight: bold;
}
.status-leave {
  color: #ffa500;
  font-weight: bold;
}
.left-students-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.left-students-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 900px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}
.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-modal:hover,
.close-modal:focus {
  color: #000;
}
/* -------------------------- */
.attendance-table,
.low-attendance-table,
.day-wise-attendance-table,
.all-subects-table,
.class-summary-table {
  font-size: 14px;
  /* white-space: nowrap; */
}
.all-subects-table .top-header {
  font-size: 16px;
}
.all-subects-table th,
.attendance-table th,
.attendance-table td,
.day-wise-attendance-table th,
.day-wise-attendance-table td,
.class-summary-table td,
.class-summary-table th,
.test-results-table th,
.test-results-table td,
.summary-table th,
.summary-table td,
.present-absentee-table th,
.present-absentee-table td,
.defaulters-table th,
.defaulters-table td,
.subjects-table th,
.subjects-table td,
.schedule-table th,
.schedule-table td {
  vertical-align: middle;
  padding: 8px 5px;
  border: 1px solid #dee2e6;
}
/* .present-absentee-table th,
.present-absentee-table td {
  vertical-align: middle;
} */
/* .day-wise-attendance-table {
    border-collapse: separate;
    border-spacing: 0;
} */
/* .attendance-table th {
  background-color: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
} */
.employee-name {
  text-align: left;
  font-weight: 500;
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 5;
  min-width: 150px;
}
.sr-header {
  background-color: #f8f9fa !important;
}
.employee-name-header {
  position: sticky;
  left: 0;
  background-color: #f8f9fa !important;
  z-index: 15;
  min-width: 150px;
}
.present-cell {
  background-color: #d4edda;
  color: #0b8527 !important;
}
.absent-cell {
  background-color: #f8d7da;
  color: #ff0018 !important;
}
.leave-cell {
  background-color: #fff3cd;
  color: #e5ae0c !important;
}
/* .holiday-cell {
  background-color: #ffe6e6;
} */
.holiday-cell {
  background: #ffe6e65c !important;
}
.low-attendance {
  /* background-color: #dc3545 !important; */
  color: #dc3545 !important;
  font-weight: bold;
}
/* .table-responsive {
  max-height: 600px;
  overflow: auto;
} */
.test-results-table th,
.test-results-table td,
.semester-history-table th,
.semester-history-table td,
.students-attendance-table th,
.students-attendance-table td,
.attendance-status-table th,
.attendance-status-table td,
div#attendanceTableCard th,
div#attendanceTableCard td {
  white-space: nowrap;
  /* padding: 5px; */
}
.summary-stats {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}
.stat-box {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  font-weight: bold;
}
.stat-present {
  background-color: #d4edda;
  color: #155724 !important;
}
.stat-absent {
  background-color: #f8d7da;
  color: #721c24 !important;
}
.stat-leave {
  background-color: #fff3cd;
  color: #856404 !important;
}
.date-header {
  writing-mode: horizontal-tb;
  min-width: 90px;
}
.sunday {
  background-color: #ffe6e6 !important;
}
#loadingSpinner {
  display: none;
  text-align: center;
  padding: 20px;
}
.form-label {
  font-weight: 600;
}
/* monthly summary */
.percentage-cell {
  font-weight: bold;
  text-align: center;
}
.percentage-excellent {
  background-color: #d4edda;
  color: #155724;
}
.percentage-good {
  background-color: #d1ecf1;
  color: #0c5460;
}
.percentage-warning {
  background-color: #fff3cd;
  color: #856404;
}
.percentage-danger {
  background-color: #f8d7da;
  color: #721c24;
}
.percentage-critical {
  background-color: #dc3545;
  color: white;
}
/* Color styling for attendance status */
.status-present,
.present-count {
  color: green !important;
  font-weight: bold;
}
.status-absent,
.absent-count {
  color: red !important;
  font-weight: bold;
}
.status-leave,
.leave-count {
  color: #ffa500 !important;
  font-weight: bold;
}
.test-results-table thead th {
  background-color: #f8f9fa;
  /* position: sticky;
  top: 0; */
  z-index: 10;
}
.highlight-rank {
  background-color: #fff3cd;
}
.test-results-table tbody tr:hover {
  background-color: #f5f5f5;
}
.top-rank {
  background-color: #ffeeba !important;
  color: #000 !important;
  font-weight: bold;
}
.top-rank td {
  background-color: #ffeeba !important;
  color: #000 !important;
  font-weight: bold;
}
.table-hover tbody tr:hover {
  background-color: rgba(102, 126, 234, 0.1);
}
.progress {
  border-radius: 10px;
}
.sticky-col {
  position: sticky !important;
  left: 0;
  z-index: 999;
}
/* Individual left offsets */
.sticky-col-1 {
  left: 0px;
  min-width: 60px;
  z-index: 5;
}
.sticky-col-2 {
  left: 60px;
  min-width: 110px;
  z-index: 5;
}
.sticky-col-3 {
  left: 170px;
  min-width: 180px;
  z-index: 5;
}
.sticky-col-4 {
  left: 350px;
  min-width: 140px;
  z-index: 5;
}
/* Header background fix */
thead th.sticky-col {
  background: #f8f9fa;
  z-index: 2 !important;
}
.stat-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-left: 4px solid;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.stat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}
.chart-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}
.remark-legend {
  background: #ff000024;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 10px;
}
.table-responsive th,
.table-responsive td {
  white-space: nowrap;
}
table#statusTable th,
table#statusTable td {
  white-space: normal;
}
.test-card {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.test-card:hover {
  border-color: #198754;
  background: #f0fff4;
}
.test-card.selected {
  border-color: #198754;
  background: #d1e7dd;
}
.test-card .form-check-input {
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
}
.test-card.selected .form-check-input {
  background-color: #198754;
  border-color: #198754;
}
.select-all-bar {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 16px;
}
.badge-prelims {
  background: #cfe2ff !important;
  color: #0a3161 !important;
}
.badge-mains {
  background: #d1e7dd !important;
  color: #0f5132 !important;
}
.badge-other {
  background: #fff3cd !important;
  color: #664d03 !important;
}
.sticky-col {
  position: sticky;
  background: #fff;
  z-index: 2;
}
.sticky-col-1 {
  left: 0;
  min-width: 55px;
}
.sticky-col-2 {
  left: 55px;
  min-width: 110px;
}
.sticky-col-3 {
  left: 165px;
  min-width: 180px;
}
.sticky-col-4 {
  left: 345px;
  min-width: 180px;
}
.class-summary-table th, .class-summary-table td {
    white-space: normal;
}
/* ==================================================
                Responsive CSS
===================================================== */
@media (max-width: 1700px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1460px !important;
  }
}
@media (max-width: 768px) {
  .offcanvas-header {
    padding: 10px !important;
  }
  .navbar-link a,
  .accordion-item h2 button,
  .accordion-item h2 {
    font-size: 15px !important;
    padding: 10px !important;
  }
  .accordion-item h2 button {
    padding: 0 !important;
  }
  .accordion-body a {
    font-size: 15px !important;
    margin: 0px !important;
    line-height: 25px;
  }
  #mobileSidebar {
    width: 300px;
  }
  .stat-box {
    padding: 6px;
  }
  .subject-type-header h5 {
    font-size: 16px !important;
    line-height: 25px;
  }
}
@media (max-width: 992px) {
  .sticky-col {
    position: static !important;
  }
}
@media (max-width: 1199px) {
  #MainContent {
    margin-top: 40px;
  }
}
