
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}


body {
  background: #f0f4f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}


.user-container, .admin-container {
  background: #fff;
  padding: 25px 30px;
  max-width: 480px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


h1 {
  color: #2c3e50;
  margin-bottom: 24px;
  font-weight: 900;
  font-size: 1.8rem;
  text-align: center;
}


input[type=text], input[type=number], input[type=password], select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 18px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type=text]:focus, input[type=number]:focus, input[type=password]:focus, select:focus {
  border-color: #3498db;
  outline: none;
}


label {
  font-weight: 700;
  color: #34495e;
  margin-bottom: 8px;
  display: block;
}


button {
  width: 100%;
  padding: 14px 0;
  background-color: #3498db;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

button:hover {
  background-color: #2772b6;
}

button:disabled {
  background-color: #999;
  cursor: not-allowed;
}


.order-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.order-item input[type=number] {
  flex-basis: 80px;
}

.order-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1.5px solid #e1e7f0;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 18px;
  background-color: #fafbfe;
}

.order-list-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  font-weight: 600;
  border-bottom: 1px solid #d6dce6;
}

.order-list-item:last-child {
  border-bottom: none;
}


.message {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  min-height: 28px;
}

.message.error {
  color: #e74c3c;
}

.message.success {
  color: #27ae60;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

thead {
  background-color: #3498db;
  color: white;
}

th, td {
  padding: 12px 15px;
  border: 1.2px solid #ccc;
  text-align: left;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f7f9fc;
}


.summary {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 10px;
  text-align: right;
}


.login-container {
  max-width: 360px;
}


@media (max-width: 500px) {
  .user-container, .admin-container {
    max-width: 100%;
    padding: 20px 20px;
  }

  .order-item {
    flex-direction: column;
    gap: 12px;
  }

  .order-item input[type=number] {
    flex-basis: 100%;
  }
}

#category-toggle {
  display: none; 
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  padding: 0;
  margin: 0 auto 15px auto;
  position: relative;
  z-index: 101;
  user-select: none;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #34495e;
  border-radius: 3px;
  margin: 4px 0;
  transition: all 0.3s ease;
}

#category-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#category-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
#category-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 920px) {
  #category-toggle {
    display: block;
  }
  nav.category-menu ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
  }
  nav.category-menu ul.expanded {
    max-height: 500px; 
    opacity: 1;
  }
}


