body {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.custom-blur-navbar {
  backdrop-filter: blur(20px);
}

.nav-item .nav-link {
  padding: 0px !important;
}

.nav-item .nav-link.active {
  color: #1a8754 !important;
  position: relative;
}

.nav-item .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0px;
  width: 1.25rem;
  height: 0.2rem;
  background-color: #1a8754;
  border-radius: 0.2rem;
}

.custom-toggler .navbar-toggler-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-image: none;
  position: relative;
}

.custom-toggler .navbar-toggler-icon::before,
.custom-toggler .navbar-toggler-icon::after,
.custom-toggler .navbar-toggler-icon span {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #000;
  transition: all 0.3s ease;
}

.custom-toggler .navbar-toggler-icon::before {
  transform: translate(-50%, -6px);
}

.custom-toggler .navbar-toggler-icon::after {
  transform: translate(-50%, 4px);
}

.custom-toggler .navbar-toggler-icon span {
  transform: translate(-50%, -50%);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
  transform: translate(-50%, -50%) scale(0);
}

.navbar-toggler.custom-toggler {
  border: none;
  padding: 0;
  outline: none;
}

.navbar-toggler.custom-toggler:focus {
  outline: none;
  box-shadow: none;
}

.avatar-dropdown img.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.custom-dropdown {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0;
  overflow: hidden;
}

.custom-dropdown-item {
  font-size: 14px;
  padding: 12px 20px;
  color: #444;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.custom-dropdown-item.active {
  font-weight: 600;
  background-color: #e9ecef;
}

.avatar-dropdown::after {
  display: none !important;
}

.custom-dropdown-item.text-danger:hover {
  background-color: #fff5f5;
  color: #d9534f;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    transform: translateY(0);
    opacity: 1;
  }
  90% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.toast-container {
  z-index: 1050;
}

.toast {
  animation: slideDown 2s ease-in-out forwards;
  width: 90%;
  max-width: 600px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast:not(.show) {
  transform: translateY(-100%);
}

.toast .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.toast.text-bg-primary .btn-close,
.toast.text-bg-secondary .btn-close,
.toast.text-bg-success .btn-close,
.toast.text-bg-danger .btn-close,
.toast.text-bg-warning .btn-close,
.toast.text-bg-info .btn-close,
.toast.text-bg-dark .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.responsive-img {
  width: 60px;
}

@media (min-width: 768px) {
  .responsive-img {
    width: 80px;
  }
}

@media (min-width: 1024px) {
  .responsive-img {
    width: 100px;
  }
}

.responsive-text {
  font-size: 12px;
}

@media (min-width: 768px) {
  .responsive-text {
    font-size: 14px !important;
  }
}

@media (min-width: 1024px) {
  .responsive-text {
    font-size: 16px !important;
  }
}

.navbar-nav {
  padding: 2rem 0.75rem 0.75rem 0.75rem;
}

@media (min-width: 768px) {
  .responsive-img {
    width: 100px;
  }

  .responsive-text {
    font-size: 18px !important;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .responsive-text {
    font-size: 20px !important;
  }
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Custom button styles */
.btn-mod {
  height: 52.5px;
  font-weight: 500;
  color: #fff !important;
  background: #1a8754 !important;
  border-radius: 30px;
  padding: 10px 36px;
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  overflow: hidden; 
  transform: translateZ(0);
}

.btn-hover-anim > span {
  position: relative;
  z-index: 2;
}

.btn-hover-anim::before {
  content: "";
  display: block;
  width: 100%;
  height: 200%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0.7) translateY(55%);
  border-radius: 100%;
  transition: all 0.25s cubic-bezier(0, 0, 0.31, 0.99);
  background-color: #319365;
  z-index: 1;
}

.btn-hover-anim:hover::before {
  transform: scaleX(2) scaleY(1) translateY(-15%);
}

/* Custom input styles */
input.input-lg,
select.input-lg {
  height: 52.5px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 16px;
}

textarea.input-lg {
  padding: 12px 20px;
  font-size: 16px;
  height: 153px;
}

input.input-circle,
select.input-circle,
textarea.input-circle {
  border-radius: 27px;
}

input.input-lg,
select.input-lg,
textarea.input-circle {
  background-color: rgb(242, 245, 250);
  
}

input.input-lg:hover,
select.input-lg:hover,
textarea.input-circle:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

input.input-lg:focus,
select.input-lg:focus,
textarea.input-circle:focus {
  background-color: rgba(0, 123, 255, 0.05);
  box-shadow: none;
}

input.input-lg::placeholder,
select.input-lg::placeholder,
textarea.input-circle::placeholder {
  color: #8a95a2;
}

input[type="file" i].custom-file-input {
  padding-left: 0px;
}

input[type="file" i].custom-file-input::file-selector-button {
  height: 51.5px;
  padding: 0px 32px 0px 32px;
  line-height: normal;
  border: none;
}

/* Custom checkbox styles */
input[type="checkbox"].custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid rgb(166, 180, 197);
  background-color: rgb(242, 245, 250);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  margin-top: 0px !important;
}

input[type="checkbox"].custom-checkbox:hover {
  border-color: rgba(0, 123, 255, 0.05);
  background-color: rgba(0, 123, 255, 0.05);
}

input[type="checkbox"].custom-checkbox:focus {
  border-color: rgba(0, 123, 255, 0.05);
  box-shadow: 0 0 0px rgba(0, 123, 255, 0.05);
  background-color: rgba(0, 123, 255, 0.05);
}

input[type="checkbox"].custom-checkbox:checked {
  border-color: #1a8754;
  background-color: #1a8754;
}

input[type="checkbox"].custom-checkbox:disabled {
  opacity: 1;
}

input[type="checkbox"].custom-checkbox:checked::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom table styles */
.custom-table tbody tr td, .custom-table thead th {
  padding: 1rem 2rem 1rem 1rem !important;
  border-width: 2px !important;
}

.custom-table tbody tr:hover td {
  background-color: rgb(248, 249, 250) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Custom tab styles */
.nav-item .custom-tab-link {
  color: #6e757d !important;
}

.nav-item .custom-tab-link.active {
  color: #1a8754 !important;
}


.chat-bubble {
  max-width: 75%;
  word-wrap: break-word;
  position: relative;
}

.chat-bubble::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-right: 10px solid #f8f9fa;
}

/* For messages sent by the user */
.message.sender-me .chat-bubble {
  background-color: #dcf8c6;
  align-self: flex-end;
}

.message.sender-me .chat-bubble::before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid #dcf8c6; /* Match the green bubble */
}
/* Custom styling for the select dropdown */
.select2 {
  width: 100%; /* Full width */
  padding: 10px; /* Padding inside the dropdown */
  border-radius: 15px; /* Rounded corners */
  border: 1px solid #ced4da; /* Border color */
  font-size: 16px; /* Font size for the text */
}

/* Focus effect when user selects the dropdown */
.select2:focus {
  border-color: #28a745; /* Green border color when focused */
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); /* Soft green shadow */
}

/* Error styling */
.text-danger {
  font-size: 0.875rem;
  color: #dc3545; /* Red color for error */
  margin-top: 5px;
}


/* Meal Item Card Styling */
.meal-item {
  background-color: #ffffff; /* White background for clean look */
  border-radius: 8px; /* Rounded corners for smooth edges */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effect */
}

/* Hover Effect */
.meal-item:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Slightly larger shadow for hover */
}

/* Meal Header Styling */
.meal-item .card-title {
  font-size: 1.25rem; /* Larger font size for the meal name */
  font-weight: 600; /* Bold font for the name */
  color: #333; /* Dark text color for better contrast */
}

.meal-item .btn-outline-success {
  border-color: #28a745; /* Green border for the "View" button */
  color: #28a745; /* Green text color */
  font-size: 0.875rem; /* Slightly smaller button text */
}

/* "View" Button Hover Effect */
.meal-item .btn-outline-success:hover {
  background-color: #28a745; /* Green background on hover */
  color: #fff; /* White text on hover */
  border-color: #28a745; /* Green border on hover */
}

/* Meal Details Section */
.meal-item .meal-details {
  font-size: 0.875rem; /* Smaller text for meal details */
}

.meal-item .meal-details strong {
  color: #555; /* Lighter color for labels */
}

.meal-item .meal-details p {
  margin-bottom: 0; /* Remove bottom margin for paragraphs */
  color: #333; /* Dark text for meal details */
}

/* Responsive Layout for Meal Details */
@media (max-width: 767px) {
  .meal-item .meal-details {
      font-size: 0.85rem; /* Slightly smaller text on small screens */
  }
}

.nutrition_cards_spacing{
  margin-left: -4px;
}

label.required::after {
  content: ' *' !important;
  color: red;
}
.icon-container {
  position: relative; /* Ensures absolute positioning works */
  display: inline-block;
}

.premium-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px; /* Increase size */
}

/* Enhanced Mobile Sidebar Styles */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: #f8f9fa;
  z-index: 1050;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.show {
  left: 0;
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navigation cards styling */
.sidebar-nav-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.nav-card {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 10px;
  background-color: white;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #f0f0f0;
  color: #333;
}

.nav-card.active {
  background-color: #e6f7ff;
  border-left: 4px solid #0d6efd;
  font-weight: 500;
}

.nav-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f8f9fa;
  margin-right: 12px;
  flex-shrink: 0;
}

.nav-card-icon i {
  font-size: 1.2rem;
}

.nav-card-content {
  flex: 1;
}

.nav-card-title {
  font-weight: 500;
  display: block;
}

/* Section divider */
.sidebar-section-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.sidebar-section-divider:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(0,0,0,0.1);
}

.sidebar-section-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background-color: #f8f9fa;
  font-size: 0.85rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer section */
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
#backButton {
  color: #333;
  padding: 8px 12px;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

#backButton:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

#backButton:active {
  background-color: rgba(0, 0, 0, 0.1);
}

#backButton:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
  border-radius: 8px;
}