/* Global admin styles */
[data-bs-theme="light"] body {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] html,
[data-bs-theme="dark"] body {
    background-color: #1a1d20; /* Darker gray for the outside area */
}

.card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-bs-theme="light"] .card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

[data-bs-theme="dark"] .card {
    background-color: var(--bs-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bs-tertiary-bg);
}

.table thead th {
  background-color: #343a40 !important;
  color: white !important;
  font-weight: 600;
  border-color: #454d55 !important;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Ensure table text remains dark in admin view for visibility on colored rows */
#ticketsBody tr td {
    color: #000000 !important;
}

.modal .modal-header {
    background-color: #0d6efd;
    color: white;
}

/* Custom file upload component styles */
.custom-file-upload-container {
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  padding: .375rem .75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

.custom-file-upload {
  background: #0d6efd;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: .375rem;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 10px;
  white-space: nowrap;
}

.file-name-span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6c757d;
}
