.category-section {
  padding: 30px 0;
  min-height: calc(100vh - 70px);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #199A8E;
  margin-bottom: 20px;
  text-align: center;
}

.category-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.category-form input {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 250px;
  outline: none;
}

.category-form button {
  background-color: #199A8E;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-form button:hover {
  background-color: #157a6e;
}

.cancel-btn {
  background-color: #f44336 !important;
  display: none;
}

.cancel-btn:hover {
  background-color: #d32f2f !important;
}

.table-wrapper {
  overflow-x: auto;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.category-table th,
.category-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.category-table th {
  background-color: #199A8E;
  color: white;
}

.edit-btn, .delete-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  margin: 0 5px;
  transition: color 0.2s ease;
}

.edit-btn {
  color: #199A8E;
}

.edit-btn:hover {
  color: #0c5c52;
}

.delete-btn {
  color: #f44336;
}

.delete-btn:hover {
  color: #d32f2f;
}

.loading, .empty {
  text-align: center;
  font-style: italic;
  color: #777;
}


/* ===== Delete Modal Style ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 340px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

.modal h3 {
  color: #199A8E;
  margin-bottom: 10px;
  font-size: 20px;
}

.modal p {
  color: #333;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 15px;
}

.yes-btn {
  background-color: #f44336;
}

.no-btn {
  background-color: #199A8E;
}

.yes-btn:hover {
  background-color: #d32f2f;
}

.no-btn:hover {
  background-color: #157a6e;
}

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