/* Manage Batch Page Styles */
.manage-batch-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Form Container */
.batch-form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.form-title {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

/* Form Styling */
.batch-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row > label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 120px;
}

/* Radio Group */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.radio-group label:hover {
  background-color: #f1f3f4;
}

.radio-group input[type="radio"] {
  accent-color: #3498db;
  transform: scale(1.2);
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.form-field select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-field select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-field select:hover {
  border-color: #bdc3c7;
}

/* Submit Button */
.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-submit {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #2980b9, #21618c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Batch List Container */
.batch-list-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 30px;
  border: 1px solid #e9ecef;
}

.table-title {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 3px solid #e74c3c;
  padding-bottom: 10px;
}

/* Table Styling */
.batch-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.batch-table thead {
  background: linear-gradient(135deg, #34495e, #2c3e50);
}

.batch-table thead th {
  color: white;
  font-weight: 600;
  padding: 16px 12px;
  text-align: left;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.batch-table thead th:last-child {
  border-right: none;
}

.batch-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.3s ease;
}

.batch-table tbody tr:hover {
  background-color: #f8f9fa;
}

.batch-table tbody tr:last-child {
  border-bottom: none;
}

.batch-table tbody td {
  padding: 14px 12px;
  color: #555;
  font-size: 0.95rem;
  vertical-align: middle;
}

/* Action Buttons */
.btn-edit,
.btn-delete {
  padding: 6px 12px;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: white;
}

.btn-edit {
  border-color: #f39c12;
  color: #f39c12;
}

.btn-edit:hover {
  background: #f39c12;
  color: white;
}

.btn-delete {
  border-color: #e74c3c;
  color: #e74c3c;
}

.btn-delete:hover {
  background: #e74c3c;
  color: white;
}

/* Add content to buttons */
.btn-edit::before {
  content: "Edit";
}

.btn-delete::before {
  content: "Delete";
}

/* Responsive Design */
@media (max-width: 768px) {
  .manage-batch-page {
    padding: 15px;
  }
  
  .batch-form-container,
  .batch-list-container {
    padding: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .radio-group {
    width: 100%;
    justify-content: space-around;
  }
  
  .batch-table {
    font-size: 0.85rem;
  }
  
  .batch-table thead th,
  .batch-table tbody td {
    padding: 10px 8px;
  }
  
  .btn-edit,
  .btn-delete {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .form-title,
  .table-title {
    font-size: 1.4rem;
  }
  
  .batch-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .btn-edit::before {
    content: "Edit";
  }
  
  .btn-delete::before {
    content: "Delete";
  }
}