.maktab-selector-container {
  text-align: center;
}

.maktab-display {
  margin: 0;
  padding: 0;
  font-size: 16px;
  display: inline-block;
}

.clickable-maktab {
  cursor: pointer;
}

.maktab-name {
  display: inline;
}

.dropdown-icon {
  display: inline;
  font-size: 12px;
  margin-left: 5px;
  color: #666;
}

/* Popup Styles */
.maktab-popup {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.maktab-popup-content {
  background-color: white;
  margin: 15% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.popup-header h3 {
  margin: 0;
  color: #333;
}

.close-popup {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.close-popup:hover {
  color: #000;
}

.popup-body {
  padding: 10px 0;
  max-height: 300px;
  overflow-y: auto;
}

.maktab-option {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s ease;
}

.maktab-option:hover {
  background-color: #f8f9fa;
}

.maktab-option:last-child {
  border-bottom: none;
}

.loading-indicator {
  color: #666;
  font-size: 12px;
  margin-left: 8px;
  font-style: italic;
}

.demo-section-two {
  width: 100%;
  text-align: center;
}

.info-container {
  text-align: center;
  margin: 0 auto 8px;
  padding: 5px;
  border: 6px solid #007bff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  background-color: #f8f9fa;
  /* transition: all 0.3s ease; */
}

/* Default state (blue) */
.info-container.default-state {
  border-color: #007bff;
  background-color: #f8f9fa;
}

/* Found state (green) */
.info-container.found-state {
  border-color: #28a745;
  background-color: #d4edda;
}

/* Not found state (red) */
.info-container.notfound-state {
  border-color: #dc3545;
  background-color: #f8d7da;
}

/* Duplicate state (orange) */
.info-container.duplicate-state {
  border-color: #fd7e14;
  background-color: #ffe5d0;
}

#info-one {
  font-size: 42px;
  font-weight: bold;
  color: #000;
  margin: 10px 0;
  line-height: 1.2;
}

#info-two {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin: 10px 0;
  line-height: 1.3;
}

.current-time {
  display: inline-flex;
  line-height: 1;
  border: 2px solid #ddd;
  font-size: 42px;
  color: #333;
  text-align: center;
  padding: 6px 12px;
  background: #eee;
  border-radius: 8px;
  font-family: monospace;
}

.time-minutes {
  margin-right: 8px;
}

.time-colon {
  animation: blink 1s infinite;
}

/* Section Three Styles */
.demo-section-three {
  margin: 10px auto;
  max-width: 900px;
  padding: 0 10px;
}

.demo-section-three h3 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.attendance-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: calc(100vh - 385px);
  overflow: auto;
  position: relative;
}

.attendance-table thead th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 10;
}

.attendance-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  border: 1px solid #dee2e6;
}

.attendance-table th {
  background-color: #f8f9fa;
  padding: 8px 5px;
  text-align: left;
  text-transform: none;
  /* font-weight: 500; */
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  border-right: 1px solid #dee2e6;
}

.attendance-table th:last-child {
  border-right: none;
}

.attendance-table td {
  padding: 8px 5px;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  vertical-align: top;
}

.attendance-table th,
.attendance-table td {
  font-weight: 500;
}

.attendance-table tr td:nth-child(3),
.attendance-table tr th:nth-child(3) {
  font-weight: normal;
}

.attendance-table td:last-child {
  border-right: none;
}

.attendance-table tbody tr:hover {
  background-color: #f8f9fa;
}

.attendance-table tbody tr:last-child td {
  border-bottom: none;
}

.attendance-table small {
  color: #6c757d;
  font-size: 12px;
}

.no-records {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

.class-time-cell {
  color: #6c757d;
  font-style: italic;
}

#footer-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  #info-one {
    font-size: 12vw;
  }

  #info-two {
    font-size: 9vw;
  }

  #attendance-list-table {
    font-size: 5vw;
  }

  .attendance-table th,
  .attendance-table td {
    padding: 6px 4px;
    border-right: 1px solid #dee2e6;
    /* text-align: center; */
  }
}

/* Text Animation Styles START */
#text-animation {
  position: fixed;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.page__txt {
  margin: auto;
}

.txt {
  color: transparent;
  display: flex;
  font-family: monospace;
  font-weight: bold;
  font-size: clamp(3rem, 13vw, 10rem);
  text-transform: uppercase;
}

.animate .txt__character {
  animation: fall 2s linear 1 forwards;
  animation-delay: calc(var(--i) * 200ms);
}

@keyframes fall {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  50%,
  100% {
    color: hsl(calc(var(--i) * 25), 100%, 50%);
    transform: translateY(0);
    opacity: 1;
  }
}

/* Text Animation Styles END */

.pl-count-cell.has-absence {
  background-color: #ffebee; /* Light red for absences */
  color: #c62828;
  font-weight: bold;
}

.pl-count-cell.has-leave {
  background-color: #fff3e0; /* Light orange for leaves */
  color: #ef6c00;
  font-weight: bold;
}
/* Add to your attendance-multiple-maktabs.css */
.am-cell {
  background-color: #e3f2fd;
} /* Light Blue Pastel */
.pm-cell {
  background-color: #fff3e0;
} /* Light Orange Pastel */
/* .na-cell {
  background-color: #f5f5f5;
} */

/* Center-align all table cells except the first one (for both td and th) */
.attendance-table tr td:not(:first-child),
.attendance-table tr th:not(:first-child) {
  text-align: center;
}

/* Fee Count Styles */
.fee-count-cell {
  text-align: center;
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 8px;
}

.fee-count-cell.has-fees {
  background-color: #ffebee; /* Light red for pending fees */
  color: #c62828;
}

.fee-count-cell.no-fees {
  background-color: #e8f5e9; /* Light green for no fees */
  color: #2e7d32;
}

.fee-count-cell.na-fees {
  background-color: #f5f5f5; /* Gray for N/A */
  color: #666;
}

/* Keep existing P/L styles */
.pl-count-cell.has-absence {
  background-color: #ffebee;
  color: #c62828;
}

.pl-count-cell.has-leave {
  background-color: #fff3e0;
  color: #ef6c00;
}

/* Time cell colors (keep existing) */
.am-cell {
  background-color: #e3f2fd;
}

.pm-cell {
  background-color: #fff3e0;
}

.na-cell {
  background-color: #f5f5f5;
  color: #999;
}

.updating-state {
  background-color: #ffcc00 !important; /* Yellow */
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
