/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}
html, body {
  touch-action: manipulation;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
  height: 100vh;
  overflow-x: hidden !important;
}
body, body * {
  transition: background-color 0.3s ease, color 0.3s ease;
}
body.sidebar-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
/* Header / search bar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  z-index: 1100;
  transition: background-color 0.3s ease, margin-left 0.25s ease;
}
.header.glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
}
.header-wrapper, .content-layout-wrapper{
  width: 100vw;transition: margin-left 0.25s ease;
}
.search-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  margin: 0 auto;
  min-width: 320px;
  width: 900px;
  max-width: 100%;
}
input, textarea, select {
  touch-action: manipulation;
  font-size: 16px;
}
.search-bar-container input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem;
  border: none;
  background: transparent;
  color: #fff;
  transition: background 0.25s;
  border-radius: 3px;
}
.search-bar-container input:focus {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}
.search-bar-container input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.search-bar-container button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
/* Content area */
.content-area {
  padding: 85px 0 15px 0;
  width: 900px;
  max-width: 100%;
  margin: 0 auto;
}
.content-area,
.header {
  min-width: 320px;
}
.meal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  cursor: pointer;
}
.meal img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
}
/* Sidebar */
#sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  z-index: 1200;
  transition: left 0.25s ease;
}
#sidebar.show {
  left: 0;
}
body.sidebar-open .header-wrapper,
body.sidebar-open .content-layout-wrapper {
  margin-left: 250px;
}
/* Modal */
#custom-modal {
  position: fixed;
  inset: 0;
  background: #fff;
  display: none;
  z-index: 1000;
}
#custom-modal-content {
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}
.modal-header {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 0 0 10px #000;
  font-size: 1.4rem;
  white-space: normal;
  padding: 0 10px;
  text-align: center;
  overflow: hidden;
}
.modal-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.modal-header > * {
  position: relative;
  z-index: 2;
}
.modal-body {
  padding: 1.25rem;
  max-width: 900px;
  min-width: 320px;
  margin: 0 auto;
  padding-bottom: 30px;
}
.modal-body, .modal-body * {
  user-select: text !important;
}
.modal-body ul {
  padding: 0 16px;
  list-style: circle;
}
.modal-body p, .modal-body ul li{
  padding: 3px 0;
}
.share-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.6rem 1.2rem;
  color: #fff;
  background: #4caf50;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.share-btn:hover {
  background: #3e8e41;
}
.share-btn::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f064";
  font-size: 1.2rem;
}
.share-btn.expanded {
  border-radius: 0.4rem;
  height: auto;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  white-space: normal;
  position: inherit;
  width: 100%;
}
.share-btn.expanded:before {
  padding: 0 5px 0 0;
}
/* Search overlay */
#search-overlay {
  width: 100%;
  display: block;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #555;
  text-align: center;
  padding: 20px;
}
/* Random recipes container */
#random-recipes-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
#random-recipes-container::-webkit-scrollbar {
  display: none;
}
#random-recipes-container-wrapper {
  position: relative;
}
#container-wrapper {
  padding: 10px;
}
.scroll-gradient {
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
}
.scroll-gradient.left {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.8), rgba(255,255,255,0));
}
.scroll-gradient.right {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.8), rgba(255,255,255,0));
}
.random-recipe-item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 160px;
  scroll-snap-align: start;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.random-recipe-item img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: 100px;
}
.random-recipe-item div {
  margin-top: 6px;
  font-size: 0.9rem;
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Past search keywords */
.past-search-keyword {
  display: inline-block;
  margin: 4px;
  padding: 4px 8px;
  background: #eee;
  border-radius: 12px;
  position: relative;
}
.past-search-keyword .keyword-text {
  cursor: pointer;
}
.past-search-keyword .remove-keyword {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: red;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
/* Loading placeholder */
.loader-placeholder {
  display: flex;
  gap: 12px;
  align-items: center;
}
.loading-item {
  width: 160px;
  height: 158px;
  border-radius: 10px;
  background: #e0e0e0;
  position: relative;
  overflow: hidden;
  max-width: 160px;
}
.loading-item.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(200%);
  }
}
/* Logo */
.logo {
  height: 60px;
  aspect-ratio: 3 / 1;
  background-image: url(logo-light.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  background-size: 82px;
}
.modal-body p:last-of-type {
  padding-bottom: 10px;
}
.modal-page-content {
  padding-top: 62px;
}
/* Form error */
.form-error {
  background-color: #ffe6e6;
  border: 1.5px solid #ff4d4d;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  color: #b30000;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}
/* Auth form */
.auth-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
}
.auth-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out;
}
.auth-form input:focus {
  border-color: #0078D7;
  outline: none;
}
.auth-form button {
  background-color: #0078D7;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.auth-form button:hover {
  background-color: #005bb5;
}
.auth-form .form-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}
#login-btn-sidebar {
  background-color: transparent;
  padding: 15px 10px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
/* Recipe form */
#recipe-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#recipe-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}
#recipe-form input[type="text"],
#recipe-form input[type="file"],
#recipe-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
}
#recipe-form textarea {
  min-height: 100px;
}
#recipe-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
#recipe-btn:hover,
#recipe-btn:focus {
  background-color: #0056b3;
  outline: none;
}
#image-action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}
.round-btn {
  background-color: inherit;
  border: 2.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  color: #333;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.7);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.round-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}
.round-btn:active {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.6);
  transform: translateY(0);
}
.round-btn:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(163, 191, 250, 0.6);
}
/* Profile view specific styles */
.modal-page-content.profile-view {
  padding-bottom: 50px; /* Add some padding at the bottom for better scroll detection */
}
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}
.profile-header h2 {
  margin-bottom: 15px;
  text-align: center;
}
.profile-header img {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.user-recipes-section {
  margin-top: 20px;
  padding: 0 15px;
}
.user-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.recipe-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
  background-color: #fff;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.recipe-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.recipe-info {
  padding: 10px;
}
.recipe-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipe-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
}
.loading-recipes-indicator, .no-more-recipes {
  text-align: center;
  padding: 20px;
  color: #666;
  clear: both;
}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.no-recipes-message, .error-message {
  text-align: center;
  padding: 20px;
  color: #666;
  grid-column: 1 / -1; /* Make the message span the full width */
}
/* Profile card */
.profile-card {
  display: flex;
  align-items: center;
  background-color: #f1f1f1;
  border-radius: 10px;
  padding: 10px;
  gap: 10px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  cursor: pointer;
}
.profile-card-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ccc;
}
.profile-card-info {
  display: flex;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  font-size: 13px;
  color: #333;
  gap: 5px;
}
.display-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 160px;
}
.user-credit {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logout-btn {
  background: #e74c3c;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 13px;
  margin-top: 5px;
  width: 100%;
}
.logout-btn i {
  pointer-events: none;
}
.logout-btn:hover {
  background: #c0392b;
}
#custom-modal-loading {display:none; text-align:center; padding: 20px;margin-top: 60px;}
.spinner {
  margin: auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #555;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* diet-chatbot.css */
.diet-chatbot {
  color: #e0e0e0;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #343541 0%, #202123 100%);
      padding: 0;
}
.diet-chatbot .modal-body {
  max-width: 100%;
  padding: 0;
  height: 100%;
}
.chat-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}
.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 62px);
    padding-bottom: 140px;
    padding-top: 70px;
}
.bot-message, .user-message {
  margin-bottom: 15px;
  max-width: 90%;
      clear: both;
      transform: scale(0);
    transform-origin: 0 0;
    -webkit-animation: bounce 500ms linear both;
    animation: bounce 500ms linear both;
}
/*--------------------
Bounce
--------------------*/
@-webkit-keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
.bot-message {
      clear: both;
    float: left;
    position: relative;
}
.user-message {
  float: right;
    text-align: right;
}
.message-content {
  padding: 12px 15px;
  border-radius: 18px;
  line-height: 1.5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
font-variant-emoji: emoji;
}
.bot-message .message-content {
  background-color: #1e3a5f;
  border-bottom-left-radius: 4px;
  line-height: 1.6;
}
.user-message .message-content {
  background-color: #2e4d2e;
  border-bottom-right-radius: 4px;
  text-align: right;
}
.chat-input-container {
    display: flex;
    flex-wrap: wrap; /* allows items to wrap to next line */
    justify-content: center;
    align-items: center;
    gap: 10px; /* spacing between items */
    padding: 10px;
    background: rgba(45, 45, 45, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 100px);
    z-index: 2;
}
/* Make the third child span full width on a new row */
.chat-input-container > :nth-child(3) {
    flex: 1 1 100%; /* take full row */
    text-align: center; /* optional - center it */
}

.chat-input-container #user-input {
  background-color: transparent;
  flex-grow: 1;
  border: 1px solid #555;
  border-radius: 9px;
  padding: 10px 15px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  color: #dbdbdb;
  max-height: calc(100vh - 160px);
}
.chat-input-container #user-input:focus {
  border-color: #4CAF50;
}
.send-button {
  margin-left: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}
.send-button:hover {
  background-color: #45a049;
}
.send-button:before {
  content: "➤";
  font-size: 16px;
}
.chatbot-footer {
    font-size: 10px;
    color: #B3B3B4;
    text-align: center;
}
.typing-indicator .message-content {
  background-color: #1e3a5f;
  padding: 10px 15px;
  width: 60px;
}
.typing-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 30px;
}
.typing-dots span {
  width: 8px;
  height: 8px;
  background-color: #64b5f6;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}
/* Typing effect styles */
.typing-message .message-content {
  position: relative;
}
.typed-text {
  display: block;
    white-space: pre-wrap;
  word-wrap: break-word;
}
.cursor {
  display: none;
  width: 10px;
  height: 20px;
  background-color: #3498db;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Diet plan button styling */
.diet-plan-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px 0;
  font-size: 14px;
}
.diet-plan-btn:hover {
  background-color: #45a049;
}
.diet-plan-btn i {
  margin-right: 8px;
}
/* Add this to your CSS */
/* Add this to your CSS */
.message-timestamp {
  font-size: 11px;
  color: #888;
  text-align: right;
  margin-top: 4px;
  margin-right: 5px;
}
.user-message .message-timestamp {
  text-align: right;
}
.bot-message .message-timestamp {
  text-align: left;
}
/* Also add some styling for the copy button */
.copy-plan-btn {
  width: 100%;
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #4CAF50 !important;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
}
.copy-plan-btn:hover {
  background-color: #45a049;
}
.copy-plan-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.5);
}
.upgrade-prompt {
  clear: both;
    float: left;
    position: relative;
    width: 100%;
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}
.upgrade-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
.upgrade-btn:hover {
  background-color: #45a049;
}
.message-count {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
}
.scroll-to-bottom-btn {
  background: rgba(45, 45, 45, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
  color: white;
    width: 50px;
    height: 50px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    transition: all 0.3s ease;
    z-index: 1;
}
.scroll-to-bottom-btn:hover {
  background-color: rgb(45 45 45 / 50%);
}
.scroll-to-bottom-btn.show {
  display: block;
}
/* Banner Management Styles */
.banner-management .banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.banner-management .banners-list {
  margin-top: 20px;
}
.banner-management .banner-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  background-color: #fff;
}
.banner-management .banner-image-container {
  margin-right: 15px;
  flex-shrink: 0;
}
.banner-management .banner-thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}
.banner-management .banner-info {
  flex-grow: 1;
}
.banner-management .banner-info h4 {
  margin-top: 0;
  color: #333;
}
.banner-info p {
  padding-bottom: 0 !important;
}
.banner-management .banner-stats {
    display: flex;
    gap: 15px;
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}
.banner-management .banner-status {
  font-size: 11px;
  color: #666;
}
.banner-management .banner-actions {
  display: flex;
  align-items: center;
}
.banner-management .delete-banner-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}
.banner-management .banner-form-container {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #ddd;
}
.banner-management .form-group {
  margin-bottom: 15px;
  position: relative;
}
.banner-management .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.banner-management .char-counter {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-top: 3px;
}
.banner-management .form-group input,
.banner-management .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.banner-management .form-group small {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  display: block;
}
.lolipolo-preview {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}
body.dark-mode .lolipolo-preview {
    background-color: #232323;
    border-color: #555;
}
.lolipolo-preview h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}
body.dark-mode .lolipolo-preview h4 {
    color: #f0f0f0;
}
.lolipolo-preview-container {
  margin-top: 10px;
}
/* The preview should use the same styles as the live ads */
.lolipolo-preview .lolipolo-btn {
  background-color: #3498db;
  opacity: 0.7;
}
/* Dark mode for banner preview */
body.dark-mode .lolipolo-preview .lolipolo-btn {
  background-color: #2980b9;
  opacity: 0.6;
}
.banner-management .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.banner-management .btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.banner-management .btn-primary.limit-reached {
  background-color: #95a5a6;
  cursor: not-allowed;
  opacity: 0.7;
}
.banner-management .btn-primary:hover:not(.limit-reached) {
  background-color: #2980b9;
}
.banner-management .btn-secondary {
  background-color: #95a5a6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
/* Banner Display Styles */
.lolipolo-container {
  margin: 20px 0;
  text-align: left;
}
.lolipolo {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-items: stretch; /* Make both columns equal height */
    min-height: 100px; /* Minimum height for the container */
}
.lolipolo img {
    height: 100%; /* Match container height */
    width: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover; /* Show full image without cropping */
    max-width: 100px; /* Limit width to 100px max */
    margin: auto; /* Center the image horizontally */
}
.lolipolo-content {
    padding: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}
.sponsored-label {
  color: #666;
  font-size: 9px;
  text-transform: uppercase;
  margin-left: 10px; /* Add space between title and label */
}
/* Dark mode styles for sponsored label */
body.dark-mode .sponsored-label, .chat-messages .sponsored-label{
  color: #aaa;
}
.lolipolo-hide-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 25px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 0px 0px 0px 5px;
    display: flex
;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    z-index: 10;
    transition: background-color 0.2s ease;
}
.lolipolo-hide-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
/* Dark mode styles for hide button */
body.dark-mode .lolipolo-hide-btn, .chat-messages .lolipolo-hide-btn {
  background-color: rgb(255 255 255 / 15%);
}
body.dark-mode .lolipolo-hide-btn:hover, .chat-messages .lolipolo-hide-btn:hover {
  background-color: rgb(255 255 255 / 5%);
}
.lolipolo-header {
  display: grid;
  grid-template-columns: auto 1fr; /* Title takes available space, label takes auto */
  align-items: center; /* Vertically align items */
  margin-bottom: 8px;
}
.lolipolo-header h4 {
  margin: 0;
  color: #333;
  font-size: 16px;
  white-space: nowrap; /* Prevent wrapping */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; /* Add "..." if text is too long */
}
.lolipolo-content p {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  padding: 0 !important;
}
.lolipolo-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  transition: background-color 0.2s ease;
}
.lolipolo-btn:hover {
  background-color: #2980b9;
}
.lolipolo-image-placeholder {
  height: 100%;
  width: auto;
  max-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 10px;
  margin: auto;
  border-radius: 4px;
}
/* Notification Styles */
/* Notification Badge */
.notification-badge {
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-left: auto;
}
/* Notification Dropdown */
.notification-dropdown {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.notification-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}
.notification-dropdown.hide {
  opacity: 0;
  transform: translateY(-10px);
}
/* Dark mode for dropdown */
body.dark-mode .notification-dropdown {
  background: #1e1e1e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
/* Notification Header */
.notification-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notification-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}
/* Dark mode for header */
body.dark-mode .notification-header {
  border-bottom-color: #333;
}
body.dark-mode .notification-header h3 {
  color: #e0e0e0;
}
/* Notification List */
.notification-list {
  max-height: 400px;
  overflow-y: auto;
}
/* Custom scrollbar for notification list */
.notification-list::-webkit-scrollbar {
  width: 6px;
}
.notification-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.notification-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
.notification-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* Dark mode scrollbar */
body.dark-mode .notification-list::-webkit-scrollbar-track {
  background: #2c2c2c;
}
body.dark-mode .notification-list::-webkit-scrollbar-thumb {
  background: #555;
}
body.dark-mode .notification-list::-webkit-scrollbar-thumb:hover {
  background: #777;
}
/* Notification Items */
.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.notification-item:hover {
  background-color: #f9f9f9;
}
.notification-item.read {
  opacity: 0.7;
}
.notification-item.unread {
  background-color: #f0f8ff;
  font-weight: 500;
}
.notification-item.unread:hover {
  background-color: #e6f3ff;
}
/* Dark mode for notification items */
body.dark-mode .notification-item {
  border-bottom-color: #333;
}
body.dark-mode .notification-item:hover {
  background-color: #2c2c2c;
}
body.dark-mode .notification-item.read {
  opacity: 0.6;
}
body.dark-mode .notification-item.unread {
  background-color: #1e3a5f;
}
body.dark-mode .notification-item.unread:hover {
  background-color: #254673;
}
/* Notification Content */
.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.notification-content {
  flex: 1;
  min-width: 0;
}
.notification-message {
  font-size: 14px;
  margin-bottom: 4px;
  word-wrap: break-word;
}
.notification-time {
  font-size: 12px;
  color: #666;
}
/* Dark mode for notification content */
body.dark-mode .notification-time {
  color: #aaa;
}
/* Notification Indicator */
.notification-indicator {
  width: 8px;
  height: 8px;
  background-color: #3498db;
  border-radius: 50%;
  margin-left: 8px;
  align-self: center;
  flex-shrink: 0;
}
/* Dark mode for indicator */
body.dark-mode .notification-indicator {
  background-color: #64b5f6;
}
/* No notifications message */
.no-notifications {
  text-align: center;
  padding: 20px;
  color: #666;
}
/* Dark mode for no notifications */
body.dark-mode .no-notifications {
  color: #aaa;
}
/* Animation for new notifications */
@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.notification-item.new {
  animation: slideIn 0.3s ease-out;
}
/* Notification Sections */
.notification-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.section-header {
  margin-bottom: 10px;
  padding: 0 15px;
}
.section-header h4 {
  margin: 0;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding-top: 10px;
}
/* Dark mode for sections */
body.dark-mode .section-header h4 {
  color: #e0e0e0;
}
/* Loading Indicators */
.loading-indicator {
  text-align: center;
  padding: 15px;
  color: #666;
}
.loading-indicator .spinner {
  margin: 0 auto 10px;
}
/* Dark mode for loading */
body.dark-mode .loading-indicator {
  color: #aaa;
}
/* Load More Button */
.load-more-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 10px 15px;
}
.load-more-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}
.load-more-btn:active {
  transform: scale(0.98);
}
/* Dark mode for load more button */
body.dark-mode .load-more-btn {
  background: #2c2c2c;
  border-color: #444;
  color: #e0e0e0;
}
body.dark-mode .load-more-btn:hover {
  background: #3c3c3c;
  border-color: #555;
}
.error-message {
  text-align: center;
  padding: 20px;
  color: #e74c3c;
  background-color: #ffeaea;
  border-radius: 4px;
  margin: 10px 15px;
}
/* Dark mode for error message */
body.dark-mode .error-message {
  color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.1);
}
/* Header notification icon */
.header-notification-icon {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.header-notification-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.header-notification-icon:active {
  transform: scale(0.95);
}
.header-notification-icon i {
  font-size: 1.2rem;
  color: #fff;
  pointer-events: none;
}
/* Notification badge in header */
.header-notification-icon .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  pointer-events: none;
}
/* Dark mode styles for header notification icon */
body.dark-mode .header-notification-icon:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
/* Adjust search bar container */
.search-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  margin: 0 auto;
  min-width: 320px;
  width: 900px;
  max-width: 100%;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .search-bar-container {
    width: calc(100% - 40px);
  }
  
  .header-notification-icon {
    margin-left: 10px;
  }
}
@media (max-width: 480px) {
.notification-dropdown {
        width: 100%;
        right: 0;
        left: 0;
        border-radius: 0;
        height: calc(100% - 60px);
        overflow-y: scroll;
        padding-bottom: 10px;
    }
}
/* Recipe meta information styling */
.recipe-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
}
.recipe-meta p {
  margin: 0;
  font-size: 14px;
  color: #666;
}
/* Dark mode for recipe meta */
body.dark-mode .recipe-meta {
  background-color: #2c2c2c;
}
body.dark-mode .recipe-meta p {
  color: #aaa;
}
/* Recipe owner card styles */
.recipe-owner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}
.recipe-owner-card .profile-card {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
  flex: 1;
}
.recipe-owner-card .profile-card:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.recipe-owner-card .profile-card-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}
.recipe-owner-card .profile-card-info {
  display: flex;
  flex-direction: column;
}
.recipe-owner-card .display-name {
  font-weight: bold;
  margin-bottom: 2px;
}
.recipe-owner-card .user-username {
  font-size: 14px;
  color: #666;
}
.recipe-owner-card .owner-actions {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
/* Offline message styling */
.offline-message {
  text-align: center;
  padding: 20px;
  color: #666;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}
body.dark-mode .offline-message {
  color: #aaa;
  background-color: #2c2c2c;
}
/* Follow Button */
.follow-btn {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}
.follow-btn:hover {
  background-color: #2980b9;
}
.follow-btn.following {
  background-color: #2ecc71;
}
.follow-btn.following:hover {
  background-color: #27ae60;
}
/* Add to your CSS file */
/* Followers/Following View Styles */
.followers-following-view .followers-following-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.followers-following-view .followers-following-header h2 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
}
.followers-following-view .followers-following-header .subtitle {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}
.followers-following-list {
  max-height: 60vh;
  overflow-y: auto;
}
.user-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.user-item:hover {
  background-color: #f9f9f9;
}
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-info {
  flex-grow: 1;
}
.user-name {
  font-weight: 600;
  margin-bottom: 2px;
}
.user-username {
  color: #666;
  font-size: 0.9rem;
}
.follow-btn-container {
  margin-left: 10px;
}
/* Dark mode styles */
body.dark-mode .followers-following-view .followers-following-header {
  border-bottom-color: #333;
}
body.dark-mode .followers-following-view .followers-following-header .subtitle {
  color: #aaa;
}
body.dark-mode .user-item {
  border-bottom-color: #333;
}
body.dark-mode .user-item:hover {
  background-color: #2c2c2c;
}
body.dark-mode .user-username {
  color: #aaa;
}
/* Add to your CSS file */
/* Settings View Styles - Fixed and Complete */
.settings-view .settings-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.settings-view .settings-header h2 {
  margin: 0;
  color: #333;
}
/* Fixed container - allows content to expand */
.settings-container {
  position: relative;
  width: 100%;
  /* Removed min-height and overflow - content will now expand naturally */
}
/* Slide Animation Container Styles - RESTORED */
.settings-list-view,
.settings-panel-view {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: translateX(0);
  opacity: 1;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  padding: 0 15px;
  overflow-y: auto; /* Allow vertical scrolling if needed */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* Slide Out Left Animation - RESTORED */
.slide-out-left {
  transform: translateX(-100%) !important;
  opacity: 0 !important;
}
/* Slide In Left Animation - RESTORED */
.slide-in-left {
  transform: translateX(-100%) !important;
  opacity: 0 !important;
  /*animation: slideInFromLeft 0.3s ease-in-out forwards !important;*/
}
/* Slide Out Right Animation - RESTORED */
.slide-out-right {
  transform: translateX(100%) !important;
  opacity: 0 !important;
}
/* Slide In Right Animation - RESTORED */
.slide-in-right {
  transform: translateX(100%) !important;
  opacity: 0 !important;
  /*animation: slideInFromRight 0.3s ease-in-out forwards !important;*/
}
/* Settings Sidebar - RESTORED */
.settings-sidebar {
  width: 250px;
  background: #f9f9f9;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  margin-right: 20px;
}
.settings-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}
.settings-item:hover {
  background: #f0f0f0;
}
.settings-item.active {
  background: #e8f5e9;
  border-left-color: #4caf50;
  color: #2e7d32;
  font-weight: 500;
}
.settings-item i {
  width: 20px;
  margin-right: 15px;
  text-align: center;
  color: #666;
}
.settings-item.active i {
  color: #4caf50;
}
.settings-item span {
  flex: 1;
}
/* Click Animation - RESTORED */
.settings-item.clicked {
  animation: settingsClick 0.3s ease;
}
@keyframes settingsClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
/* Panel Styles */
.panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.panel-header i {
  font-size: 24px;
  margin-right: 15px;
  color: #4caf50;
}
.panel-header h3 {
  margin: 0;
  color: #333;
}
.panel-content {
  color: #666;
}
.panel-content input,
.panel-content button {
  max-width: 100%;
  box-sizing: border-box;
}
/* Back Button - RESTORED */
/* Privacy Settings */
.privacy-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}
.privacy-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.privacy-option {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.privacy-option:hover {
  border-color: #4caf50;
  background: #f5f5f5;
}
.privacy-option input[type="radio"] {
  margin-right: 15px;
  margin-top: 2px;
}
.option-content {
  flex: 1;
}
.option-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.option-description {
  font-size: 13px;
  color: #666;
}
.privacy-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}
/* Button Styles */
.btn-primary {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-secondary {
  background: #95a5a6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.btn-danger {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
body.dark-mode button {
    background: transparent;
    color: #eee;
    border: none;
}
.settings-btn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-top: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}
.settings-btn:hover {
    background-color: #e0e0e0;
}

/* Favorites Page Styles */
.favorites-view .favorites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.favorites-view .favorites-stats {
  font-size: 14px;
  color: #666;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.favorites-grid .recipe-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.favorites-grid .recipe-card:hover {
  transform: translateY(-5px);
}

.favorites-grid .recipe-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.favorites-grid .recipe-info {
  padding: 10px;
}

.favorites-grid .recipe-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorites-grid .recipe-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.favorite-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.favorite-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.favorite-btn.favorited {
  color: #e74c3c;
}

.favorite-btn:not(.favorited) {
  color: #ccc;
}

/* Analytics Page Styles */
.analytics-view .analytics-header {
  margin-bottom: 30px;
}

.analytics-view .period-selector {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.period-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.period-btn.active {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

.analytics-summary {
  margin-bottom: 30px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.summary-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-icon {
  font-size: 24px;
  color: #4caf50;
  margin-bottom: 10px;
}

.summary-number {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 5px 0;
}

.activities-section h3 {
  margin-bottom: 15px;
  color: #333;
}

.activities-list {
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.activity-item:hover {
  background-color: #f9f9f9;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.activity-item.follow .activity-icon {
  background: #e3f2fd;
  color: #2196f3;
}

.activity-item.view .activity-icon {
  background: #f3e5f5;
  color: #9c27b0;
}

.activity-item.favorite .activity-icon {
  background: #ffebee;
  color: #e91e63;
}

.activity-content {
  flex: 1;
}

.activity-message {
  margin: 0 0 5px 0;
  color: #333;
}

.activity-time {
  font-size: 12px;
  color: #666;
}

.custom-date-range {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.date-inputs {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.date-input-group {
  flex: 1;
}

.date-input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.date-input-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Dark mode styles */
body.dark-mode .favorites-view .favorites-header {
  border-bottom-color: #333;
}

body.dark-mode .favorites-view .favorites-stats {
  color: #aaa;
}

body.dark-mode .summary-card {
  background: #2c2c2c;
}

body.dark-mode .summary-number {
  color: #e0e0e0;
}

body.dark-mode .period-btn {
  background: #2c2c2c;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .period-btn.active {
  background: #4caf50;
  border-color: #4caf50;
}

body.dark-mode .activity-item {
  border-bottom-color: #333;
}

body.dark-mode .activity-item:hover {
  background: #2c2c2c;
}

body.dark-mode .activity-message {
  color: #e0e0e0;
}

body.dark-mode .custom-date-range {
  background: #2c2c2c;
}

body.dark-mode .date-input-group label {
  color: #e0e0e0;
}

body.dark-mode .date-input-group input {
  background: #3c3c3c;
  border-color: #555;
  color: #e0e0e0;
}
/* Premium Badge */
.premium-badge {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
  display: inline-block;
  vertical-align: middle;
}
.premium-expiry {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

body.dark-mode .premium-expiry {
  color: #aaa;
}
/* Dark mode premium badge */
body.dark-mode .premium-badge {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  box-shadow: 0 1px 3px rgba(255, 215, 0, 0.5);
}
/* Dark Mode Styles */
body.dark-mode .settings-view .settings-header {
  border-bottom-color: #333;
}
body.dark-mode .settings-view .settings-header h2 {
  color: #e0e0e0;
}
body.dark-mode .settings-sidebar {
  background: #2c2c2c;
}
body.dark-mode .settings-item:hover {
  background: #3c3c3c;
}
body.dark-mode .settings-item.active {
  background: #1e3a1e;
  border-left-color: #4caf50;
  color: #64b5f6;
}
body.dark-mode .settings-item i {
  color: #aaa;
}
body.dark-mode .settings-item.active i {
  color: #64b5f6;
}
body.dark-mode .panel-header {
  border-bottom-color: #333;
}
body.dark-mode .panel-header h3 {
  color: #e0e0e0;
}
body.dark-mode .panel-content {
  color: #aaa;
}
body.dark-mode .privacy-section {
  background: #2c2c2c;
}
body.dark-mode .privacy-option {
  background: #1e1e1e;
  border-color: #444;
}
body.dark-mode .privacy-option:hover {
  border-color: #4caf50;
  background: #2c2c2c;
}
body.dark-mode .option-title {
  color: #e0e0e0;
}
body.dark-mode .option-description {
  color: #aaa;
}
body.dark-mode .settings-btn {
    background-color: #2c2c2c;
    color: #e0e0e0;
}
body.dark-mode .settings-btn:hover {
    background-color: #3c3c3c;
}
/* Responsive Styles */
@media (max-width: 768px) {
  .settings-container {
    flex-direction: column;
  }
  
  .settings-sidebar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    margin-right: 0;
  }
  
  .settings-item {
    padding: 12px 15px;
  }
  
  .settings-item i {
    width: 18px;
    margin-right: 12px;
  }
}
/* Profile Actions */
.profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.edit-profile-btn {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}
.edit-profile-btn:hover {
  background-color: #2980b9;
}
/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}
.toast.show {
  opacity: 1;
}
body.dark-mode .lolipolo-image-placeholder {
  background-color: #444;
  color: #aaa;
}
/* Dark Mode Styles */
body.dark-mode .banner-management .banner-item {
  border-color: #444;
  background-color: #2c2c2c;
}
body.dark-mode .banner-management .banner-thumbnail {
  border-color: #555;
}
body.dark-mode .banner-management .banner-info h4 {
  color: #f0f0f0;
}
body.dark-mode .banner-management .banner-stats {
  color: #aaa;
}
body.dark-mode .banner-management .banner-status {
  color: #aaa;
}
body.dark-mode .banner-management .banner-form-container {
  background-color: #2c2c2c;
  border-color: #444;
}
/* Dark mode for character counters */
body.dark-mode .banner-management .char-counter {
  color: #aaa;
}
/* Character counter styling when approaching limit */
.banner-management .char-counter.warning {
  color: #f39c12;
}
.banner-management .char-counter.danger {
  color: #e74c3c;
}
/* Dark mode for warning/danger states */
body.dark-mode .banner-management .char-counter.warning {
  color: #f1c40f;
}
body.dark-mode .banner-management .char-counter.danger {
  color: #e74c3c;
}
/* Dark mode for disabled preview button */
body.dark-mode .banner-management .banner-preview-btn:disabled {
  background-color: #7f8c8d;
  opacity: 0.6;
}
body.dark-mode .banner-management .form-group label {
  color: #f0f0f0;
}
body.dark-mode .banner-management .form-group input,
body.dark-mode .banner-management .form-group textarea {
  background-color: #3c3c3c;
  border-color: #555;
  color: #f0f0f0;
}
body.dark-mode .banner-management .form-group small {
  color: #aaa;
}
/* Dark mode styles */
body.dark-mode .lolipolo, .chat-messages .lolipolo{
  border-color: #444;
  background-color: #2c2c2c;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
body.dark-mode .lolipolo-content, .chat-messages .lolipolo-content{
  background-color: #2c2c2c;
}
body.dark-mode .lolipolo-content h4, .chat-messages .lolipolo-content h4 {
  color: #f0f0f0;
}
body.dark-mode .lolipolo-content p, .chat-messages .lolipolo-content p{
  color: #aaa !important;
}
body.dark-mode .lolipolo-btn, .chat-messages .lolipolo-btn {
  background-color: #2980b9;
}
body.dark-mode .lolipolo-btn:hover, .chat-messages .lolipolo-btn:hover {
  background-color: #1f639a;
}
body.dark-mode .banner-management .btn-primary {
  background-color: #2980b9;
}
body.dark-mode .banner-management .btn-primary.limit-reached {
  background-color: #7f8c8d;
  opacity: 0.6;
}
body.dark-mode .banner-management .btn-secondary {
  background-color: #7f8c8d;
}
/* Dark mode hover effects */
body.dark-mode .banner-management .delete-banner-btn:hover {
  background-color: #c0392b;
}
body.dark-mode .banner-management .btn-primary:hover {
  background-color: #1f639a;
}
body.dark-mode .banner-management .btn-secondary:hover {
  background-color: #6c7b7d;
}
body.dark-mode .banner-ad-btn:hover {
  background-color: #1f639a;
}
body.dark-mode .banner-ad:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
/* Responsive */
@media (max-width: 600px) {
  .auth-form {
    margin: 1rem;
    padding: 1.5rem;
    max-width: 100%;
  }
}
/* Dark mode */
body.dark-mode  .logo { 
  background-image: url(logo-dark.svg);
}
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark-mode .header {
  color: #eee;
  background: #222;
}
body.dark-mode .header.glass {
  background-color: transparent;
}
body.dark-mode .search-bar-container input {
  color: #eee;
  border-color: transparent;
}
body.dark-mode .search-bar-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
body.dark-mode #sidebar {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 0 12px rgb(0 0 0 / 0.6);
}
body.dark-mode #custom-modal, body.dark-mode #custom-modal-content {
  background: #121212;
  color: #ddd;
}
body.dark-mode .modal-header {
  color: #eee;
  text-shadow: 0 0 8px #000;
}
body.dark-mode .modal-body p,
body.dark-mode .modal-body ul,
body.dark-mode .modal-body li {
  color: #ddd;
}
body.dark-mode .share-btn {
  background: #388e3c;
  color: #fff;
}
body.dark-mode .share-btn:hover {
  background: #2e7030;
}
body.dark-mode #random-recipes-container {
  background: transparent;
}
body.dark-mode .random-recipe-item {
  background: #2c2c2c;
  color: #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}
body.dark-mode .meal {
  color: #ddd;
}
body.dark-mode .meal img,
body.dark-mode .random-recipe-item img {
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(255,255,255,0.15);
}
body.dark-mode #results {
  color: #ddd;
}
body.dark-mode #past-search-keywords {
  background: transparent;
  color: #ddd;
}
body.dark-mode .past-search-keyword {
  background: #444;
  color: #eee;
  border: 1px solid #666;
}
body.dark-mode .past-search-keyword:hover {
  background: #555;
}
body.dark-mode .remove-keyword {
  background: #222;
  border: 1px solid #444;
  color: #f44336;
}
body.dark-mode #search-overlay {
  color: #aaa;
}
body.dark-mode .scroll-gradient.left {
  background: linear-gradient(to right, #121212, transparent);
}
body.dark-mode .scroll-gradient.right {
  background: linear-gradient(to left, #121212, transparent);
}
body.dark-mode button {
  background: transparent;
  color: #eee;
  border: none;
}
body.dark-mode ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body.dark-mode ::-webkit-scrollbar-track {
  background: #222;
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #888;
}
body.dark-mode .loading-item {
  background: #1e1e1e;
}
body.dark-mode .loading-item.shimmer::before {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
}
body.dark-mode .auth-form {
  background: #1e1e1e;
  color: #e0e0e0;
}
body.dark-mode .auth-form h2 {
  color: #e0e0e0;
}
body.dark-mode .auth-form input[type="email"],
body.dark-mode .auth-form input[type="password"],
body.dark-mode .auth-form input[type="text"] {
  background: #2c2c2c;
  color: #e0e0e0;
  border-color: #444;
}
body.dark-mode .auth-form input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
body.dark-mode .auth-form button {
  background: #4caf50;
  color: #fff;
}
body.dark-mode .auth-form button:hover {
  background: #3e8e41;
}
body.dark-mode .auth-form .form-footer {
  color: #aaa;
}
body.dark-mode #recipe-form {
  background: #1e1e1e;
  color: #e0e0e0;
}
body.dark-mode #recipe-form label {
  color: #e0e0e0;
}
body.dark-mode #recipe-form input[type="text"],
body.dark-mode #recipe-form input[type="file"],
body.dark-mode #recipe-form textarea {
  background: #2c2c2c;
  color: #e0e0e0;
  border-color: #444;
}
body.dark-mode #recipe-form input:focus,
body.dark-mode #recipe-form textarea:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
body.dark-mode #recipe-btn {
  background: #4caf50;
}
body.dark-mode #recipe-btn:hover,
body.dark-mode #recipe-btn:focus {
  background: #3e8e41;
}
body.dark-mode .round-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1);
}
body.dark-mode .round-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
}
body.dark-mode .round-btn:active {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
}
body.dark-mode .round-btn:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.4);
}
body.dark-mode .profile-card {
  background: #2c2c2c;
  color: #e0e0e0;
}
body.dark-mode .profile-card-image {
  border-color: #444;
}
body.dark-mode .profile-card-info {
  color: #e0e0e0;
}
body.dark-mode .user-credit {
  color: #aaa;
}
body.dark-mode .logout-btn {
  background: #c0392b;
}
body.dark-mode .logout-btn:hover {
  background: #a93226;
}
body.dark-mode .spinner {
  border-top: 4px solid #4caf50;
}
body.dark-mode .form-error {
  background-color: rgba(255, 107, 107, 0.1);
  border-color: #ff6b6b;
  color: #ff6b6b;
}
/* Disabled state for input and button */
#user-input:disabled, #send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* List styling for diet plan */
.bot-message ul, .bot-message ol {
  padding-left: 20px;
  margin: 0.5em 0;
}
.bot-message li {
  margin: 0.3em 0;
}
.bot-message h3 {
    margin: 1.5em 0 0.5em 0;
  font-weight: bold;
  color: #dddddd;
  font-size: 18px;
}
.bot-message h4 {
  color: #d2d2d2;
  font-size: 16px;
  font-weight: bold;
}
.bot-message hr {
  border: none;
  height: 1px;
  background-color: #ddd;
    margin: 1.5em 0;
  border: none;
}
.bot-message strong {
  font-weight: bold;
}
/* Specific classes for diet plan elements */
.day-header {
  color: #4CAF50;
  font-size: 20px;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 5px;
  margin-top: 20px !important;
  margin-bottom: 15px !important;
}
.meal-header {
  color: #3498db;
  font-size: 16px;
  margin-top: 15px !important;
  margin-bottom: 8px !important;
}
.section-divider {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 20px 0;
}
.meal-items {
  list-style-type: none;
  padding-left: 5px;
}
.meal-items li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.meal-items li::before {
  content: "•";
  color: #4CAF50;
  font-weight: bold;
  position: absolute;
  left: 0;
}
.numbered-list {
  list-style-type: none;
  padding-left: 5px;
  counter-reset: item;
}
.numbered-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 6px;
  counter-increment: item;
}
.numbered-list li::before {
  content: counter(item) ".";
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: 0;
}
/* Dark mode styling */
body.dark-mode .bot-message h3 {
  color: #e0e0e0;
}
body.dark-mode .bot-message h4 {
  color: #b0b0b0;
}
body.dark-mode .bot-message hr {
  background-color: #444;
}
body.dark-mode .day-header {
  color: #64b5f6;
  border-bottom-color: #64b5f6;
}
body.dark-mode .meal-header {
  color: #90caf9;
}
body.dark-mode .section-divider {
  background-color: #444;
}
body.dark-mode .meal-items li::before {
  color: #64b5f6;
}
body.dark-mode .numbered-list li::before {
  color: #90caf9;
}
/* Chat actions styling */
/* Large screens */
@media (min-width: 1400px) {
  #sidebar {
    left: 0 !important;
    background: transparent !important;
    box-shadow: initial !important;
  }
  #sidebar::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 2px;
    height: calc(100% - 10px);
    background-color: #272727;
  }
  #sidebar::after {
    content: "";
    position: absolute;
    top: 75px;
    right: 0;
    width: 2px;
    height: calc(100% - 75px);
    background-color: #f7f7f7;
  }
  body.dark-mode #sidebar::after {
    background-color: #181818;
  }
  body {
    overflow-x: hidden;
  }
  .content-layout-wrapper, .header-wrapper {
    margin-left: 0 !important;
  }
  body.sidebar-open {
    position: static;
    overflow: auto;
  }
  #custom-modal {
    margin-left: 250px;
  }
  #menu-btn, #back-btn {display:none !important}
  .logo {
    background-image: url(logo-dark.svg);
  }
  .glass .logo {
    background-image: url(logo-light.svg);
  }
  .search-bar-container {
    width: calc(100% - 250px);
    margin-left: 250px;
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .chat-input-container {
    width: calc(100% - 20px);
  }
    .scroll-to-bottom-btn {
    bottom: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}
/* Dark mode toggle animation */
.toggle-container {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.toggle-container 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: .4s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: #4caf50;
}
input:checked + .toggle-slider:before {
  transform: translateX(26px);
}
/* For screens > 500px */
@media (min-width: 501px) {
  /* Show both the list (as tabs) and panel view */
  .settings-list-view, .settings-panel-view {
    display: block !important;
    position: relative !important;
  }
  .settings-item {
    display: flex !important;
    align-items: center;
    padding: 12px 20px !important;
    margin: 0 10px 0 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border-bottom: 2px solid transparent !important;
  }
  .settings-item:hover {
    color: #333 !important;
    border-bottom-color: #ccc !important;
  }
  .settings-item.active {
    color: #4caf50 !important;
    border-bottom-color: #4caf50 !important;
    font-weight: 600 !important;
  }
  /* Show panels directly without animation on large screens */
  .settings-panel {
    display: none;
  }
  .settings-panel.active {
    display: block !important;
  }
  /* Settings tab container with scroll arrows */
.settings-list {
        display: flex
;
        border-bottom: 1px solid #ddd;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        position: relative;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: space-evenly;
    }
.settings-panel-view {
    margin-top: 15px;
}
.settings-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Scroll arrows */
.settings-scroll-container {
  position: relative;
}

.settings-scroll-left, .settings-scroll-right {
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 10px;
}

.settings-scroll-right {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.settings-scroll-left.visible, .settings-scroll-right.visible {
  opacity: 1;
}

.settings-scroll-left::before, .settings-scroll-right::before {
  content: "❮";
  font-size: 16px;
  color: #666;
}

.settings-scroll-right::before {
  content: "❯";
}

/* Dark mode for scroll arrows */
body.dark-mode .settings-scroll-left {
  background: linear-gradient(to right, rgba(30,30,30,0.9), rgba(30,30,30,0));
}

body.dark-mode .settings-scroll-right {
  background: linear-gradient(to left, rgba(30,30,30,0.9), rgba(30,30,30,0));
}

body.dark-mode .settings-scroll-left::before, 
body.dark-mode .settings-scroll-right::before {
  color: #aaa;
}
}
/* Dark mode for tabs */
body.dark-mode .settings-list {
  border-bottom-color: #444;
}
body.dark-mode .settings-item:hover {
  color: #ddd !important;
  border-bottom-color: #666 !important;
}
body.dark-mode .settings-item.active {
  color: #64b5f6 !important;
  border-bottom-color: #64b5f6 !important;
}