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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    border-radius: 0;
  }

  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 1.5em;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .section {
    padding: 20px 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-form button[type="submit"] {
    grid-column: span 1;
    height: 52px;
    font-size: 1.2em;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .menu-table-item {
    grid-template-columns: 1fr auto;
    padding: 10px;
  }

  .menu-table-item span {
    padding: 0 5px;
    font-size: 0.85em;
  }

  .btn-edit,
  .btn-delete {
    margin-top: 5px;
    width: 100%;
  }

  .admin-nav {
    flex-direction: column;
    gap: 5px;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .header h1 {
    font-size: 1.3em;
  }

  .header p {
    font-size: 0.9em;
  }

  .section {
    padding: 15px 10px;
  }

  .section h2 {
    font-size: 1.3em;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-group input[type="text"],
  .form-group input[type="number"] {
    padding: 14px 12px;
    font-size: 16px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .admin-form button[type="submit"] {
    grid-column: span 1;
    height: 56px;
    font-size: 1.3em;
    padding: 12px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .menu-item {
    padding: 12px;
  }

  .menu-price {
    font-size: 1em;
  }

  .menu-quantity {
    gap: 5px;
  }

  .menu-quantity button {
    width: 25px;
    height: 25px;
    font-size: 1em;
  }

  .order-card {
    padding: 15px;
  }

  .order-header {
    font-size: 1.1em;
  }

  .order-actions {
    flex-direction: column;
    gap: 8px;
  }

  .order-actions select,
  .order-actions button {
    width: 100%;
  }
}

.header {
  background: linear-gradient(135deg, #ff69b4 0%, #ff8a80 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 15px;
}

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

.header-link {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.section {
  padding: 30px;
  border-bottom: 1px solid #eee;
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.menu-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.menu-item:hover {
  border-color: #ff69b4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}

.menu-item.selected {
  border-color: #ff69b4;
  background: #ffdde0;
}

.menu-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.menu-category {
  font-size: 0.85em;
  color: #6c757d;
  margin-bottom: 8px;
}

.menu-price {
  color: #ff69b4;
  font-weight: 700;
  font-size: 1.1em;
}

.menu-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.menu-quantity button {
  background: #ff69b4;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s;
}

.menu-quantity button:hover {
  background: #ff4081;
}

/* Cart */
.cart-list {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 10px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: #333;
}

.cart-item-detail {
  font-size: 0.9em;
  color: #6c757d;
}

.cart-item-price {
  color: #ff69b4;
  font-weight: 700;
}

.cart-item-remove {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3em;
}

.total {
  color: #ff69b4;
  font-weight: 700;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #ff69b4;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 15px;
  align-items: center;
}

.admin-form button[type="submit"] {
  grid-column: span 3;
  margin-top: 10px;
  height: 48px;
}

/* Menu Table */
.menu-table {
  margin-top: 20px;
}

.menu-table-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.menu-table-item span {
  padding: 0 10px;
}

/* Orders List */
.orders-list {
  margin-top: 20px;
}

.order-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #ff69b4;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-info {
  margin-bottom: 15px;
}

.order-info p {
  margin-bottom: 5px;
  color: #333;
}

.order-id {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
}

.order-date {
  color: #6c757d;
  font-size: 0.9em;
}

.order-status {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-processing {
  background: #cce5ff;
  color: #004085;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.order-items {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

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

.order-total {
  text-align: right;
  font-size: 1.2em;
  font-weight: 700;
  color: #ff69b4;
  margin-bottom: 15px;
}

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

.order-actions select,
.order-actions button {
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  font-size: 1em;
}

/* Buttons */
.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff69b4 0%, #ff8a80 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  background: white;
  color: #ff69b4;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #ffdde0;
}

.btn-add {
  background: #ff69b4;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add:hover {
  background: #ff4081;
}

.btn-edit {
  background: #ff9a9e;
  color: white;
  padding: 5px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  margin-right: 5px;
}

.btn-edit:hover {
  background: #ff8a80;
}

.btn-logout {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-logout:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.success-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.modal-content h2 {
  color: #28a745;
  margin-bottom: 15px;
}

.modal-content p {
  color: #6c757d;
  margin-bottom: 10px;
}

/* Admin Tabs */
.admin-nav {
  display: flex;
  gap: 10px;
  padding: 20px 30px 0;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1em;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #ff69b4;
}

.tab-btn.active {
  color: #ff69b4;
  border-bottom-color: #ff69b4;
  font-weight: 700;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.success-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.modal-content h2 {
  color: #28a745;
  margin-bottom: 15px;
}

.modal-content p {
  color: #6c757d;
  margin-bottom: 10px;
}

/* Admin Tabs */
.admin-nav {
  display: field;
  gap: 10px;
  padding: 20px 30px 0;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1em;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #ff69b4;
}

.tab-btn.active {
  color: #ff69b4;
  border-bottom-color: #ff69b4;
  font-weight: 700;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

/* Radio Buttons */
.radio-label {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.radio-label:hover {
  border-color: #ff69b4;
}

/* Add Button - Responsive */
.admin-form button[type="submit"] {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff69b4 0%, #ff8a80 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.admin-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.admin-form button[type="submit"]:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

@media (max-width: 768px) {
  .admin-form button[type="submit"] {
    height: 52px;
    font-size: 1.2em;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .admin-form button[type="submit"] {
    height: 48px;
    font-size: 1.1em;
    padding: 12px 20px;
  }
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-label:has(input:checked) {
  border-color: #ff69b4;
  background: #ffdde0;
}

/* Gzip Compression */
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/json;

.footer {
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-size: 0.9em;
}
/* Add Menu Form Layout - Responsive */
.admin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-form .form-group label {
  margin-bottom: 5px;
}

.admin-form input[type="text"],
.admin-form input[type="number"] {
  width: 100%;
  padding: 14px 15px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .admin-form button[type="submit"] {
    height: 52px;
    font-size: 1.2em;
  }
}
