/* Users Management Styles */

.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.users-header h1 {
  color: #2575fc;
  font-weight: 600;
  margin: 0;
}

.users-header .user-info {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Filter Section */
.filter-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.filter-section .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Download Buttons */
.download-section {
  text-align: center;
  margin: 2rem 0;
}

.btn-download {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-download i {
  margin-right: 0.5rem;
}

/* Table Container */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.table thead th {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
  color: white;
  text-align: center;
  font-weight: 600;
  border: none;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 1rem;
  border-color: #e9ecef;
}

.table tbody tr:hover {
  background-color: #f8f9ff;
  transition: background-color 0.2s ease;
}

/* Status Badges */
.badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.badge-secondary {
  background: #6c757d;
  color: white;
}

/* Action Buttons */
.action-buttons {
  white-space: nowrap;
}

.action-buttons .btn {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Form Section */
.form-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.form-section h2,
.form-section h3 {
  color: #2575fc;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.form-section h3 {
  font-size: 1.25rem;
}

.form-section .form-label {
  font-weight: 600;
  color: #495057;
}

.form-section .form-control,
.form-section .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-section .form-control:focus,
.form-section .form-select:focus {
  border-color: #2575fc;
  box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.15);
}

.form-section .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.form-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-section hr {
  margin: 2.5rem 0;
  border-top: 2px solid #e9ecef;
}

.form-section input[type="file"] {
  cursor: pointer;
  padding: 0.5rem;
}

.form-section input[type="file"]:hover {
  background-color: #f8f9fa;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 2rem;
}

.modal-body .form-label {
  font-weight: 600;
  color: #495057;
}

.modal-body .form-control,
.modal-body .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: #2575fc;
  box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.15);
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1.25rem 1.5rem;
}

.modal-footer .btn {
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
}

/* Select2 in Modal Override */
.select2-container--bootstrap-5 .select2-dropdown {
  z-index: 9999;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .users-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-section,
  .form-section,
  .table-container {
    padding: 1.5rem;
  }

  .btn-download {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .table thead th {
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem;
  }

  .table tbody td {
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
  }

  .action-buttons .btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .users-header h1 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .form-section h2,
  .form-section h3 {
    font-size: 1.25rem;
  }
}