* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #f4f7f9;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.auth-form {
  max-width: 450px;
  margin: 40px auto;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 5px;
  font-size: 24px;
}

h2 {
  color: #3498db;
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2c3e50;
}

input[type="text"],
input[type="password"],
input[type="tel"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  border-color: #3498db;
  outline: none;
}

small {
  display: block;
  margin-top: 4px;
  color: #7f8c8d;
  font-size: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  margin-right: 8px;
}

.checkbox label {
  margin-bottom: 0;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.error-message {
  color: #e74c3c;
  background-color: #fadbd8;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}

.success-message {
  color: #27ae60;
  background-color: #d4efdf;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.auth-link a {
  color: #3498db;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Dashboard styles */
.header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header h1 {
  color: white;
  margin: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logout-btn {
  background-color: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.logout-btn:hover {
  background-color: #c0392b;
}

.dashboard {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-top: 30px;
}

.dashboard h2 {
  text-align: left;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.dashboard-content {
  padding: 15px 0;
}

/* Dashboard menu navigation */
.dashboard-menu {
  margin: 25px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-menu h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.menu-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.menu-card {
  flex: 1;
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.menu-icon {
  font-size: 28px;
  margin-bottom: 15px;
}

.menu-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.menu-description {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.4;
}

/* Additional styles for the menu-related pages */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.create-btn {
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
}

.back-link {
  margin: 15px 0;
}

.back-link a {
  color: #3498db;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Menu form styles */
.menu-form {
  max-width: 800px;
}

.extras-container {
  margin-top: 15px;
}

.extra-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.extra-inputs {
  display: flex;
  flex: 1;
  gap: 10px;
}

.extra-inputs input {
  padding: 8px;
}

.btn-remove-extra {
  margin-left: 10px;
  padding: 6px 10px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-remove-extra:hover {
  background-color: #c0392b;
}

/* 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: white;
  margin: 10% auto;
  padding: 25px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.message {
  padding: 10px;
  margin: 15px 0;
  border-radius: 4px;
  display: none;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Menu table styles */
.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.menu-table th, 
.menu-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9e9e9;
}

.menu-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.menu-table tr:hover {
  background-color: #f8f9fa;
}

.actions {
  display: flex;
  gap: 8px;
}

.btn-edit, 
.btn-delete {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-edit {
  background-color: #3498db;
  color: white;
}

.btn-edit:hover {
  background-color: #2980b9;
}

.btn-delete {
  background-color: #e74c3c;
  color: white;
}

.btn-delete:hover {
  background-color: #c0392b;
}

.no-items {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  font-style: italic;
}

/* Order form styles */
.order-form {
  max-width: 900px;
}

.form-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-item-details {
  display: flex;
  flex-direction: column;
}

.menu-item-name {
  font-weight: bold;
  color: #2c3e50;
}

.menu-item-price {
  color: #7f8c8d;
  font-size: 14px;
}

.menu-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-quantity {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
}

.menu-selection {
  display: flex;
  margin: 20px 0;
  gap: 10px;
}

.menu-selection select {
  flex: 1;
}

.order-summary {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 30px;
}

.order-summary h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.total-amount {
  margin-top: 15px;
  text-align: right;
  font-size: 18px;
}

/* Order list styles */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.upcoming {
  background-color: #3498db;
  color: white;
}

.status-badge.finished {
  background-color: #2ecc71;
  color: white;
}

.status-badge.cancelled {
  background-color: #e74c3c;
  color: white;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th, 
.order-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9e9e9;
}

.order-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.order-row {
  transition: background-color 0.2s;
}

.order-row:hover {
  background-color: #f8f9fa;
}

.order-row.status-cancelled {
  background-color: #fdedec;
}

.btn-view, 
.btn-status {
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  margin-right: 5px;
  cursor: pointer;
  font-size: 14px;
}

.btn-view {
  background-color: #3498db;
  color: white;
  border: none;
}

.btn-status {
  background-color: #f39c12;
  color: white;
  border: none;
}

.small-text {
  font-size: 12px;
  color: #7f8c8d;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
}

/* Order detail styles */
.order-details-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 30px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.order-header h3 {
  margin: 0;
  color: #2c3e50;
}

.order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
}

.status-upcoming {
  background-color: #3498db;
  color: white;
}

.status-finished {
  background-color: #2ecc71;
  color: white;
}

.status-cancelled {
  background-color: #e74c3c;
  color: white;
}

.order-info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 25px;
}

.order-info-column {
  flex: 1;
  min-width: 250px;
}

.order-info-column h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 16px;
}

.order-items-section {
  margin-bottom: 25px;
}

.order-items-section h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 16px;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.order-items-table th,
.order-items-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9e9e9;
}

.order-items-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.total-row {
  background-color: #f8f9fa;
  font-weight: bold;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.order-dates {
  color: #7f8c8d;
  font-size: 14px;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.status-options {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

.status-option {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.error-message,
.success-message {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: none;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.btn-small {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  cursor: pointer;
}

.btn-small:hover {
  background-color: #e9ecef;
}

/* Add these CSS rules to style the extras section */
.menu-item-extras {
  margin: 10px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.menu-item-extras h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
  color: #495057;
}

.extras-list {
  font-size: 12px;
  color: #6c757d;
}

.extra-option {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  background-color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ced4da;
}

.extra-option label {
  cursor: pointer;
}

.menu-item {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: white;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

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

.extras-note {
  font-size: 14px;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 10px;
}

.base-price {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
}

/* Add styles for the menu item total display */
.menu-item-total {
  justify-content: space-between;
  font-weight: bold;
}

.menu-item-total-label {
  font-size: 14px;
  color: #495057;
}

.menu-item-total-amount {
  font-size: 16px;
  color: #212529;
} 