/* ============================
   Combined Departments Stylesheet
   ============================ */

/* --- Body --- */
body {
  background-color: #000 !important;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
}

/* --- Index / Table Container (1200px) --- */
.departments-container {
  max-width: 1200px;
  padding: 40px 50px;
  margin: 50px auto;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(255, 46, 111, 0.3);
  background-color: #000;
}

/* --- New/Edit Form Container (800px) --- */
.departments-form-container {
    max-width: 800px;
  padding: 40px 50px;
  margin: 50px auto;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(255, 46, 111, 0.3);
  background-color: #000;
}
/* Container for form buttons in Departments */
.departments-form-container .form-buttons {
  display: flex !important;
  justify-content: flex-start !important; /* Align buttons to left */
  flex-wrap: wrap !important; /* Wrap on smaller screens */
  gap: 16px !important; /* Space between buttons */
  margin-top: 20px !important; /* Space above buttons */
}

/* Make buttons responsive */
.departments-form-container .form-buttons .btn-primary,
.departments-form-container .form-buttons .btn-secondary,
.departments-form-container .form-buttons .btn-success {
  flex: 1 1 auto; /* Allow buttons to shrink/grow */
  min-width: 120px; /* Maintain readability */
}

/* --- Headings --- */
.departments-container h2,
.form-container h2,
.form-container h3 {
  color: #ff2e6f;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.departments-container h2 {
  font-size: 36px;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* --- Form Labels --- */
.form-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #080808;
  font-size: 14px;
}

/* --- Inputs & Textareas --- */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="date"],
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 10px 12px;
  background-color: #111;
  border: 1px solid #ff2e6f;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  margin-bottom: 20px;
  resize: vertical;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-container textarea {
  min-height: 80px;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
  border-color: #e82a64;
  outline: none;
  background-color: #111;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary,
.btn-success {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 16px;
}

/* Primary Button */
.btn-primary {
  background-color: #ff2e6f;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background-color: #e82a64;
  color: #000;
  transform: scale(1.03);
}

/* Secondary Button (Back) */
.btn-secondary {
  background-color: transparent;
  border: 2px solid #ff2e6f;
  color: #ff2e6f;
}

.btn-secondary:hover {
  background-color: #ff2e6f;
  color: #000;
  transform: scale(1.03);
}

/* Success Button (Optional) */
.btn-success {
  background: #ff2e6f;
  color: #fff;
  border: none;
  padding: 10px 20px;
}

.btn-success:hover {
  background: linear-gradient(135deg, #ff2e6f, #ff2e6f);
  box-shadow: 0 0 8px #ff2e6f;
  transform: scale(1.03);
}

/* --- Tables --- */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  background-color: #111;
  border-radius: 16px;
}

thead tr {
  background: #ff2e6f;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  text-transform: uppercase;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.4);
}

thead th {
  padding: 14px 20px;
  text-align: left;
}

tbody tr {
  background: #111;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  color: #f1f1f1;
}

tbody tr:hover {
  background: rgba(255, 105, 180, 0.12);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.3);
}

tbody td {
  padding: 16px 20px;
  font-size: 15px;
  vertical-align: middle;
}

/* --- Action buttons --- */
.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-edit, .btn-delete {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Courier New', monospace;
}

.btn-edit {
  background: linear-gradient(135deg,#ff2e6f, #ff2e6f);
}

.btn-edit:hover {
  background: linear-gradient(135deg, #e84393, #c41f5a);
  transform: scale(1.05);
}

.btn-delete {
  background-color: #cc224e;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #c62828, #880e4f);
  transform: scale(1.05);
}

/* --- Back Button --- */
.btn-back {
  background-color: transparent;
  color: #ccc;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  margin-top: 24px;
}

.btn-back:hover {
  background-color: #ff2e6f;
  color: #fff;
  border-color: #ff2e6f;
}

.btn-back i {
  font-size: 18px;
}
