/* style.css - Clean, Modern, and Professional for index.html & admin.html */

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body & Layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

/* Headings */
h1, h2, h3 {
  color: #4a3e35;
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2em;
}

/* --- Shared Form Styles --- */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

form input:focus,
form textarea:focus {
  border-color: #5cb85c;
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */

/* --- Category Tab Buttons (index.html) --- */
/* ---#category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
} --- */

#category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px;
  min-width: fit-content;
  margin-bottom: 2.5rem;
}

#category-tabs-wrapper::-webkit-scrollbar {
  height: 6px;
}

#category-tabs-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

#category-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2.5rem;
}

.tab-button {
  background-color: #e0e0e0;
  color: #333;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button:hover {
  background-color: #ccc;
}

.tab-button.active {
  background-color: #007bff;
  color: white;
}

button {
  background-color: #5cb85c;
  color: white;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4cae4c;
}

 
button#cancel-edit-button {
  background-color: #f0ad4e;
  margin-left: 10px;
}

button#cancel-edit-button:hover {
  background-color: #ec971f;
}



/* --- Menu Items (index.html) --- */
.menu-items-container {
  margin-top: 30px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.item-details {
  flex-grow: 1;
}

.menu-item h3 {
  margin-bottom: 5px;
  color: #333;
}

.menu-item p {
  margin-bottom: 10px;
  color: #666;
  font-size: 0.95rem;
}

.menu-item strong {
  color: #4a3e35;
  font-weight: bold;
  font-size: 1.05rem;
}

/* --- Admin Section (admin.html) --- */
#admin-login-form,
#admin-section {
  margin-top: 30px;
  padding: 30px;
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Admin Menu List */
.admin-menu-list {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.menu-item-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  gap: 10px;
}

.item-info {
  flex-grow: 1;
  color: #444;
}

.item-info span {
  font-weight: 600;
  color: #333;
}

.item-actions button {
  padding: 6px 12px;
  font-size: 0.9rem;
  margin-left: 6px;
}

.item-actions .edit-button {
  background-color: #f0ad4e;
}
.item-actions .edit-button:hover {
  background-color: #ec971f;
}

.item-actions .delete-button {
  background-color: #d9534f;
}
.item-actions .delete-button:hover {
  background-color: #c9302c;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .menu-item,
  .menu-item-admin {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-item img {
    width: 100%;
    max-width: 160px;
    height: auto;
  }

  .item-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .item-actions button {
    flex-grow: 1;
    margin-left: 0;
  }
  
  /* --- Toggle Switch --- */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin-left: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #28a745;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

#sign-out-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#sign-out-button {
  background-color: #dc3545;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#sign-out-button:hover {
  background-color: #a71d2a;
} 


  
}

