/* =========================
   ADMIN PANEL STYLES
========================= */

body {
  background: #f6f7fb;
}

/* Containers */
.admin-container {
  margin-top: 20px;
}

/* Cards */
.form-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.form-card h2 {
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

/* Navigation Buttons */
.admin-nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.admin-nav-buttons button {
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 500;
}

/* Buttons */
.btn-primary {
  background: #ff7a18;
  color: white;
  border: none;
  transition: 0.2s;
}

.btn-primary:hover {
  background: #e96b10;
}

.btn-secondary {
  background: #ececec;
  color: #333;
}

.btn-secondary:hover {
  background: #dcdcdc;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

.form-group input,
.form-group select {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #ff7a18;
  outline: none;
}

/* Form Actions */
.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #fafafa;
}

thead th {
  text-align: left;
  padding: 12px;
  font-size: 14px;
  border-bottom: 2px solid #eee;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

tbody tr:hover {
  background: #f9f9f9;
}

/* Product Images */
tbody img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

/* Action Buttons */
.action-btn {
  padding: 6px 10px;
  margin-right: 6px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.edit-btn {
  background: #4caf50;
  color: white;
}

.delete-btn {
  background: #e53935;
  color: white;
}

.edit-btn:hover {
  background: #3c9a41;
}

.delete-btn:hover {
  background: #c62828;
}

/* Small Text */
small {
  font-size: 12px;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .form-card {
    padding: 18px;
  }

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  tbody td {
    border: none;
    padding: 8px 0;
  }
}
