/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #faf9f6;
}

/* Color Palette */
:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #ffb74d;
  --success-color: #4caf50;
  --danger-color: #f44336;
  --warning-color: #ff9800;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --background-light: #ffffff;
  --background-gray: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  text-align: center;
  padding: 60px 0 40px;
}

.logo {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 300;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-section {
  text-align: center;
  margin-bottom: 50px;
}

.welcome-section h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.welcome-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
}

/* Login Options */
.login-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 800px;
}

.login-card {
  background: var(--background-light);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.login-card h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.login-card p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form input {
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Button Styles */
.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background: #e07d1a;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  width: 100%;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #43a047;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: #d32f2f;
}

/* Dashboard Styles */
.dashboard {
  min-height: 100vh;
  background: var(--background-gray);
}

/* Navigation */
.navbar {
  background: var(--background-light);
  padding: 0 20px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-brand h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Dashboard Content */
.dashboard-content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Menu Categories */
.menu-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  background: var(--background-light);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.menu-item {
  background: var(--background-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.menu-item-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    45deg,
    var(--accent-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.menu-item-content {
  padding: 20px;
}

.menu-item h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.menu-item p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.quantity-btn:hover {
  background: #e55a2b;
}

.quantity-display {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

/* Cart Styles */
.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.cart-item {
  background: var(--background-light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.cart-item-info h4 {
  color: var(--text-dark);
  margin-bottom: 5px;
}

.cart-item-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.cart-summary {
  background: var(--background-light);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
}

.pickup-time {
  margin-bottom: 30px;
}

.pickup-time label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.pickup-time input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
}

.pickup-time small {
  color: var(--text-light);
  font-size: 0.8rem;
}

.total-section {
  border-top: 2px solid var(--border-color);
  padding-top: 20px;
  margin-bottom: 30px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.total-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
}

/* Orders Styles */
.order-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 30px;
  border: none;
  background: var(--background-light);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-color);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.order-card {
  background: var(--background-light);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-id {
  font-weight: 700;
  color: var(--text-dark);
}

.order-status {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-ready {
  background: #cce5ff;
  color: #004085;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.pickup-time-info {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Menu Management */
.menu-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.management-item {
  background: var(--background-light);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.management-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.item-actions {
  display: flex;
  gap: 10px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.availability-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 25px;
  background: #ccc;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: var(--success-color);
}

.toggle-switch::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.toggle-switch.active::before {
  transform: translateX(25px);
}

/* Analytics */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.analytics-card {
  background: var(--background-light);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.analytics-card h3 {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 500;
}

.metric {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: var(--background-light);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-hover);
}

.modal-header {
  padding: 30px 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
}

.close {
  color: var(--text-light);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--text-dark);
}

.modal-form {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.modal-form textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Profile Styles */
.profile-card {
  background: var(--background-light);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}

.profile-info h3 {
  color: var(--text-dark);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.profile-info p {
  margin-bottom: 10px;
  color: var(--text-light);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .nav-menu {
    justify-content: center;
    gap: 20px;
  }

  .login-options {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .login-card {
    padding: 30px 20px;
  }

  .cart-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .welcome-section h2 {
    font-size: 2rem;
  }

  .logo {
    font-size: 2.5rem;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .order-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .dashboard-content {
    padding: 20px 15px;
  }

  .login-card {
    padding: 25px 15px;
  }

  .cart-summary {
    padding: 20px;
  }

  .order-card {
    padding: 20px;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .modal-form {
    padding: 20px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
