* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #FAFAFA;
  color: #1E1E1E;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 107px 40px 107px;
  min-height: 100vh;
  position: relative;
}

.header {
  width: 100%;
  background: linear-gradient(135deg, #3A5660 0%, #3C6B80 50%, #4D6D76 100%);
  padding: 16px 107px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(60, 107, 128, 0.3);
  border-bottom: 2px solid #3A5660;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.05);
}

.header-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.kitchen-name {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}

.kitchen-name::after {
  content: '🔥';
  margin-right: 12px;
  font-size: 36px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.kitchen-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
  font-family: 'Tajawal', sans-serif;
}

.school-logo {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.school-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-message {
  text-align: center;
  margin-bottom: 32px;
}

.welcome-message h1 {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.2;
  color: #1E1E1E;
  max-width: 922px;
  margin: 0 auto;
}

.student-form {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.form-row .form-group {
  width: 395px;
}

.form-group.full-width {
  width: 100%;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: right;
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: right;
  direction: rtl;
}

.input-container,
.select-container {
  width: 100%;
  height: 59px;
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  border: 1px solid #E5E5E5;
}

.input-container input,
.select-container select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1E1E1E;
  text-align: right;
  padding-right: 8px;
}

.input-container input::placeholder,
.select-container select option:first-child {
  color: #939393;
}

.select-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #939393;
}

.select-container select:focus,
.select-container select:valid {
  color: #1E1E1E;
}

.dropdown-arrow {
  position: absolute;
  left: 8px;
  width: 16px;
  height: 8px;
  pointer-events: none;
}

.search-button {
  width: 500px;
  height: 48px;
  background-color: #3C6B80;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #3A5660;
}

.cards-container {
  display: flex;
  gap: 20px;
  margin-bottom: 301px;
  justify-content: stretch;
}

.card {
  flex: 1;
  max-width: 291.25px;
  height: 104px;
  background-color: #FFFFFF;
  border: 1px solid #B1BCC3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-content {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: row-reverse;
}

.card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.card-text {
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: center;
}

.footer {
  position: absolute;
  /* bottom: 44px; */
  right: 107px;
}

.footer p {
  font-size: 20px;
  line-height: 24px;
  color: #3C6B80;
  text-align: center;
}

/* Responsive design */
@media (max-width: 1200px) {
  .header {
    padding: 16px 50px;
  }
  
  .container {
    padding: 0 50px 40px 50px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .form-row .form-group {
    width: 100%;
  }
  
  .cards-container {
    flex-wrap: wrap;
  }
  
  .card {
    max-width: calc(50% - 10px);
  }
  
  .footer {
    right: 50px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 20px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .header-title {
    align-items: center;
  }
  
  .kitchen-name {
    font-size: 24px;
  }
  
  .kitchen-subtitle {
    font-size: 13px;
  }
  
  .main-logo {
    height: 50px;
  }

  .header .admin-nav {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .header .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
  }
  
  .school-logo {
    width: 60px;
    height: 60px;
  }
  
  .main-logo {
    height: 80px;
  }
  
  .logo-container {
    justify-content: center;
  }
  
  .container {
    padding: 0 20px 40px 20px;
  }
  
  .welcome-message h1 {
    font-size: 24px;
  }
  
  .search-button {
    width: 100%;
  }
  
  .cards-container {
    flex-direction: column;
  }
  
  .card {
    max-width: 100%;
  }
  
  .footer {
    position: static;
    text-align: center;
    margin-top: 40px;
  }
}

/* Teacher form styles */
.teacher-form {
  margin-bottom: 32px;
}

.form-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.add-teacher-button {
  width: 500px;
  height: 48px;
  background-color: #3C6B80;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-teacher-button:hover {
  background-color: #3A5660;
}

.upload-excel-button {
  height: 48px;
  padding: 0 24px;
  background-color: #FFFFFF;
  color: #1E1E1E;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.upload-excel-button:hover {
  background-color: #F5F5F5;
  border-color: #B1BCC3;
}

/* Teachers table styles */
.table-container {
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 100px;
  border: 1px solid #E5E5E5;
}

.teachers-table {
  width: 100%;
  border-collapse: collapse;
}

.teachers-table thead {
  background-color: #F5F5F5;
}

.teachers-table th {
  padding: 16px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #1E1E1E;
  border-bottom: 1px solid #E5E5E5;
}

.teachers-table td {
  padding: 16px;
  text-align: right;
  font-size: 16px;
  font-weight: 400;
  color: #1E1E1E;
  border-bottom: 1px solid #E5E5E5;
}

.teachers-table tbody tr:last-child td {
  border-bottom: none;
}

.teachers-table tbody tr:hover {
  background-color: #FAFAFA;
}

.table-select {
  height: 40px;
  min-width: 150px;
}

.table-select-field {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1E1E1E;
  text-align: right;
  padding-right: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #939393;
}

.table-select-field:focus,
.table-select-field:valid {
  color: #1E1E1E;
}

.teacher-name {
  font-weight: 500;
}

.username-cell,
.password-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.user-icon,
.eye-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive design for teacher page */
@media (max-width: 1200px) {
  .form-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .add-teacher-button,
  .upload-excel-button {
    width: 100%;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .teachers-table {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group {
    width: 100%;
  }
  
  .table-container {
    margin-bottom: 60px;
  }
}

/* Add Student form styles */
.add-student-button {
  height: 59px;
  padding: 0 32px;
  background-color: #3C6B80;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  align-self: flex-end;
}

.add-student-button:hover {
  background-color: #3A5660;
}

/* Students table styles */
.students-table {
  width: 100%;
  border-collapse: collapse;
}

.students-table thead {
  background-color: #F5F5F5;
}

.students-table th {
  padding: 16px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #1E1E1E;
  border-bottom: 1px solid #E5E5E5;
}

.students-table td {
  padding: 16px;
  text-align: right;
  font-size: 16px;
  font-weight: 400;
  color: #1E1E1E;
  border-bottom: 1px solid #E5E5E5;
}

.students-table tbody tr:last-child td {
  border-bottom: none;
}

.students-table tbody tr:hover {
  background-color: #FAFAFA;
}

.student-name {
  font-weight: 500;
}

.student-class,
.student-section,
.student-average {
  font-weight: 400;
}

/* Responsive design for add student page */
@media (max-width: 1200px) {
  .form-row {
    flex-wrap: wrap;
  }
  
  .add-student-button {
    width: 100%;
    margin-top: 16px;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .students-table {
    min-width: 600px;
  }
}

@media (max-width: 768px) {
  .add-student-button {
    width: 100%;
    margin-top: 16px;
  }
  
  .form-buttons {
    margin-top: 16px;
  }
}

/* Parent/Student Page Styles */
.parent-page {
  background-color: #3C6B80;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.parent-header {
  background-color: #3C6B80;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.parent-header-left {
  flex: 1;
}

.parent-page-title {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.parent-header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.parent-container {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.parent-content-wrapper {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.parent-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.parent-logo-container {
  flex: 1;
}

.parent-main-logo {
  height: 117px;
  width: auto;
}

.parent-school-logo {
  width: 76px;
  height: 76px;
}

.parent-school-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.parent-welcome-message {
  text-align: center;
  margin-bottom: 32px;
}

.parent-welcome-message h1 {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.2;
  color: #1E1E1E;
  max-width: 922px;
  margin: 0 auto;
}

.parent-student-form {
  margin-bottom: 32px;
}

.parent-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  align-items: flex-end;
}

.parent-form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.parent-form-row .parent-form-group {
  flex: 1;
}

.parent-form-group.parent-full-width {
  width: 100%;
  margin-bottom: 16px;
}

.parent-form-group label {
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: right;
}
.classes-sections-container{
  width: 100%;
}
.parent-input-container,
.parent-select-container {
  width: 100%;
  height: 59px;
  background-color: #F5F5F5;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  border: 1px solid #E5E5E5;
}

.parent-input-container input,
.parent-select-container select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1E1E1E;
  text-align: right;
  padding-right: 8px;
}

.parent-input-container input::placeholder,
.parent-select-container select option:first-child {
  color: #939393;
}

.parent-select-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #939393;
}

.parent-select-container select:focus,
.parent-select-container select:valid {
  color: #1E1E1E;
}

.parent-dropdown-arrow {
  position: absolute;
  left: 8px;
  width: 16px;
  height: 8px;
  pointer-events: none;
}

.parent-search-button {
  width: 500px;
  height: 48px;
  background-color: #3C6B80;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transition: background-color 0.3s ease;
}

.parent-search-button:hover {
  background-color: #3A5660;
}

.parent-cards-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: stretch;
}

.parent-card {
  flex: 1;
  max-width: 291.25px;
  height: 104px;
  background-color: #FFFFFF;
  border: 1px solid #B1BCC3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.parent-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.parent-card-content {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: row-reverse;
}

.parent-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.parent-card-text {
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: center;
}

.parent-footer {
  background-color: #3C6B80;
  padding: 20px 40px;
  text-align: right;
}

.parent-footer p {
  font-size: 20px;
  line-height: 24px;
  color: #FFFFFF;
  margin: 0;
}

/* Responsive design for parent page */
@media (max-width: 1200px) {
  .parent-content-wrapper {
    padding: 30px;
  }
  
  .parent-form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .parent-form-row .parent-form-group {
    width: 100%;
  }
  
  .parent-cards-container {
    flex-wrap: wrap;
  }
  
  .parent-card {
    max-width: calc(50% - 10px);
  }
  
  .parent-search-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .parent-header {
    padding: 15px 20px;
  }
  
  .parent-container {
    padding: 20px 10px;
  }
  
  .parent-content-wrapper {
    padding: 20px;
    border-radius: 12px;
  }
  
  .parent-welcome-message h1 {
    font-size: 24px;
  }
  
  .parent-logos {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .parent-main-logo {
    height: 80px;
  }
  
  .parent-cards-container {
    flex-direction: column;
  }
  
  .parent-card {
    max-width: 100%;
  }
  
  .parent-footer {
    padding: 15px 20px;
  }
  
  .parent-footer p {
    font-size: 16px;
  }
}

/* Login Page Styles */
.login-page {
  background: #FAFAFA;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, #3A5660 0%, #3C6B80 50%, #4D6D76 100%);
  z-index: 0;
}
.login-page-two::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(135deg, #3A5660 0%, #3C6B80 50%, #4D6D76 100%);
  z-index: 0;
}


.login-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.login-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(60, 107, 128, 0.15);
  border: 1px solid #E5E5E5;
}

.login-logo-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E5E5;
}

.login-logo-container {
  flex: 1;
}

.login-main-logo {
  height: 80px;
  width: auto;
}

.login-school-logo {
  width: 60px;
  height: 60px;
}

.login-school-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-welcome {
  text-align: center;
  margin-bottom: 32px;
}

.login-welcome h1 {
  font-size: 28px;
  font-weight: 700;
  color: #3C6B80;
  margin-bottom: 8px;
}

.login-welcome p {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form-group label {
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: right;
}

.login-input-container {
  position: relative;
  width: 100%;
  height: 59px;
  background-color: #F5F5F5;
  border-radius: 8px;
  border: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px;
  transition: border-color 0.3s ease;
}

.login-input-container:focus-within {
  border-color: #3C6B80;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(60, 107, 128, 0.1);
}

.login-input-container input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1E1E1E;
  text-align: right;
  padding-right: 8px;
  padding-left: 40px;
}

.login-input-container input::placeholder {
  color: #939393;
}

.password-toggle {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle .eye-icon {
  font-size: 20px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.password-toggle:hover .eye-icon {
  opacity: 1;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666666;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3C6B80;
}

.forgot-password {
  font-size: 14px;
  color: #3C6B80;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #3C6B80;
  text-decoration: underline;
}

.login-button {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #3C6B80 0%, #3C6B80 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(60, 107, 128, 0.3);
}

.login-button:hover {
  background: linear-gradient(135deg, #3A5660 0%, #4D6D76 100%);
  box-shadow: 0 4px 12px rgba(60, 107, 128, 0.4);
  transform: translateY(-2px);
}

.login-button:active {
  transform: scale(0.98);
}

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E5E5E5;
  text-align: center;
}

.login-footer p {
  font-size: 14px;
  color: #666666;
  margin: 0;
}

/* Parent Login Page Specific Styles */
.parent-login-page {
  background: linear-gradient(135deg, #3A5660 0%, #3C6B80 100%);
}

.parent-login-card {
  background-color: #FFFFFF;
}

/* Responsive design for login pages */
@media (max-width: 768px) {
  .login-card {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .login-logo-section {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .login-main-logo {
    height: 60px;
  }

  .login-school-logo {
    width: 50px;
    height: 50px;
  }

  .login-welcome h1 {
    font-size: 24px;
  }

  .login-welcome p {
    font-size: 14px;
  }

  .login-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Admin Pages Styles */
.header .admin-nav {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.header .nav-link {
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header .nav-link.logout-btn {
  background-color: rgba(220, 53, 69, 0.3) !important;
  border-color: rgba(220, 53, 69, 0.5) !important;
}

.header .nav-link.logout-btn:hover {
  background-color: rgba(220, 53, 69, 0.5) !important;
  border-color: rgba(220, 53, 69, 0.7) !important;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1E1E1E;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3C6B80;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #3A5660;
}

.btn-secondary {
  background-color: #6c757d;
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-success {
  background-color: #28a745;
  color: #FFFFFF;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-danger {
  background-color: #dc3545;
  color: #FFFFFF;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-warning {
  background-color: #ffc107;
  color: #1E1E1E;
}

.btn-warning:hover {
  background-color: #e0a800;
}

.btn-info {
  background-color: #17a2b8;
  color: #FFFFFF;
}

.btn-info:hover {
  background-color: #138496;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-danger ul {
  margin: 0;
  padding-right: 20px;
}

/* Select2 Custom Styles */
.select2-container--bootstrap-5 .select2-selection {
  min-height: 59px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background-color: #F5F5F5;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  line-height: 59px;
  padding-right: 8px;
  color: #1E1E1E;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
  height: 57px;
  left: 8px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
  color: #939393;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: #3C6B80;
  background-color: #FFFFFF;
}

.select2-dropdown {
  border: 1px solid #E5E5E5;
  border-radius: 8px;
}

.select2-results__option {
  padding: 8px 12px;
  text-align: right;
}

.select2-results__option--highlighted {
  background-color: #3C6B80;
  color: #FFFFFF;
}

.admin-form {
  background-color: #FFFFFF;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  direction: rtl;
  text-align: right;
}

.admin-form .form-group {
  margin-bottom: 24px;
}

.admin-form label {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: right;
  direction: rtl;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
  text-align: right;
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: #3C6B80;
}

.subject-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-end;
  direction: rtl;
  flex-direction: row-reverse;
}

.subject-row select {
  flex: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
  background-color: #3C6B80;
}

.admin-table th {
  padding: 16px;
  text-align: right;
  color: #FFFFFF;
  font-weight: 700;
}

.admin-table td {
  padding: 16px;
  text-align: right;
  border-bottom: 1px solid #E5E5E5;
}

.admin-table tbody tr:hover {
  background-color: #F5F5F5;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  background-color: #E5E5E5;
  border-radius: 4px;
  font-size: 12px;
  margin: 2px;
}

.text-center {
  text-align: center;
}

.pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Responsive design for admin pages */
@media (max-width: 768px) {
  .admin-page-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .admin-nav {
    flex-direction: column;
  }
  
  .subject-row {
    flex-direction: column;
  }
  
  .admin-table {
    font-size: 14px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px;
  }
}

/* Teacher Dashboard Styles */
.teacher-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.info-card {
  background-color: #FFFFFF;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #3C6B80;
}

.subjects-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subject-item {
  padding: 8px;
  background-color: #F5F5F5;
  border-radius: 4px;
}

.recent-grades {
  margin-top: 32px;
}

.recent-grades h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1E1E1E;
}

.students-list h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1E1E1E;
}

.student-card {
  cursor: pointer;
  min-height: 150px;
}

.student-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #3C6B80;
}

.student-card p {
  margin: 4px 0;
  color: #666666;
}

.grades-section {
  margin-top: 32px;
}

.grades-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1E1E1E;
}

.subject-grades {
  margin-bottom: 32px;
  background-color: #FFFFFF;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subject-grades h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #3C6B80;
}

.subject-average {
  margin-top: 16px;
  padding: 12px;
  background-color: #F5F5F5;
  border-radius: 4px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #3C6B80;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
}

/* Teacher Cards Styles */
.teacher-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.teacher-card {
  background-color: #FFFFFF;
  border: 1px solid #B1BCC3;
  border-radius: 16px;
  padding: 20px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  width: 100%;
}

.grades-cards-row .teacher-card {
  width: 100%;
  min-width: 0;
}

.teacher-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.clickable-card {
  cursor: pointer;
}

.editable-card {
  cursor: default;
}

.card-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  position: relative;
  padding: 8px;
}

.card-main-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-text {
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: right;
  flex: 1;
}

.card-content-vertical .card-header .card-text {
  text-align: right;
  flex: 1;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

/* Grades Cards Row - 3 cards in one row, each taking col-4 (1/3 of width) */
.grades-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.grades-cards-row .teacher-card {
  width: 100%;
  min-width: 0;
  flex: 1 1 calc(33.333% - 14px);
}

.card-content-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 16px;
  position: relative;
}

.card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
}

.card-icon-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-input-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.card-input-small {
  width: 100%;
  max-width: 120px;
  padding: 10px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background-color: #FFFFFF;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.card-input-small[readonly],
.notes-textarea[readonly] {
  background-color: #F5F5F5;
  cursor: not-allowed;
  opacity: 0.8;
}

.save-btn-small {
  padding: 6px 12px;
  background-color: #28a745;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  height: fit-content;
}

.save-btn-small:hover {
  background-color: #218838;
}

.card-edit-icon-bottom {
  position: absolute;
  bottom: 8px;
  left: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.card-edit-icon-bottom:hover {
  opacity: 1;
}

.card-edit-icon-img-small {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.save-btn {
  padding: 6px 12px;
  background-color: #28a745;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.save-btn:hover {
  background-color: #218838;
}

.save-btn:active {
  transform: scale(0.95);
}

.card-edit-icon {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-edit-icon:hover {
  opacity: 1;
}

.card-edit-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Notes Section */
.notes-section {
  position: relative;
  margin-bottom: 24px;
}

.notes-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
}

.notes-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  resize: vertical;
}

.notes-wrapper .save-btn {
  align-self: flex-end;
}

.notes-edit-icon {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.notes-edit-icon:hover {
  opacity: 1;
}

/* Download Section */
.download-section {
  margin-bottom: 32px;
  display: flex;
  justify-content: flex-end;
}

.download-excel-button {
  padding: 12px 24px;
  background-color: #E3F2FD;
  color: #3C6B80;
  border: 1px solid #3C6B80;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-excel-button:hover {
  background-color: #C8E3F0;
}

/* Students Table Styles */
.students-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.students-table thead {
  background-color: #F5F5F5;
}

.students-table th {
  padding: 16px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #1E1E1E;
  border-bottom: 1px solid #E5E5E5;
}

.students-table td {
  padding: 16px;
  text-align: right;
  font-size: 16px;
  font-weight: 400;
  color: #1E1E1E;
  border-bottom: 1px solid #E5E5E5;
}

.students-table tbody tr:nth-child(even) {
  background-color: #FAFAFA;
}

.students-table tbody tr:hover {
  background-color: #F0F0F0;
}

.students-table tbody tr.selected {
  background-color: #E8F4F8 !important;
  border: 2px solid #3C6B80;
}

.students-table tbody tr:last-child td {
  border-bottom: none;
}

.student-name {
  font-weight: 500;
}

/* Responsive design for teacher page */
@media (max-width: 1200px) {
  .teacher-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-main-content {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .teacher-cards-container {
    grid-template-columns: 1fr;
  }
  
  .grades-cards-row {
    grid-template-columns: 1fr;
  }
  
  .download-section {
    justify-content: center;
  }
  
  .students-table {
    font-size: 14px;
  }
  
  .students-table th,
  .students-table td {
    padding: 8px;
  }
}

/* ============================================
   Meal Distribution System Styles
   ============================================ */

.meal-distribution-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.meal-header {
  text-align: center;
  margin-bottom: 30px;
}

.meal-title {
  font-size: 32px;
  font-weight: 700;
  color: #3C6B80;
  margin-bottom: 15px;
}

.date-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E8F4F8;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
}

.date-label {
  font-weight: 500;
  color: #3C6B80;
}

.date-value {
  font-weight: 700;
  color: #3C6B80;
}

/* Statistics Cards */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #3A5660 0%, #3C6B80 100%);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card:nth-child(1) {
  background: linear-gradient(135deg, #3A5660 0%, #3C6B80 100%);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #3C6B80 0%, #4D6D76 100%);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #4D6D76 0%, #3C6B80 100%);
}

.stat-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

/* Search Bar */
.search-container {
  margin-bottom: 25px;
}

.search-filter-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
}

.search-input:focus {
  border-color: #3C6B80;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.filter-option {
  display: flex;
  align-items: center;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 12px 20px;
  background: #F5F5F5;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
}

.filter-checkbox-label:hover {
  background: #E8E8E8;
}

.filter-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #28a745;
}

.filter-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Employees Grid */
.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.employee-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.employee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-color: #3C6B80;
}

.card-header {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.employee-name {
  font-size: 20px;
  font-weight: 700;
  color: #3C6B80;
  margin-bottom: 0;
  line-height: 1.4;
}

.employee-name-en {
  font-size: 16px;
  font-weight: 500;
  color: #616161;
  margin-bottom: 0;
  /* font-style: italic; */
  line-height: 1.4;
}

.employee-number {
  font-size: 14px;
  color: #757575;
  margin-bottom: 0;
  line-height: 1.4;
}

.employee-phone {
  font-size: 14px;
  color: #757575;
  margin-bottom: 0;
  line-height: 1.4;
}

.card-body {
  margin-bottom: 15px;
}

.employee-department {
  font-size: 14px;
  color: #616161;
  margin-bottom: 10px;
}

.meals-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F5F5F5;
  border-radius: 8px;
  display: inline-flex;
}

.meals-count {
  font-size: 18px;
  font-weight: 700;
  color: #3C6B80;
}

.meals-label {
  font-size: 14px;
  color: #757575;
}

.card-footer {
  margin-top: 15px;
}

.btn-view-meals {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3A5660 0%, #3C6B80 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
}

.btn-view-meals:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(60, 107, 128, 0.4);
}

.btn-view-meals:active {
  transform: scale(0.98);
}

.card-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-view-meals {
  flex: 1;
}

.btn-edit {
  padding: 12px 20px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  flex: 1;
}

.btn-edit:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  color: white;
  text-decoration: none;
}

.btn-edit:active {
  transform: scale(0.98);
}

/* Operations Dropdown */
.operations-dropdown {
  margin-top: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: #1E1E1E;
  border-bottom: 1px solid #F5F5F5;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #F5F5F5;
}

.dropdown-item .icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.dropdown-item span:not(.icon) {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.toggle-item {
  justify-content: space-between;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #28a745;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Meal Modal */
.meal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 2px solid #F5F5F5;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #3C6B80;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #757575;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #F5F5F5;
  color: #3C6B80;
}

.modal-body {
  padding: 25px;
}

.meal-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.meal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 2px solid #E0E0E0;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background: white;
}

.meal-option:hover {
  border-color: #3C6B80;
  background: #F0F7FA;
}

.meal-option.received {
  border-color: #4CAF50;
  background: #E8F5E9;
}

.meal-option.loading {
  opacity: 0.6;
  pointer-events: none;
}

.meal-checkbox-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.meal-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #4CAF50;
}

.meal-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #3C6B80;
}

.meal-icon {
  font-size: 28px;
}

.meal-name {
  font-size: 18px;
}

.checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #4CAF50;
  border-radius: 50%;
  color: white;
  animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #757575;
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .meal-distribution-container {
    padding: 15px;
  }

  .meal-title {
    font-size: 24px;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .employees-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .employee-card {
    padding: 15px;
  }

  .modal-content {
    max-width: 100%;
    margin: 10px;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .meal-option {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .meal-title {
    font-size: 20px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 32px;
  }

  .stat-value {
    font-size: 24px;
  }

  .employee-name {
    font-size: 18px;
  }

  .meal-label {
    font-size: 16px;
  }

  .meal-icon {
    font-size: 24px;
  }
}
