/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  font-size: 24px;
  color: #222;
}

.header .subtitle {
  color: #555;
  font-size: 14px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-close {
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: #0078d7;
  color: #fff;
}

.btn-primary:hover {
  background: #005fa3;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-close {
  background: transparent;
  font-size: 18px;
  color: #333;
}

/* Categories grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: #333;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #0078d7;
}

.category-card p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

.category-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal .modal-content {
  background: #fff;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  padding: 20px;
  color: #333;
}

.modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal .modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #222;
}

.modal .form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.modal .form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}


#orders {
  margin: 20px 0;
}

#orders h2 {
  margin-bottom: 15px;
  color: #333;
}

#ordersTable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

#ordersTable th, #ordersTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#ordersTable th {
  background: #f2f2f2;
  font-weight: bold;
}

.thumb {
  width: 80px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.delete-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.delete-btn:hover {
  background: #c0392b;
}
