:root {
  --background: rgb(255, 255, 255);
  --text-color: #374151;
  --shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  --blue-header: #1a1d29;
  --font-family: "outfit", serif;
  --sidebar-bg: #011f4b;
  --sidebar-abg: #b3cde045;
  --sidebar-hover: #2a3a3231;
}

body {
  background-color: #f8f9fa; /* Light gray background */
  /* font-family: "Inter", "outfit", serif; */
  font-family: "Nunito Sans", sans-serif;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

.wrapper {
  display: flex;
  min-height: 100vh;
}

.main {
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
  overflow: hidden;
}

#sidebar {
  width: 250px;
  background-color: var(--sidebar-bg);
  transition: all 0.4s ease-in-out;
  position: fixed;
  z-index: 1000;
  align-items: center;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
}

.sidebar-logo a img {
  border-radius: 100px;
}

.sidebar-logo a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

a.sidebar-link {
  color: rgb(255, 255, 255);
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  font-weight: 400;
  border-left: 3px solid transparent;
  font-size: 14px;
  /* padding-top: 5px !important;
  padding-bottom: 5px !important; */
  border-radius: 5px !important;
}

.sidebar-link:hover {
  background: var(--sidebar-abg) !important;
  color: white !important;
}

.status-title {
  font-size: 12px;
  color: #374151;
}

.item-active {
  color: white;
}

.sidebar-item {
  position: relative;
}

.sidebar-footer {
  margin-bottom: 20px;
  margin-top: auto;
}

:enabled.sidebar-dropdown a.sidebar-link:hover {
  background-color: transparent;
  border-left: 3px solid transparent;
  padding-left: 3.8rem;
  color: #0008ff;
}

/*Header*/
.marhaba {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-color) !important;
}
#head {
  right: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  height: 80px !important;
}
.content {
  margin-top: 5rem;
}

/* Notification Style */
.notification-wrapper {
  position: relative;
}

/* Notification Bell Icon */
#notificationBell {
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  cursor: pointer;
  font-size: 20px;
  margin-right: 4px;
  cursor: pointer;
  background-color: #e6e6e6;
}

#notificationBell:hover {
  background-color: #c1c1c1;
}

/* Notification Count Badge */
.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 1px 6px;
  font-size: 10px;
  display: none; /* Hidden by default */
}

.profile-container {
  position: relative;
  display: inline-block;
}

.profile-image {
  width: 50px; /* Adjust this as per actual profile image size */
  height: 50px;
  border-radius: 50%;
}

.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; /* Same as profile image */
  height: 50px;
  border-radius: 50%;
  background: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.notification-container {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  width: 250px; /* Match width with profile image width if needed */
  background: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 10px;
  z-index: 10;
}

.notification-bell:hover + .notification-container,
.notification-container:hover {
  display: block;
}

/* Notification Dropdown */
.notification-dropdown {
  display: none; /* Hidden by default */
  position: absolute;
  top: 45px; /* Position below the bell icon */
  right: 0;
  width: 240px; /* Fixed width */
  max-height: 400px; /* Maximum height for the dropdown */
  background: white;
  box-shadow: var(--shadow);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden; /* Hide overflow for the entire dropdown */
}

.notification-dropdown.show {
  display: block; /* Show the dropdown when the class is added */
}

/* Dropdown Header */
.dropdown-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e9ecef;
  padding: 12px;
}

/* Style for the header content */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* Style for the header title */
.header-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--blue-header);
}

/* Update filter buttons styles */
.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-button {
  flex: 1;
  padding: 4px 18px;
  border: none;
  background-color: #f0f0f0;
  color: #666;
  cursor: pointer;
  border-radius: 2px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-button.active {
  background-color: #7875ab;
  color: white;
}

.filter-button:hover:not(.active) {
  background-color: #e0e0e0;
}

/* Style for mark all as read link */
.mark-all-as-read {
  font-size: 13px;
  color: #5853b7;
  text-decoration: none;
}

.mark-all-as-read:hover {
  text-decoration: underline;
}

/* Update notification items container */
.notification-items-container {
  max-height: 250px; /* Reduced to make room for footer */
  overflow-y: auto;
  padding: 8px;
}

/* Individual Notification Item */
.notification-item {
  padding: 10px;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  line-height: 1rem;
}

.notification-item .notification-no-unread {
  font-size: 13px;
  color: #333;
  text-align: center; /* Center the text */
  padding: 10px; /* Add some padding */
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item.unread {
  background-color: #f8f9fa; /* Light gray background for unread notifications */
}

.notification-item.read {
  background-color: white; /* White background for read notifications */
}

.notification-content {
  font-size: 13px;
  color: #333;
}

.notification-time {
  font-size: 0.8rem;
  color: #666;
}

/* Scrollbar Styling */
.notification-items-container::-webkit-scrollbar {
  width: 6px; /* Width of the scrollbar */
}

.notification-items-container::-webkit-scrollbar-thumb {
  background-color: #ccc; /* Color of the scrollbar thumb */
  border-radius: 4px; /* Rounded corners for the thumb */
}

.notification-items-container::-webkit-scrollbar-track {
  background-color: #f8f9fa; /* Color of the scrollbar track */
}

/* Notification Footer */
.notification-footer {
  padding: 10px 12px;
  text-align: center;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.view-all-link {
  color: #5853b7;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.view-all-link:hover {
  text-decoration: underline;
}

.mark-main {
  display: none;
}
.mark-all-container {
  display: flex;
  position: absolute;
  left: 65px;
  top: 35px;
  align-items: center;
  gap: 5px;
  background-color: white;
  box-shadow: var(--shadow);
  padding: 0.2rem 0.5rem 0.2rem 0.5rem;
  border-radius: 5px;
}
.mark-all-container:hover,
.mark:hover {
  cursor: pointer;
}
.mark {
  background-color: white;
  font-size: 13px;
}

.head-calendar {
  display: none;
  font-size: 20px;
  position: relative;
  margin-bottom: 10%;
  color: #003809;
}
.logo-img {
  display: none;
  height: 60px;
  width: 60px;
}

.toggle-btn i {
  color: #fff;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.icon {
  font-size: 22px;
  margin-right: 4px;
}

.profile-image-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  -ms-transition: background-color 0.2s ease;
  -o-transition: background-color 0.2s ease;
}

.profile-image-wrapper:hover {
  background-color: black;
}

/* Profile Dropdown */
.profile-wrapper {
  position: relative;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  width: 200px;
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.profile-dropdown.show {
  display: block;
}

.dropdown-menu-items {
  padding: 0.5rem 0;
}

.dropdown-menu-items .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
}

.dropdown-menu-items .dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-menu-items .dropdown-item i {
  width: 20px;
  margin-right: 0.5rem;
}

.dropdown-menu-items .dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  border-top: 1px solid #e9ecef;
}

.dropdown-menu-items .text-danger {
  color: #dc3545;
}

.dropdown-menu-items .text-danger:hover {
  background-color: #dc354520;
}

/*modal styles*/

#studentName {
  font-size: 14px;
  font-weight: 600 !important;
  color: #6c757d !important;
}
/* Custom Styles for the Modal */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
  padding: 1rem 1rem 1rem 1rem;
}

.modal-title {
  font-size: 0.875rem;
  color: #6c757d !important;
}
.form-label {
  color: #515151 !important;
  font-weight: 600;
  font-size: 12px;
}

.form-control {
  font-size: 11px !important;
}

.form-label input {
  font-size: 11px !important;
}
.modal-body {
  padding: 1.5rem;
}

/* User Avatar */
.rounded-circle {
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.email-name {
  font-size: 14px;
}

/* Associated Students */
.student-list .card {
  border-radius: 8px;
  background-color: #ffffff;
  border: none;
}

.student-list .card-body {
  padding: 0.75rem;
}

.student-list h6 {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.student-list p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}
.email-name {
  font-size: 14px;
  color: #6c757d !important;
}

.reset-btn {
  width: fit-content;
  background-color: white !important;
  color: rgb(255, 123, 0);
  border: 1px solid rgb(255, 123, 0);
  padding: 3px 4px 3px 4px;
  border-radius: 5px;
  transition: ease;
}

.reset-btn:hover {
  color: white;
  border: 1px solid rgb(255, 175, 99) !important;
  background-color: rgb(255, 175, 99) !important;
}

.cancel-btn,
.save-btn {
  font-size: 11px !important;
}

.save-btn {
  background-color: #007213;
  color: white;
  border: none;
}
.save-btn:hover {
  background-color: #005e10;
  color: white;
  border: none;
}
.content-subtitle {
  font-size: 11px;
}

.greetings {
  font-weight: 600 !important;
  letter-spacing: 0.1rem !important;
  font-size: 14px !important;
  color: var(--text-color) !important;
}

.btn-link {
  text-decoration: none;
}

/* DASHBOARD */
.content {
  background-color: #f8f9fa;
  padding: 20px;
  min-height: 100%;
}

.card {
  border: 1px solid #dee2e6; /* Subtle border */
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
}

.card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.profile {
  object-fit: cover;
}

.student-info strong,
.quick-stats strong {
  display: inline-block;
  width: 120px;
  color: #6c757d;
}
.studentdetails {
  padding-top: 4px;
  margin-left: 5px;
  color: var(--blue-header);
}

.card-head-title {
  font-size: 13px; /* uniform title size */
  font-weight: 600; /* slightly bold */
  color: var(--blue-header); /* unified dark accent */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.card-head-title i {
  font-size: 1.5rem; /* balanced with text */
  color: var(--blue-header);
  vertical-align: middle;
  transition: color 0.25s ease, transform 0.2s ease;
}

/* Hover effect for header icons (optional but smooth) */
.card-head-title:hover i {
  color: #0d6efd; /* Bootstrap primary color */
  transform: scale(1.1);
}

/* ===============================
   ADD STUDENT BUTTON (simple plus)
   =============================== */
#addStudentBtn {
  border: none;
  background: transparent;
  padding: 0.2rem 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #454cff26;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#addStudentBtn i {
  font-size: 1.5rem; /* slightly larger for visibility */
  color: #1e124a;
  font-weight: 1000; /* makes the "+" look bold */
  line-height: 1;
  transition: all 0.2s ease;
}

/* Hover feedback */
#addStudentBtn:hover i {
  color: #5b72bd;
  transform: scale(1.15);
}

#addStudentBtn:hover {
  background-color: rgba(13, 110, 253, 0.08); /* light hover tint */
  border-radius: 8px;
}

#verifyIdBtn {
  border-color: #1e124a;
  color: #1e124a;
}
#verifyIdBtn:hover {
  background-color: #1e124a;
  color: white;
}

.modal-content {
  border-radius: 1rem;
}

p.student-name {
  color: var(--blue-header);
  font-weight: 600;
  font-size: 10px;
}
.studentdetails {
  font-size: 16px;
}
.student-grade,
.student-section,
.dateSync {
  font-size: 11px;
  line-height: 1rem;
}

.dateSync {
  color: rgb(71, 71, 71);
}

.sync-button {
  margin-top: 6px;
  padding: 5px 10px;
  background-color: #1e124a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.sync-button i {
  font-size: 12px;
}
.sync-button:hover {
  background-color: #5b72bd;
}

.studentPerformance,
.student-population {
  font-size: 16px;
  font-weight: bold;
}
/* 🌟 Tapping Logs Container */

/* 📦 Main Container */
.tapping-logs {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 435px;
  display: flex;
  flex-direction: column; /* Ensures title and list are stacked */
  overflow: hidden; /* Prevents scrolling on the whole container */
}

/* 🕒 Title Container (Fixed) */
.tapping-logs-title {
  font-size: 16px; /* Smaller font */
  color: var(--blue-header);
  text-align: start;
  font-weight: bold;
  padding: 10px;
  background-color: white;
  padding-top: 2px !important;
  position: sticky;
  top: 0;
  z-index: 10;
}
.tapping-head {
  border-bottom: 1px solid rgb(237, 236, 236);
}
.fa-user,
.fa-calendar-minus {
  color: #1e124a;
  fill: #1e124a;
}

/* 📜 Scrollable List */
.tapping-logs-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow-y: auto; /* Allows scrolling */
  flex-grow: 1; /* Takes remaining space */
}

/* 🏷️ Log Item */
.tapping-logs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  font-size: 0.75rem; /* Smaller text */
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

/* 🏷️ Profile Image */
.tapping-log-profile {
  width: 30px; /* Smaller profile image */
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
}

/* 📝 Log Details */
.tapping-log-left {
  display: flex;
  align-items: center;
}

/* 📅 Name and Time */
.tapping-log-details {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem; /* Smaller text */
}

/* 👤 Name */
.tapping-log-name {
  font-size: 8px;
  font-weight: bold;
  color: #1f2937;
}

/* ⏰ Time and Date */
.tapping-log-time-container {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  color: #6b7280;
}

/* ✅ Status Styles */
.tapping-log-status {
  font-size: 0.1px; /* Smaller text */
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
}

/* 🟢 Checked In */
.tapping-in {
  background-color: #fefefe;
  color: #065f46;
  font-size: 10px;
}

/* 🔴 Checked Out */
.tapping-out {
  background-color: #fefefe;
  color: #b91c1c;
}

/* 📜 Scrollbar Styling */
.tapping-logs-list::-webkit-scrollbar {
  width: 4px;
}

.tapping-logs-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.announcements {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: auto;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.announcement-content {
  font-size: 13px !important;
  padding-top: 3px;
}
.date {
  font-size: 12px;
  color: #555;
}

p {
  color: rgb(73, 73, 73);
  font-size: 14px;
  letter-spacing: 0.03rem;
}

.read-more a {
  text-decoration: none;
  color: #007bff;
  font-size: 14px;
}

.read-more a:hover {
  text-decoration: underline;
}

/*graphs*/
.chart {
  width: 100%; /* Keeps width responsive */
  height: auto; /* Set your desired height */
}

.student-1,
.student-2 {
  font-family: var(--font-family);
}
.studentAttendance.card-head-title {
  display: flex;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-header);
  margin: 0;
  line-height: 1.4;
}

.attendance-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.attendance-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #1e1e1e;
}

.attendance-top i.bi {
  font-size: 20px;
  color: var(--blue-header);
}

.attendance-year {
  font-size: 13px;
  color: var(--blue-header);
}

.attendance-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  color: #1e1e1e;
  margin-left: 28px; /* aligns under the title text, not icon */
}

.legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 6px;
}

/* =========================
   FullCalendar Custom Styles
   ========================= */

/* Highlight today's date */
.fc-day-today {
  background-color: #b2b3d4 !important;
  border-radius: 5px;
}

/* Toolbar adjustments */
.fc-toolbar {
  padding: 0 !important;
  margin-bottom: 0.5rem !important;
  margin-left: auto !important;
}

/* Toolbar title */
.fc-toolbar-title {
  font-size: 1rem !important;
  font-weight: bold;
  color: var(--blue-header);
  text-transform: capitalize;
}

/* Today button */
.fc-today-button {
  background-color: #2256ff !important;
  color: white !important;
  margin-bottom: 0.2rem !important;
  font-weight: bold !important;
  border: none !important;
  margin-left: 0.8rem !important;
  font-size: 1rem !important;
  padding: 0 !important;
}

/* Prev/Next buttons */
.fc-prev-button,
.fc-next-button {
  border: none !important;
  height: fit-content;
  background-color: rgb(2, 0, 65) !important;
  padding: 0.2rem 0.5rem !important;
}

.fc-icon-chevron-left,
.fc-icon-chevron-right {
  color: white;
}

/* Day numbers & column headers */
.fc-daygrid-day-number {
  color: #4685c8 !important;
  font-weight: bold;
  font-size: 12px !important;
}

.fc-col-header-cell-cushion {
  color: var(--blue-header) !important;
  font-size: 12px;
}

/* Hide default FullCalendar header */
.fc-header-toolbar {
  display: none !important;
}

.custom-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px;
}

.month-display {
  font-size: 13px;
  font-weight: bold;
  color: var(--blue-header);
  text-transform: capitalize;
}

.calendar-buttons {
  display: flex;
  gap: 10px;
}

.today-btn {
  background-color: #5b72bd;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 15px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
}

.today-btn:hover {
  background-color: #3e5bbb;
}

.nav-buttons {
  display: flex;
  background-color: rgb(2, 0, 65);
  border-radius: 4px;
}

.prev-btn,
.next-btn {
  color: white;
  border: none;
  background-color: transparent;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}
.card .fc {
  min-height: 250px;
}

/* =========================
   User Activity Logs Styles
   ========================= */

/* 📦 Main Container */
.user-activity-logs {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  /* height: 320px; */
  display: flex;
  flex-direction: column; /* Ensures title and list are stacked */
  overflow: hidden; /* Prevents whole container from scrolling */
}

/* 📌 Title (Fixed) */
.activity-logs-title {
  font-size: 16px;
  font-weight: bold;
  text-align: start;
  margin-top: 3px;
  background-color: white;
  margin-left: 3px;
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--blue-header);
}

.log-container {
  border-bottom: 1px solid #bc3d3d;
}

.userlogs-head {
  border-bottom: 1px solid #e5e7eb;
}

/* 📜 Scrollable List */
.activity-logs-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow-y: auto; /* Enables scrolling */
  flex-grow: 1;
}

/* 📝 Log Item */
.activity-logs-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  font-size: 0.75rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

/* ⏰ Time */
.activity-log-time {
  font-weight: bold;
  color: #374151;
}

/* 🔹 Action */
.activity-log-action {
  color: #4b5563;
  font-style: italic;
}

/* 🚀 Scrollbar Styling */
.activity-logs-list::-webkit-scrollbar {
  width: 4px;
}

.activity-logs-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* ===============================
   GRADES PAGE - UPDATED STYLES
   =============================== */

/* General container layout */
.container-fluid {
  max-width: 100%;
}

/* Grades note paragraph */
.grades-note {
  font-size: 15px;
  color: #333;
  margin-bottom: 1.5rem;
}

/* ===============================
   TABLE STYLING
   =============================== */

.grades-table,
.deportment-table,
.eccd-table {
  border-collapse: collapse;
  width: 100%;
  padding-bottom: 20px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.grades-table th,
.deportment-table th,
.eccd-table th,
.grades-table td,
.deportment-table td,
.eccd-table td {
  padding: 12px 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  text-align: center;
}

.grades-table th,
.deportment-table th,
.eccd-table th {
  background-color: #f2f2f2;
  font-weight: 700;
  color: var(--blue-header);
  text-align: center;
}

.grades-table td:first-child,
.deportment-table td:first-child,
.eccd-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #333;
}

/* ===============================
   SELECT2 DROPDOWN STYLES
   =============================== */

.select2-container {
  width: inherit !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #e2e2e2 !important;
}

/* Match Select2 display size to Bootstrap form-select-sm */
.select2-container .select2-selection--single {
  height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2)) !important;
  padding: 0.25rem 0.5rem !important;
  line-height: 1.5 !important;
  border-radius: 0.25 !important;
}

/* Adjust displayed text position */
.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  /* line-height: 1.5 !important; */
  margin-top: -2px !important;
  font-size: 11px;
}

/* Arrow alignment fix */
.select2-container .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
}

/* Dropdown results hover */
.select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #11006f !important;
  color: #fff !important;
}

/* Selected item inside dropdown */
.select2-results__option--selected {
  background-color: #11006f !important;
  color: #fff !important;
}

/* Remove default gray highlight overlay */
.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #11006f !important;
  color: #fff !important;
  font-size: 11px;
}

.input-group {
  flex-wrap: nowrap !important;
}

/* ===============================
   NEW DROPDOWNS (SCHOOL YEAR / SEMESTER)
   =============================== */

#schoolYear,
#semester {
  font-size: 14px;
  font-weight: 500;
  padding-top: 8.5px !important;
  padding-bottom: 8px !important;
}

.row .select2-container {
  width: 100% !important;
}

/* PAYMENT */
/* General styles for the table container */
.table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

/* Styles for the payment table */
#paymentTable,
#paymentDetailsTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%; /* Adjust based on your table's minimum width */
}

#paymentTable th,
#paymentTable td #paymentDetailsTable th,
#paymentDetailsTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  font-size: 14px;
}

#paymentTable th,
#paymentDetailsTable th {
  background-color: #f8f9fa; /* Keep the background color */
  border-bottom: 2px solid #dee2e6; /* Keep the border */
  font-weight: 600; /* Keep the font weight */
  white-space: nowrap; /* Prevent text wrapping */
}

.tb-head {
  color: var(--blue-header) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

#paymentTable .tb-head,
#paymentDetailsTable .tb-head {
  color: var(--blue-header) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#paymentTable th,
#paymentTable td {
  width: auto !important; /* Ensure consistent column widths */
  padding: 12px; /* Ensure consistent padding */
}

#paymentTable td,
#paymentDetailsTable td {
  color: #333;
  font-size: 14px;
}

#paymentTable tr:last-child td,
#paymentDetailsTable tr:last-child td {
  border-bottom: none;
}

/* Ensure amount columns are left-aligned */
#paymentTable td.amount,
#paymentDetailsTable td.amount {
  text-align: left;
}

/* Styles for the status indicators */
.status {
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-block;
}

/* Styles for the payment purpose column */
.payment-purpose {
  max-width: 200px;
}

/* Responsive table styles */
@media (max-width: 992px) {
  #paymentTable th,
  #paymentTable td {
    min-width: 120px;
  }
  .payment-purpose {
    min-width: 200px;
  }
}

/* Styles for the payment cards */
.payment-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.payment-card .card-body {
  padding: 20px;
}

.payment-card .card-title {
  font-size: 13px;
  margin-bottom: 0rem;
  color: #495057;
}
#sidebar:not(.collapsed) .amount-display {
  font-size: 12px;
}
.amount-display {
  font-size: 20px;
}

.amount {
  font-size: 19px;
  padding-left: 3px;
}

.dataTables_filter {
  margin-bottom: 20px !important;
  overflow-x: hidden;
}
#sidebar:not(.collapsed) .amount-display {
  font-size: 12px;
}
/* ANNOUNCEMENT */
/* Announcements Container */
.announcements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Announcement Card */
.announcement-card {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  /* transition: background-color 0.3s ease; */
  display: flex;
  flex-direction: column;
  /* background: linear-gradient(320deg, rgba(201, 253, 245, 0.7) 0, #fff 70%); */
  border-top: 10px solid #1a1a8fde;
}

/* .announcement-card.unread {
  background-color: #ececec; Light gray background for unread announcements
} */

.announcement-card.read {
  background-color: #ffffff; /* White background for read announcements */
}

.announcement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Card Title */
.announcement-title {
  color: #11006f;
  font-size: 12px;
  margin-right: 10px;
  font-weight: 600;
  flex: 1;
}

/* Card Content */
.announcement-card p {
  color: #6b7280;
  margin: 15px 0;
  line-height: 1.5;
  flex: 1;
}

/* Read More Link */
.read-more {
  color: #2563eb;
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Badge Styling */
.badge {
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 500;
}

/* Modal Styles */
.modal-content {
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

.modal-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
}

.modal-title {
  color: #11006f;
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body h4 {
  color: #11006f;
  margin-bottom: 1rem;
  font-weight: 600;
}

.modal-body h5 {
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.modal-body p,
.modal-body ul {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-body ul {
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
}

/* STUDENTLOGS */

/* General styles for the table container */
.table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

/* Styles for the tapping logs table */
#tappingLogsTable {
  border-collapse: separate;
  border-spacing: 0;
  /* Adjust based on your table's minimum width */
}

#tappingLogsTable th,
#tappingLogsTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

#tappingLogsTable th {
  background-color: #f8f9fa; /* Keep the background color */
  border-bottom: 2px solid #dee2e6; /* Keep the border */
  font-weight: 600; /* Keep the font weight */
  white-space: nowrap; /* Prevent text wrapping */
}
.table-head {
  color: var(--blue-header);
  font-size: 16px;
}

.dataTables_filter {
  margin-bottom: 20px !important;
  overflow-x: hidden;
}
#tappingLogsTable th,
#tappingLogsTable td {
  width: auto !important; /* Ensure consistent column widths */
  padding: 12px; /* Ensure consistent padding */
}

#tappingLogsTable td {
  color: #212529;
  font-size: 14px;
}

#tappingLogsTable tr:last-child td {
  border-bottom: none;
}

/* Ensure status columns are left-aligned */
#tappingLogsTable td.status {
  text-align: left;
}

/* Responsive table styles */
@media (max-width: 992px) {
  #tappingLogsTable th,
  #tappingLogsTable td {
    min-width: 120px;
  }
}

/* Remove Sticky Header */
.dataTables_wrapper .dataTables_scrollHead {
  position: static !important;
  background: none !important;
  box-shadow: none !important;
}

/* Search Box */
.dataTables_filter input {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 6px;
  background-color: white;
  margin-left: 5px;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 10px;
}

/* Restore Hover Effect */
table.dataTable.hover tbody tr:hover {
  background-color: #f1f1f1;
}

/* Remove Unwanted Styles */
.tapping-logs-table thead {
  position: static !important;
}

.tapping-logs-table th,
.tapping-logs-table td {
  text-align: left;
  white-space: nowrap;
}

/* Remove sorting icons from the first column (Profile) */
table.dataTable thead th:first-child {
  pointer-events: none; /* Disable clicking */
}

table.dataTable thead th:first-child::after,
table.dataTable thead th:first-child::before {
  display: none !important; /* Hide sorting triangles */
}

/* Adjust width for Profile column*/
#tappingLogsTable.dataTable thead th:first-child,
#tappingLogsTable.dataTable tbody td:first-child {
  justify-content: center;
  text-align: center;
}
#tappingLogsTable.dataTable thead th:first-child {
  text-align: center !important;
}
#tappingLogsTable.dataTable tbody td:first-child {
  text-align: center !important;
}

/* Adjust padding and margin for the profile column */
table.dataTable tbody td:first-child {
  padding: 10px;
  margin: 0;
}

/* Ensure profile images fit well */
table.dataTable tbody td:first-child img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0;
}
/* Status styles */

.tap-out {
  border-radius: 5cm;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  justify-self: center;
  white-space: nowrap;
  padding: 4px 10px !important;
  background-color: rgba(255, 77, 79, 0.1);
  color: rgb(255, 77, 79);
}
.tap-in {
  border-radius: 5cm;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  justify-self: center;
  white-space: nowrap;
  padding: 4px 10px !important;
  background-color: rgba(0, 200, 81, 0.1);
  color: rgb(0, 200, 81);
}

.custom-sync {
  margin-top: 6px;
  padding: 5px 10px;
  background-color: #1e124a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: background-color 0.3s ease;
}

.custom-sync i {
  font-size: 12px;
}
.custom-sync:hover {
  background-color: #5b72bd;
}

.alertify .ajs-footer .ajs-buttons .ajs-button {
  border-radius: 5px;
  border: none !important;
}

button.ajs-button.ajs-ok {
  background-color: var(--bs-primary) !important;
  color: #cdd4dc;
}

button.ajs-button.ajs-ok:hover {
  background-color: #2ca849 !important;
  color: white;
}

button.ajs-button.ajs-cancel {
  background: whitesmoke;
  color: #000;
}

button.ajs-button.ajs-cancel:hover {
  background: rgb(233, 231, 231);
  color: #000;
}

.ajs-error {
  color: white !important;
}

.ajs-success {
  color: white !important;
}

/* ================================
   RESPONSIVE MEDIA QUERIES - ORGANIZED
   ================================ */

/* MOBILE VIEW (767px and below) */
@media (max-width: 768px) {
  /* Sidebar mobile styles */

  .from_logs {
    padding-right: 0px !important;
  }
  .from_logs2 {
    padding-right: 10.5px !important;
  }

  .sync_indi {
    position: static !important;
  }

  #sidebar {
    flex-direction: row;
    height: fit-content;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    padding: 0;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--blue-header);
    margin-bottom: 1px;
  }

  .side_logs {
    padding-left: 8px !important;
  }
  .side_finance {
    padding-right: 8px !important;
  }

  .sidebar-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .sidebar-nav :nth-child(1) {
    order: 3;
  }
  .sidebar-nav :nth-child(2) {
    order: 4;
  }
  .sidebar-nav :nth-child(3) {
    order: 5;
  }
  .sidebar-nav :nth-child(4) {
    order: 2;
  }
  .sidebar-nav :nth-child(5) {
    order: 1;
  }

  .sidebar-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    font-size: 1.5rem;
  }

  /* All sidebar links as circles */
  a.sidebar-link {
    border-radius: 50% !important;
    padding: 12px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex-direction: column;
    color: var(--dark-bg);
    white-space: nowrap;
    font-weight: 500;
    border: 2px solid transparent; /* Add border for active state */
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: transparent; /* Default background */
  }

  a.sidebar-link.active {
    background: #ffffff !important; /* White background for active page */
    border: 2px solid var(--blue-header) !important; /* Blue border for active page */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transform: scale(1.1);
  }

  a.sidebar-link.active:hover {
    background: #ffffff !important;
    border: 2px solid var(--blue-header) !important;
    cursor: default !important;
    transform: scale(1.1);
  }

  /* INACTIVE PAGE STYLING - White icon, transparent background */
  a.sidebar-link:not(.active) {
    background: transparent !important;
    border: 2px solid transparent !important;
  }

  a.sidebar-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.544) !important; /* Subtle hover effect */
    border: 2px solid transparent !important;
    transform: scale(1.05);
  }

  /* Icon styling */
  a.sidebar-link svg {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    transition: all 0.3s ease;
  }

  /* Hide text in mobile */
  .list-title {
    font-size: 10px;
    display: none !important;
  }

  /* SVG Colors - INACTIVE items (White icons) */
  a.sidebar-link:not(.active) svg path,
  a.sidebar-link:not(.active) svg {
    fill: #ffffff !important; /* White for inactive icons */
    stroke: #ffffff !important; /* White for inactive icons */
    stroke-width: 1px !important;
  }

  /* SVG Colors - ACTIVE items (Blue icons) */
  a.sidebar-link.active svg path,
  a.sidebar-link.active svg {
    fill: var(--blue-header) !important; /* Blue for active icons */
    stroke: var(--blue-header) !important; /* Blue for active icons */
    stroke-width: 1px !important;
  }

  /* SVG Colors - Hover states for INACTIVE items */
  a.sidebar-link:not(.active):hover svg path,
  a.sidebar-link:not(.active):hover svg {
    fill: #ffffff !important; /* Keep white on hover for inactive */
    stroke: #ffffff !important;
  }

  /* SVG Colors - Hover states for ACTIVE items (no change) */
  a.sidebar-link.active:hover svg path,
  a.sidebar-link.active:hover svg {
    fill: var(--blue-header) !important; /* Keep blue on hover for active */
    stroke: var(--blue-header) !important;
  }

  /* Header mobile styles */
  .school-name-mobile {
    display: block !important;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blue-header);
    margin-left: 15px;
    white-space: nowrap;
  }

  .marhaba {
    font-size: 18px;
    display: none;
  }

  /* Hide elements in mobile */
  .logo-img,
  .sidebar-logo,
  .calendar-item,
  .sidebar-footer,
  .sidebar-toggle {
    display: none !important;
  }

  /* Header layout */
  #head {
    left: 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  /* Card responsive styles */
  .card-head-title {
    font-size: 14px;
  }

  .card-head-title i,
  #addStudentBtn i {
    font-size: 1.4rem;
  }

  /* Grades table responsive */
  .grades-note {
    font-size: 14px;
    text-align: justify;
  }

  .grades-table th,
  .deportment-table th,
  .eccd-table th,
  .grades-table td,
  .deportment-table td,
  .eccd-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  /* Select2 responsive */
  .row .col-md-6,
  .row .col-md-3 {
    margin-bottom: 10px;
  }

  /* Announcements responsive */
  .announcements-container {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .announcement-card {
    margin-bottom: 15px;
  }

  .head-calendar {
    display: block;
  }

  #sidebar a.sidebar-link.active {
    background-color: #ffffff !important;
    border: 2px solid var(--blue-header) !important;
  }

  /* Override any conflicting SVG color styles */
  #sidebar a.sidebar-link.active svg,
  #sidebar a.sidebar-link.active svg path {
    fill: var(--blue-header) !important;
    stroke: var(--blue-header) !important;
  }

  /* Ensure no other styles override our mobile active state */
  #sidebar .sidebar-item .sidebar-link.active,
  #sidebar .sidebar-nav .sidebar-link.active,
  #sidebar .sidebar-link.active:not(.collapsed) {
    background-color: #ffffff !important;
    border-color: var(--blue-header) !important;
  }
}

/* SMALLER MOBILE SCREENS (680px and below) */
@media (max-width: 680px) {
  .sidebar-nav {
    gap: 1rem !important;
    padding: 0.5rem 0.8rem !important;
  }

  a.sidebar-link {
    width: 48px !important;
    height: 48px !important;
    padding: 10px !important;
  }

  a.sidebar-link svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* VERY SMALL SCREENS (480px and below) */
@media (max-width: 480px) {
  .sidebar-nav {
    gap: 0.8rem !important;
    padding: 0.5rem 0.5rem !important;
  }

  a.sidebar-link {
    width: 46px !important;
    height: 46px !important;
    padding: 8px !important;
  }

  a.sidebar-link svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* TABLET VIEW (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar-nav {
    padding: 0.7rem 0 !important;
    z-index: 10;
    margin-top: 1.5rem;
  }

  .school-name-mobile {
    margin-left: 8px !important;
  }

  /* Sidebar tablet styles */
  #sidebar {
    width: 230px !important;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
    height: 100%;
  }

  .main {
    margin-left: 230px !important;
    transition: margin-left 0.3s ease-in-out;
  }

  /* Collapsed Sidebar */

  #sidebar.collapsed .sidebar-logo {
    padding: 1rem 0;
    text-align: center;
  }

  #sidebar.collapsed .sidebar-logo a img {
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }

  #sidebar.collapsed .list-title {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  /* Sidebar links */
  #sidebar .sidebar-link {
    display: flex;
    align-items: center;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    transition: padding 0.3s ease-in-out, justify-content 0.3s ease-in-out;
  }

  /* Collapsed sidebar links */
  #sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 0.8rem 0.5rem;
  }

  #sidebar.collapsed .sidebar-link svg {
    margin-right: 0;
    width: 22px;
    height: 22px;
  }

  #sidebar.collapsed .sidebar-nav {
    padding: 0.5rem 0;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  #sidebar.collapsed .sidebar-item {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Hide elements when collapsed */
  #sidebar.collapsed .sidebar-footer,
  #sidebar.collapsed .sidebar-header,
  #sidebar.collapsed .sidebar-text,
  #sidebar.collapsed .az_school {
    display: none;
  }

  /* Active link styles */
  #sidebar .sidebar-link.active {
    background: var(--sidebar-abg);
    border-left: 4px solid #bbeffb;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  }

  #sidebar .sidebar-link.active svg,
  #sidebar .sidebar-link.active svg path {
    fill: #fff;
    stroke: #fff;
  }

  /* Keep active background in collapsed tablet view */
  #sidebar.collapsed .sidebar-link.active {
    background: var(--sidebar-abg) !important;
    color: #fff !important;
    border-radius: 6px !important;
  }

  #sidebar.collapsed .sidebar-link.active svg,
  #sidebar.collapsed .sidebar-link.active svg path {
    fill: #fff !important;
    stroke: #fff !important;
  }

  /* Adjust main content when sidebar is collapsed */
  #sidebar.collapsed + .main {
    margin-left: 75px !important;
  }

  #sidebar.collapsed + .main #head {
    left: 75px !important;
  }

  #sidebar.collapsed {
    width: 75px !important;
  }

  /* Header adjustments */
  #head {
    left: 230px;
    transition: left 0.3s ease-in-out;
  }

  /* Hide toggle button in tablet view */
  /* .sidebar-toggle {
    display: none !important;
  } */

  .sidebar-toggle {
    margin-left: 14px !important;
    font-size: 18px !important;
    background: transparent;
    border: none;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 10px; /* gives space for the circle */
  }

  /* Hover effect */
  .sidebar-toggle:hover {
    background-color: #011f4b; /* Bootstrap blue or use your custom color */
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* optional soft shadow */
  }

  .az_school {
    font-size: 1.2rem;
    font-weight: 500;
    padding-left: 12px;
  }
}

/* DESKTOP VIEW (1025px and above) */

@media (min-width: 1025px) {
  /* Sidebar default (expanded) */
  #sidebar {
    width: 250px;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
  }

  /* Sidebar navigation */
  .sidebar-nav {
    padding: 0.7rem 0;
    z-index: 10;
    margin-top: 1.5rem;
  }

  /* Sidebar links */
  a.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.625rem;
    border-radius: 6px;
    transition: padding 0.3s ease-in-out, justify-content 0.3s ease-in-out;
  }

  .sidebar-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
  }

  /* Active link styles */
  #sidebar .sidebar-link.active {
    background: var(--sidebar-abg);
    border-left: 4px solid #bbeffb;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  }

  /* SVG colors */
  a.sidebar-link svg path,
  a.sidebar-link svg {
    fill: #f8f9fa !important;
    stroke: #f8f9fa !important;
  }

  a.sidebar-link.active svg path,
  a.sidebar-link.active svg {
    fill: #f8f9fa !important;
    stroke: #f8f9fa !important;
  }

  /* Main content and header (expanded) */
  .main {
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out;
  }

  #head {
    left: 250px;
    transition: left 0.3s ease-in-out;
  }

  /* -------- Collapsed Sidebar (Desktop) -------- */
  #sidebar.collapsed {
    width: 75px !important;
  }

  #sidebar.collapsed .sidebar-logo {
    padding: 1rem 0;
    text-align: center;
  }

  #sidebar.collapsed .sidebar-logo a img {
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }

  #sidebar.collapsed .list-title,
  #sidebar.collapsed .sidebar-footer,
  #sidebar.collapsed .sidebar-header,
  #sidebar.collapsed .sidebar-text,
  #sidebar.collapsed .az_school {
    display: none !important;
    opacity: 0;
    visibility: hidden;
  }

  #sidebar.collapsed .sidebar-nav {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 0.8rem 0.5rem;
  }

  #sidebar.collapsed .sidebar-link svg {
    margin-right: 0;
    width: 22px;
    height: 22px;
  }

  /* Active link stays visible in collapsed mode */
  #sidebar.collapsed .sidebar-link.active {
    background: var(--sidebar-abg) !important;
    color: #fff !important;
  }

  #sidebar.collapsed .sidebar-link.active svg,
  #sidebar.collapsed .sidebar-link.active svg path {
    fill: #fff !important;
    stroke: #fff !important;
  }

  /* Main and header shift when collapsed */
  #sidebar.collapsed + .main {
    margin-left: 75px !important;
  }

  #sidebar.collapsed + .main #head {
    left: 75px !important;
  }

  /* Sidebar toggle button (desktop) */
  .sidebar-toggle {
    margin-left: 14px !important;
    font-size: 20px !important;
    background: transparent;
    border: none;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
  }

  .sidebar-toggle:hover {
    background-color: #011f4b;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .school-name-mobile {
    margin-left: 4px !important;
  }

  .az_school {
    font-size: 1.2rem;
    font-weight: 500;
    padding-left: 12px;
  }
}

/* ================================
   TRANSITION STYLES (All screen sizes)
   ================================ */

/* Ensure smooth transitions */
#sidebar,
.main,
#head {
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

/* Sidebar logo adjustments */
.sidebar-logo {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo a img {
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.swal2-actions > button {
  margin: 10px !important;
}

/*data tables try*/

.dataTables_info,
.dataTables_length,
.dataTables_filter {
  font-size: 13px !important;
  color: rgb(101, 101, 101) !important;
}

/* Align all table headers and cells to the left */
table.dataTable th,
table.dataTable td {
  text-align: left !important; /* forces left alignment */
  vertical-align: middle !important; /* optional: vertical alignment */
}

/* Pagination Container */
.dataTables_paginate {
  margin-top: 20px !important;
  display: flex;
  justify-content: center; /* center the pagination */
}

/* Pagination Buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #0d6efd !important; /* Bootstrap primary color */
  padding: 0.4rem 0.75rem !important;
  border-radius: 0.375rem !important; /* rounded */
  border: 1px solid #dee2e6 !important;
  margin-left: 5px !important;
  background: white !important;
  cursor: pointer;
  font-size: 14px;
}

/* Hover */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e9ecef !important;
  color: #0d6efd !important;
  border-color: #ced4da !important;
}

/* Active (current page) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd !important;
}

/* Disabled */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: #6c757d !important;
  border-color: #dee2e6 !important;
  pointer-events: none;
  opacity: 0.5;
}

.dataTables_info {
  padding-top: 20px !important;
}

div #grade-table-deport_paginate,
#grade-table-deport_info,
#grade-table-acad_paginate,
#grade-table-acad_info,
#grade-table-eccd_paginate,
#grade-table-eccd_info {
  display: none;
}

.account {
  width: 13.5% !important;
}

.empty_announcement {
  width: 150px !important;
  height: 150px !important;
  margin-top: 150px;
}

.list-title {
  font-size: 13px !important;
}

.view_announcement {
  font-size: 11px;
}

label {
  font-size: 13px;
}

.table_title {
  font-size: 15px;
}

table.dataTable > thead > tr > th,
table.dataTable tbody td {
  font-size: 11px !important;
}

.no_ann {
  font-size: 12px;
}

.sync-button {
  font-size: 11px;
}

.select2-results__option--selectable {
  font-size: 11px;
}

.select2-container--default .select2-results__option--disabled {
  font-size: 12px;
}

.sync_indi {
  position: absolute;
  right: 60px;
}

/*otp modal*/

.otp_head {
  text-align: center;
  margin-bottom: 20px;
}

.otp_head h1 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.otp_head p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.otp-input {
  width: 50px;
  height: 50px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  color: #111;
}

.otp-input:hover {
  border-color: #ddd;
}

.otp-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: scale(1.05);
}

.otp-input.filled {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.otp-input.error {
  border-color: #ef4444;
  animation: shake 0.5s ease-in-out;
}

.otpdialog {
  width: 400px !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.verify-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.verify-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.verify-btn:active:not(:disabled) {
  transform: translateY(0);
}

.verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.resend-container {
  text-align: center;
}

.resend-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.resend-btn {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.resend-btn:hover {
  color: #764ba2;
  text-decoration: underline;
}

.resend-btn:disabled {
  color: #999;
  cursor: not-allowed;
}

.success-message {
  display: none;
  text-align: center;
  color: #10b981;
  font-size: 14px;
  margin-top: 16px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timer {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}

.otp_head {
  justify-content: center;
}

@media (max-width: 768px) {
  .otpdialog {
    width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .otp_head h1 {
    font-size: 14px !important;
  }

  .otp_head p {
    font-size: 12px !important;
  }

  .otp-input {
    width: 35px !important;
    height: 40px !important;
  }
}

.loader_dash {
  width: 25px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  /* position: absolute; */
}
.loader_calendar {
  width: 25px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  /* position: absolute; */
}
.loader_dash_activity {
  width: 25px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  /* position: absolute; */
}
.loader_dash_banner {
  width: 25px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  margin-bottom: -25px;
  /* position: absolute; */
}
.loader_student {
  width: 25px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  margin-bottom: 20px;
  /* position: absolute; */
}
.loader_dash_logs {
  width: 25px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  margin-bottom: 20px;
  margin-top: 180px;
  /* position: absolute; */
}

.loader_dash_chart {
  width: 25px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  margin-bottom: 20px;
  margin-top: 90px;
  /* position: absolute; */
}

.loader_announcement {
  width: 40px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #2c3772 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  position: absolute;
  top: 40%;
}

@keyframes l3 {
  20% {
    background-position: 0% 0%, 50% 50%, 100% 50%;
  }

  40% {
    background-position: 0% 100%, 50% 0%, 100% 50%;
  }

  60% {
    background-position: 0% 50%, 50% 100%, 100% 0%;
  }

  80% {
    background-position: 0% 50%, 50% 50%, 100% 100%;
  }
}

.table-section {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 18px;
  margin-right: 11px !important;
  margin-left: 8px !important;
}

.custom-table-section {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 18px;
}

.grade-row {
  margin-left: 8px !important;
}

.select_name_log {
  padding: 0.5rem 0.75rem !important;
}

.modal-header .btn-close {
  font-size: 11px;
}

div:where(.swal2-container) div:where(.swal2-popup) {
  font-size: 10px !important;
}

.swal2-confirm,
.swal2-cancel {
  font-size: 11px !important;
}

#school_link {
  text-align: center;
  display: flex;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

#school_link a {
  color: rgb(255, 123, 0) !important;
}

#school_link a:hover {
  color: white !important;
}

/* Ads dash */

.ad_section-dash {
  height: 400px;
}

.student-details {
  max-height: 500px !important;
  overflow-y: scroll !important;
}

.ads_section {
  font-size: 13px !important;
}

.content-note {
  font-size: 8px !important;
  font-weight: bold !important;
}

.eccd_table,
.deport_table,
.acad_table {
  display: none;
}

th.deport_td {
  width: 92.5px;
  text-align: center !important;
}

th.subject_td {
  width: 100px;
  text-align: center !important;
}
th.eccd_td {
  width: 60px;
  text-align: center !important;
}

/*story*/

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.carousel-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Card Styles */
.story-card {
  flex: 0 0 auto;
  width: 50%;
  height: 250px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.story-card:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.story-card:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.story-card:nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.story-card:nth-child(5) {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.story-card:nth-child(6) {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.story-card:nth-child(7) {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.story-card:nth-child(8) {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
}

.story-card:hover {
  transform: translateY(-8px) scale(1.02);
  /* box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); */
  box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px,
    rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
}

/* Story Content */
.story-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.story-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.story-info {
  display: flex;
  flex-direction: column;
}

.story-name {
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
  line-height: 1;
}

.story-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

/* Story Progress Bars */
.story-progress {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  overflow: hidden;
}

.progress-bar.active {
  background: white;
}

/* Story Text */
.story-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

/* Hide nav buttons on mobile */
@media (max-width: 768px) {
  .nav-button {
    opacity: 0;
    pointer-events: none;
  }

  .header h1 {
    font-size: 1.75rem;
  }

  .story-card {
    width: 100%;
    height: 220px;
  }
}

/* Stats */
.stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  color: #b0b8d4;
  font-size: 0.9rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #667eea;
}

.sponsor-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.be_sponsor {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
}

.tapping-logs-container {
  display: flex;
  justify-content: center;
}

.empty_announcement_dash {
  width: 50px !important;
  height: 50px !important;
}
