/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #fffaf2;
  color: #333;
  padding: 70px 0 60px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ff7043;
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.navbar-brand {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.logout-btn {
  background-color: #fff;
  color: #ff7043;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #ffe5db;
}

/* Menu Bar (Mobile) */
.menu-bar {
  position: fixed;
  top: 50px;
  left: -100%;
  width: fit-content;
  max-height: calc(100vh - 60px);
  background-color: #ff914d;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  transition: left 0.3s ease-in-out;
  z-index: 999;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-bar.show {
  left: 0;
}

.menu-bar a {
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.menu-bar a:hover {
  background-color: #ffa866;
  color: #000;
}

/* Containers */
.container {
  max-width: 1000px;
  margin: 0 auto;
  /*padding: 15px;*/
}

.profile-container,
.auth-container,
.form,
.contact-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 24px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-container {
  max-width: 800px;
  background-color: #fffaf2;
}

.auth-container {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.section {
  background: #fff;
  padding: 20px;
  max-width: 600px;
  margin: 15px auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dashboard {
  padding: 10px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Headings & Text */
.main-heading,
.form-title,
.contact-heading {
  font-size: 2rem;
  text-align: center;
  color: #ff7043;
  margin-bottom: 15px;
}

.form-title {
  font-size: 1.8rem;
  margin: 5px 0 25px;
}

.tagline,
.form-info,
.form-note,
.contact-subtext,
.info-text {
  font-size: 1rem;
  color: #555;
  text-align: left;
  margin-bottom: 15px;
  line-height: 1.5;
}

.tagline {
  font-size: 1.2rem;
  font-weight: 500;
}

p {
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 12px;
}

.plan-status {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 15px;
}

.plan-status.active {
  color: #28a745;
  font-weight: bold;
}

.plan-status.expired {
  color: #dc3545;
  font-weight: bold;
}

.form-alert {
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

/* Buttons */
.submit-btn,
.phonepe-btn,
.explore-btn,
.cancel-btn,
#kitchenToggleBtn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;     /* Remove underline */
      text-align: center;
}

.submit-btn:hover,
.phonepe-btn:hover,
.explore-btn:hover,
.cancel-btn:hover,
#kitchenToggleBtn:hover {
  transform: scale(1.02);
}

.submit-btn {
  background-color: #4CAF50;
}

.submit-btn:hover {
  background-color: #e55a2d;
}

.phonepe-btn {
  background-color: #5c2d91;
}

.phonepe-btn:hover {
  background-color: #4a2371;
}

.explore-btn {
  background-color: #28a745;
  padding: 8px 16px;
  font-size: 14px;
  display: inline-block;
  text-decoration: none;
}

.explore-btn:hover {
  background-color: #1f7d36;
}

.cancel-btn {
  background-color: #dc3545;
  margin-left: 10px;
}

.cancel-btn:hover {
  background-color: #b02a37;
}

#kitchenToggleBtn {
  background-color: #4caf50;
}

#kitchenToggleBtn:hover {
  background-color: #388e3c;
}

#kitchenToggleBtn.off {
  background-color: #ccc;
  color: #333;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: #ff7043;
  box-shadow: 0 0 6px rgba(255, 112, 67, 0.3);
}

.form input:invalid:focus,
.form textarea:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.3);
}

.form input::placeholder,
.form textarea::placeholder {
  color: #999;
}

.form input[readonly],
.form input:disabled,
.form select:disabled {
  background-color: #f0f0f0;
  color: #888;
  cursor: not-allowed;
  border-color: #ddd;
}

.form select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23555" d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: #ff7043;
}

.form textarea {
  resize: vertical;
  min-height: 80px;
}

#tiffinDetailsForm {
  display: flex !important;
}

/* File Input */
.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
  background-color: #fdfdfd;
}

.file-input-wrapper:hover {
  border-color: #999;
}

.form input[type="file"] {
  display: none;
}

.form input[type="file"]+label.file-label {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form input[type="file"]:hover+label.file-label,
.form input[type="file"]:focus+label.file-label {
  border-color: #ff7043;
  box-shadow: 0 0 6px rgba(255, 112, 67, 0.3);
}

.form .file-name {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-style: italic;
}

/* Form Links */
.form .form-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  text-align: center;
  transition: color 0.3s;
}

.form .form-link:hover {
  color: #ff7043;
}

/* Profile Display */
.readonly-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.profile-group p {
  font-size: 16px;
  color: #555;
  margin: 0;
  padding: 12px;
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

.profile-info {
  background: #fffefc;
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.07);
  padding: 25px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.profile-info img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff7043;
  margin-bottom: 10px;
}

.provider-name {
  font-size: 24px;
  font-weight: bold;
  color: #d84315;
  margin: 10px 0 5px;
}

.location {
  display: block;
  font-size: 14px;
  color: #757575;
  margin-bottom: 5px;
}

.profile-info p {
  margin: 5px 0;
  font-size: 15px;
}

.rating {
  font-weight: bold;
  font-size: 16px;
  color: #ffb300;
  margin-top: 10px;
}

/* Rating Input */
.rating-box {
  margin-top: 15px;
  text-align: center;
}

.rating-input {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  max-width: 200px;
}

.rating-input input[type="number"] {
  width: 60px;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  background-color: #fffef5;
}

.rating-input button {
  background-color: #43a047;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.rating-input button:hover {
  background-color: #388e3c;
}

/* Subscription Plans */
.plans {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.plans div {
  flex: 1;
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.plans div:hover {
  background-color: #fff3e0;
  border-color: #ff7043;
  transform: scale(1.02);
}

.plans div.selected {
  background-color: #ffe0b2;
  border-color: #ff7043;
}

/* Toggle Switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}

.toggle-label {
  font-size: 25px;
  font-weight: 600;
  color: #333;
}

.toggle-wrapper input[type="checkbox"] {
  display: none;
}

.toggle-button {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-button::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-wrapper input[type="checkbox"]:checked+.toggle-button {
  background-color: #4caf50;
}

.toggle-wrapper input[type="checkbox"]:checked+.toggle-button::before {
  transform: translateX(30px);
}

#kitchenStatusText {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Search Section */
.section label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.section select,
.section input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 4px 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.search-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: #0056b3;
}

/* Cards */
.tiffin-card,
.order-card,
.food-card,
.timing-card,
.tiffin-price {
  background: #fff;
  border: 1px solid #eee;
  max-width: 500px;
  margin: 20px auto;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tiffin-price {
  font-size: 16px;
  font-weight: bold;
  color: #388e3c;
  background: #e8f5e9;
  padding: 6px 12px;
  border-radius: 8px;
  margin: 10px auto 0;
}

.timing-card {
  background: #fff3e0;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.tiffin-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.tiffin-info small {
  font-size: 12px;
  color: #888;
}

.tiffin-info h3 {
  margin: 8px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.tiffin-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.order-card {
  background: #fff3e0;
}

.order-card h3 {
  margin-bottom: 12px;
  color: #e65100;
  font-size: 18px;
}

.food-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.food-item {
  display: flex;
  align-items: center;
  font-size: 15px;
  background: #fff8e1;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 2px #ddd;
}

.food-item span {
  margin-right: 8px;
  font-size: 18px;
}

.timing-card .form-title {
  font-size: 20px;
  margin-bottom: 15px;
}

.timing-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 300px;
}

.timing-card th,
.timing-card td {
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
}

.timing-card th {
  background-color: #ffe0b2;
  font-weight: 600;
}

.timing-card td {
  background-color: #fffaf0;
}

/* Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 10px;
}

.dashboard-card {
  background-color: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 10px;
  border-bottom: 2px solid #fbc02d;
  display: inline-block;
  padding-bottom: 4px;
}

.dashboard-card p {
  font-size: 1rem;
  color: #555;
  margin: 6px 0;
}

/* Compact Rating Box */
.compact-rating-box {
  background: #fffbe6;
  padding: 10px 15px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  margin-top: 10px;
}

.compact-rating-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-right: 10px;
  font-size: 14px;
}

.compact-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

.compact-form select {
  padding: 5px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1;
  min-width: 100px;
}

.compact-form button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: #ff9800;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.compact-form button:hover {
  background-color: #e68900;
}

/* Footer */
.site-footer,
#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #ff7043;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 0.95rem;

}

.site-footer a,
#footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.3s;
}

.site-footer a:hover,
#footer a:hover {
  color: #ffe0b2;
}

.footer-social {
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.85rem;
}

#footerli {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.socialmedia {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.socialmedia:hover {
  transform: scale(1.2);
}

/* Authentication Toggle */
.auth-toggle {
  display: flex;
  background-color: #ff914d;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.toggle-btn {
  flex: 1;
  padding: 12px;
  background-color: #ff914d;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #ffa866;
}

.toggle-btn.active-btn {
  background-color: #fff;
  color: #ff914d;
  font-weight: bold;
}

/* Miscellaneous */
.utr-image {
  width: 100px;
  height: auto;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.table-responsive {
  overflow-x: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {

  .container,
  .profile-container,
  .form,
  .auth-container {
    margin: 20px auto;
    padding: 20px;
  }

  .section {
    margin: 15px auto;
    padding: 15px;
  }

  .main-heading,
  .form-title,
  .contact-heading {
    font-size: 1.8rem;
  }

  .form input,
  .form select,
  .form textarea,
  .form input[type="file"]+label.file-label {
    font-size: 15px;
    padding: 10px;
  }

  .toggle-wrapper {
    margin: 12px 0;
  }

  .toggle-button {
    width: 50px;
    height: 25px;
  }

  .toggle-button::before {
    width: 21px;
    height: 21px;
  }

  .toggle-wrapper input[type="checkbox"]:checked+.toggle-button::before {
    transform: translateX(25px);
  }

  .utr-image {
    width: 80px;
  }

  .cancel-btn {
    margin-left: 0;
    margin-top: 10px;
  }

  .plans {
    flex-direction: column;
  }
}

@media (min-width: 600px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {

  .container,
  .profile-container,
  .form,
  .auth-container,
  .contact-container {
    margin: 20px auto;
    padding: 16px;
  }

  .section {
    margin: 10px;
    padding: 12px;
  }

  .main-heading,
  .form-title,
  .contact-heading {
    font-size: 1.6rem;
  }

  .form input,
  .form select,
  .form textarea,
  .form input[type="file"]+label.file-label {
    font-size: 15px;
    padding: 8px;
    height: 60px;
  }

  .form .form-link,
  .profile-group label {
    font-size: 13px;
  }

  .profile-group p {
    font-size: 14px;
    padding: 8px;
  }

  .timing-card {
    padding: 15px;
  }

  .timing-card table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .timing-card th,
  .timing-card td {
    white-space: nowrap;
    font-size: 14px;
  }

  .tiffin-info h3 {
    font-size: 16px;
  }

  .tiffin-info p {
    font-size: 13px;
  }

  .toggle-btn {
    font-size: 14px;
    padding: 10px;
  }

  .toggle-button {
    width: 44px;
    height: 22px;
  }

  .toggle-button::before {
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
  }

  .toggle-wrapper input[type="checkbox"]:checked+.toggle-button::before {
    transform: translateX(22px);
  }

  .info-text {
    font-size: 1.5rem;
  }

  .site-footer,
  #footer {
    font-size: 0.85rem;
  }

  .site-footer a,
  #footer a {
    margin: 4px 6px;
  }

  .explore-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .profile-info {
    padding: 15px;
    font-size: 14px;
  }

  .profile-info .form-title {
    font-size: 20px;
  }

  .compact-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-form select,
  .compact-form button {
    width: 100%;
  }
}

#sharelink {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background-color: #ff7043; /* Warm food tone (deep orange) */
  color: white;
  font-size: 28px;
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

#sharelink:hover {
  background-color: #f4511e; /* Darker orange on hover */
  transform: scale(1.1);
}
