body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #a9a9a9b2;
  color: #000000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.header {
  background: #a600ff;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.app-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.main-nav {
  margin-top: 10px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.2s ease;
  display: block;
}

.nav-link:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.main-content {
  flex-grow: 1;
  padding: 20px 0;
}

.content-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  display: none;
}

.content-section:first-of-type {
  display: block;
}

.section-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  color: #333;
}

.form-subtitle {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #555;
}

.form-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

.form-group.checkbox-group {
  display: flex;
  align-items: center;
}

.form-group.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  width: auto;
}

.form-hint {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-1px);
}

.btn-warning {
  background: #ffc107;
  color: #333;
}

.btn-warning:hover {
  background: #e0a800;
  transform: translateY(-1px);
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
  transform: translateY(-1px);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th,
.product-table td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.product-table th {
  background: #f8f9fa;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-table tbody tr:hover {
  background: #f5f5f5;
}

.product-table img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-available {
  background: #d4edda;
  color: #155724;
}

.status-unavailable {
  background: #f8d7da;
  color: #721c24;
}

.footer {
  background: #343a40;
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 450px;
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.modal-message {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-close-btn {
  width: 100%;
  margin-top: 15px;
}

@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
  }
  .app-title {
    text-align: left;
    margin-bottom: 0;
  }
  .main-nav {
    margin-top: 0;
  }
  .nav-list {
    gap: 15px;
  }
}
