.card-body {
  padding: 0.75rem;
}

.banner-image {
  position: relative;
  text-align: center;
  color: white;
  height: 300px;
  /* Adjust height as needed */
  background: url('background.jpg') no-repeat center center;
  background-size: cover;
}

.banner-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Black background with opacity */
  z-index: 1;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

@media (max-width: 768px) {
  .banner-text h1 {
    font-size: 24px;
    /* Smaller text for mobile */
    width: 300px;
  }

  .banner-image {
    height: 200px;
    /* Smaller banner for mobile */
  }
}

/* Add additional responsive font sizes as needed */
@media (min-width: 769px) and (max-width: 992px) {
  .banner-text h1 {
    width: 500px;
  }
}

.announcement {
  padding: 10px;
  margin-bottom: 15px;
}

#announcement-message {
  font-size: 18px;
}

.edit-announcement-btn {
  /* Removed absolute positioning */
}

.announcement-controls {
  text-align: right;
  /* Align buttons to the right */
}

#edit-announcement-area {
  margin-bottom: 10px;
  /* Add space below the textarea */
}

#edit-sharing-area {
  margin-bottom: 10px;
  /* Add space below the textarea */
}

#passcode-input {
  margin-top: 10px;
  /* Add space above the passcode input */
  margin-bottom: 10px;
}

#sharing-passcode-input {
  margin-top: 10px;
  /* Add space above the passcode input */
  margin-bottom: 10px;
}

#sharing-message {
  font-size: 18px;
}

.textarea.form-control {
  height: 500px !important;
}

#edit-announcement-area.textarea-large {
  height: 500px !important;
}

#edit-sharing-area.textarea-large {
  height: 500px !important;
}

/* You can add more styling if you want */
#time-slot-table {
  width: 100%;
  border-collapse: collapse;
}

#time-slot-table,
#time-slot-table th,
#time-slot-table td {
  border: 1px solid black;
}

#time-slot-table th,
#time-slot-table td {
  padding: 5px;
  text-align: center;
}

#time-slot-table input[type='text'] {
  width: 100%;
  margin-left: 5px;
  margin-right: 5px;
}

#time-slot-table .flex-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}


#meal-table {
  width: 100%;
  border-collapse: collapse;
}

#meal-table,
#meal-table th,
#meal-table td {
  border: 1px solid black;
}

#meal-table th,
#meal-table td {
  padding: 5px;
  text-align: center;
}

#meal-table input[type='text'] {
  width: 100%;
  margin-left: 5px;
  margin-right: 5px;
}

#meal-table .flex-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}


/* Add this style for sticky table header */
.sticky-header th {
  position: sticky;
  top: 0;
  z-index: 1020;
  /* Ensure it's above Bootstrap's fixed elements */
  background-color: #343a40;
  /* Match the Bootstrap's .thead-dark color */
  color: #fff;
  /* Match the Bootstrap's .thead-dark color */
}

/* Optional: Add this if you want to change the box shadow as well */
#time-slot-table .form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Style for invalid inputs */
#time-slot-table .form-control.is-invalid {
  border-color: #dc3545;
  background-color: #f8d7da;
  /* Light red background color */
}

.announcement-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.announcement-nav-btn {
  padding: 15px 15px;
  /* More horizontal padding */
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  min-width: 50px;
  /* Ensures the button has a minimum width */
  margin: 0 10px;
  /* Add some margin to separate from the last-updated paragraph */
}

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

.announcement-nav-btn:disabled {
  background-color: #ccc;
  cursor: default;
}

.last-updated {
  margin: 0 20px;
  /* Adjust as needed */
  padding: 5px 10px;
  background-color: #f2f2f2;
  border-radius: 5px;
  border: 1px solid #dddddd;
  text-align: center;
  font-size: 14px !important;
}

.last-updated::before {
  content: 'Update 更新';
  font-size: 12px;
  font-weight: bold;
  /* Make the label bold for emphasis */
  display: block;
}

/* Responsive styling for smaller screens (e.g., cellphones) */
@media (max-width: 600px) {
  .last-updated {
    font-size: 16px;
    /* Smaller text size on small screens */
    padding: 3px 5px;
    /* Adjust padding as well */
    margin: 0 10px;
    /* Adjust margin as well */
  }
}

.date-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.date-navigation #prev-day,
.date-navigation #next-day {
  padding: 15px 15px;
  /* More horizontal padding */
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  min-width: 50px;
  /* Ensures the button has a minimum width */
  margin: 0 10px;
  /* Add some margin to separate buttons from the date */
}

.date-navigation #prev-day:hover,
.date-navigation #next-day:hover {
  background-color: #0056b3;
}

.date-navigation #prev-day:disabled,
.date-navigation #next-day:disabled {
  background-color: #ccc;
  cursor: default;
}

.date-navigation #date-display {
  margin: 0 20px;
  /* Adjust as needed */
  padding: 5px 10px;
  background-color: #f2f2f2;
  border-radius: 5px;
  border: 1px solid #dddddd;
  text-align: center;
  font-weight: bold;
  /* Make the date bold for emphasis */
}

/* Responsive styling for smaller screens */
@media (max-width: 600px) {
  .date-navigation #prev-day,
  .date-navigation #next-day {
    padding: 10px 10px;
    font-size: 16px;
  }

  .date-navigation #date-display {
    font-size: 16px;
    /* Smaller text size on small screens */
    padding: 3px 5px;
    /* Adjust padding as well */
    margin: 0 10px;
    /* Adjust margin as well */
  }
}

/* Meal section */
.date-navigation #meal-prev-day,
.date-navigation #meal-next-day {
  padding: 15px 15px;
  /* More horizontal padding */
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  min-width: 50px;
  /* Ensures the button has a minimum width */
  margin: 0 10px;
  /* Add some margin to separate buttons from the date */
}

.date-navigation #meal-prev-day:hover,
.date-navigation #meal-next-day:hover {
  background-color: #0056b3;
}

.date-navigation #meal-prev-day:disabled,
.date-navigation #meal-next-day:disabled {
  background-color: #ccc;
  cursor: default;
}

.date-navigation #meal-date-display {
  margin: 0 20px;
  /* Adjust as needed */
  padding: 5px 10px;
  background-color: #f2f2f2;
  border-radius: 5px;
  border: 1px solid #dddddd;
  text-align: center;
  font-weight: bold;
  /* Make the date bold for emphasis */
}

/* Responsive styling for smaller screens */
@media (max-width: 600px) {
  .date-navigation #meal-prev-day,
  .date-navigation #meal-next-day {
    padding: 10px 10px;
    font-size: 16px;
  }

  .date-navigation #meal-date-display {
    font-size: 16px;
    /* Smaller text size on small screens */
    padding: 3px 5px;
    /* Adjust padding as well */
    margin: 0 10px;
    /* Adjust margin as well */
  }
}

.round-button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 2px solid #0d6efd; /* Bootstrap blue border */
    background-color: white; /* White background */
    color: #0d6efd; /* Bootstrap blue icon color */
}

.red-round-button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 2px solid #dc3545; /* Bootstrap blue border */
    background-color: white; /* White background */
    color: #dc3545; /* Bootstrap blue icon color */
}

#meal-table-container {
  margin-bottom: 50px;
}



.highlight {
  color: #c0392b;
}

.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon.rotate {
    transform: rotate(90deg);
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.accordion-button {
  margin-bottom: 2px !important;
}