body {
  font-family: Arial, sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

a,
button {
  cursor: pointer !important;
}

textarea {
  resize: none;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.main-header {
  color: #333;
  margin-bottom: 20px;
}

.login-box {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 350px;
}

.login-box h2 {
  margin-bottom: 30px;
  color: #333;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
}

.login-btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #0056b3;
}

/* Dashboard Styles */
.dashboard-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: #f0f2f5;
}

.sidebar {
  width: 250px;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.sidebar .main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .main-nav ul li {
  margin-bottom: 10px;
}

.sidebar .main-nav ul li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  color: #555;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.sidebar .main-nav ul li a i {
  margin-right: 10px;
  font-size: 18px;
}

.sidebar .main-nav ul li.active a,
.sidebar .main-nav ul li a:hover {
  background-color: #e9ecef;
  color: #007bff;
}

.main-content {
  flex-grow: 1;
  padding: 20px;
}

.content-section {
  display: none;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-section.active {
  display: block;
}

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

.section-header h1 {
  margin: 0;
  color: #333;
}

.filter-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-dropdown label {
  font-weight: bold;
  color: #555;
}

.filter-dropdown select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%20197.1L159.1%2069.2c-3.7-3.7-9.7-3.7-13.4%200L5.4%20197.1c-3.7%203.7-3.7%209.7%200%2013.4l13.4%2013.4c3.7%203.7%209.7%203.7%2013.4%200l118.2-118.2c3.7-3.7%209.7-3.7%2013.4%200l118.2%20118.2c3.7%203.7%209.7%203.7%2013.4%200l13.4-13.4c3.7-3.6%203.7-9.6%200-13.3z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
  padding-right: 30px;
  /* Space for the custom arrow */
}

.filter-dropdown select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.content-section h1 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

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

.summary-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.summary-card h3 {
  margin-top: 0;
  color: #555;
  font-size: 18px;
}

.summary-card p {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 10px 0 0;
}

.student-growth-chart {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.student-growth-chart h3 {
  margin-top: 0;
  color: #333;
}

.student-growth-chart .growth-percentage {
  color: #28a745;
  font-weight: bold;
}

/* Forms */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-top: 15px;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.image-preview {
  width: 150px;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
}

.image-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.submit-btn,
.submit-payment-btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  width: auto;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #0056b3;
}

.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Search Bar */
.search-bar {
  margin-bottom: 20px;
  display: flex;
}

.search-bar input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  box-sizing: border-box;
  font-size: 16px;
}

.search-bar button {
  border: 1px solid #ddd;
  border-left: none;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

/* Student Details */
.student-details {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.student-details h3 {
  margin-top: 0;
  color: #333;
}

.student-details p {
  margin: 5px 0;
  color: #555;
}

/* Calendar */
.calendar-section {
  margin-top: 20px;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-nav button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.calendar-nav h4 {
  margin: 0;
  color: #333;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.day-header {
  font-weight: bold;
  color: #777;
  padding: 10px 0;
}

.day {
  background-color: #f0f2f5;
  padding: 10px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.day:hover {
  background-color: #e9ecef;
}

.day.current-day {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
}

/* Student Profile */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.profile-header h1 {
  margin: 0;
  color: #333;
}

.edit-profile-link {
  outline: none;
  border: none;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.edit-member-btn {
  outline: none;
  border: none;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#prev-page-btn,
#next-page-btn {
  outline: none;
  border: none;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.add-btn {
  outline: none;
  border: none;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.select-btn {
  outline: none;
  border: none;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.edit-profile-link:hover {
  background-color: #0056b3;
}

.delete-profile-link {
  background-color: #dc3545;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.delete-profile-link:hover {
  background-color: #c82333;
}

.profile-header .edit-profile-link,
.profile-header .save-profile-btn,
.profile-header .delete-profile-link {
  margin-left: 10px;
}

.avatar-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.student-info h2 {
  margin: 0;
  color: #333;
}

.student-info p {
  margin: 5px 0 0;
  color: #555;
}

.student-details-section {
  margin-bottom: 30px;
}

.student-details-section h3 {
  margin-bottom: 15px;
  color: #333;
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
}

.detail-item {
  flex: 1;
}

.student-details-section input[type="text"],
.student-details-section input[type="number"],
.student-details-section input[type="date"],
.student-details-section input[type="file"] {
  width: 90%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 15px;
  background-color: #f9f9f9;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.student-details-section input[type="file"] {
  width: 95%;
}

.student-details-section input[type="text"]:focus,
.student-details-section input[type="number"]:focus,
.student-details-section input[type="date"]:focus,
.student-details-section input[type="file"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  outline: none;
}

.student-details-section input[type="text"]:disabled,
.student-details-section input[type="number"]:disabled,
.student-details-section input[type="date"]:disabled,
.student-details-section input[type="file"]:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  border-color: #eee;
}

.payment-history table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.payment-history th,
.payment-history td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.payment-history th {
  background-color: #f8f9fa;
  color: #333;
}

.payment-history td {
  color: #555;
}

.attendance-summary {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.attendance-summary h3 {
  margin-top: 0;
  color: #333;
}

.attendance-summary p {
  margin: 5px 0;
  color: #555;
}

/* Basic Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f8f9fa;
  color: #333;
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table-responsive th,
.table-responsive td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.table-responsive th {
  background-color: #f8f9fa;
  color: #333;
}

.edit-hours-btn,
.collect-payment-btn,
.view-profile-btn,
.view-play-entry-btn,
.wish-btn {
  background-color: #28a745;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 5px;
  /* Add gap between buttons */
}

.edit-hours-btn:hover,
.collect-payment-btn:hover {
  background-color: #218838;
}

.hamburger-menu {
  display: none !important;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1001;
}

.sidebar .close-btn {
  display: none;
  font-size: 24px;
  color: #333;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 1000px) {
  .main-content {
    margin: 0;
    width: 100%;
    padding: 0;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -200%;
    /* Hidden by default */
    height: 100%;
    z-index: 1000;
    transition: left 0.6s ease;
  }

  .logo {
    margin-top: 40px;
  }

  .sidebar.active {
    left: 0;
    /* Slide in */
  }

  .hamburger-menu {
    display: block !important;
    position: absolute;
    top: 44px;
    left: 27px;
    z-index: 1000;
  }

  .sidebar .close-btn {
    display: block;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }

  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-responsive tr {
    border: 1px solid #ddd;
    margin-bottom: 10px;
  }

  .table-responsive td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .table-responsive td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  .table-responsive td:nth-of-type(1):before {
    content: "S.No.";
  }

  .table-responsive td:nth-of-type(2):before {
    content: "Code";
  }

  .table-responsive td:nth-of-type(3):before {
    content: "Name";
  }

  .table-responsive td:nth-of-type(4):before {
    content: "Hours";
  }

  .table-responsive td:nth-of-type(5):before {
    content: "Action";
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
}

.modal-body {
  overflow-y: auto;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.modal-content p {
  margin-bottom: 10px;
}

.modal-content .form-group {
  margin-bottom: 20px;
}

.modal-content .submit-btn {
  width: 100%;
}

@media (width < 630px) {
  .section-header {
    flex-direction: column;
  }
}

@media (width < 384px) {
  .profile-header {
    gap: 20px;
    flex-direction: column;
  }
}

@media (width < 630px) {
  .detail-row {
    flex-direction: column;
  }

  .detail-row1 {
    padding-top: 10px;
    gap: 20px;
  }
}

h1 {
  font-size: 30px;
  padding-left: 20px;
}

.main-header {
  padding-left: 0;
}

@media (width < 470px) {
  .main-header {
    font-size: 27px;
    padding-left: 0;
  }

  .login-box {
    padding: 0;
    padding: 20px;
    width: 300px;
  }
}

@media (width < 376px) {
  .main-header {
    font-size: 24px;
  }

  .login-box {
    padding: 0;
    padding: 20px;
    width: 280px;
  }
}

body {
  overflow-x: hidden !important;
  padding: 10px;
  /* Prevent horizontal scroll */
}

/* Monthly Birthday Page Styles */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#month-selector {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
}

#download-pdf-btn {
  background-color: #007bff;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#download-pdf-btn:hover {
  background-color: #0056b3;
}

#birthdays-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#birthdays-table th,
#birthdays-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

#birthdays-table th {
  background-color: #f8f9fa;
  color: #333;
}

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

.pagination .btn {
  background-color: #007bff;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination .btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination .btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 2px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f2f5;
  font-size: 40px;
  font-weight: bold;
  color: #333;
}

.avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loader Styles */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}

.date-selector {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%20197.1L159.1%2069.2c-3.7-3.7-9.7-3.7-13.4%200L5.4%20197.1c-3.7%203.7-3.7%209.7%200%2013.4l13.4%2013.4c3.7%203.7%209.7%203.7%2013.4%200l118.2-118.2c3.7-3.7%209.7-3.7%2013.4%200l118.2%20118.2c3.7%203.7%209.7%203.7%2013.4%200l13.4-13.4c3.7-3.6%203.7-9.6%200-13.3z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
  padding-right: 30px;
  /* Space for the custom arrow */
}

.date-selector:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.details-group {
  display: flex;
  gap: 50px;
}

.check-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-group label {
  margin-bottom: 0;
}

@media (width < 470px) {
  .details-group {
    gap: 20px;
  }
}

@media (width < 430px) {
  .details-group {
    flex-direction: column;
    gap: 0;
  }
}

#package-modal {
  justify-content: center;
  align-items: center;
}

.package-amount {
  display: flex;
  align-items: center;
  gap: 10px;
}

#package-amount {
  padding-bottom: 14px;
  font-weight: bold;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
