/* =============================
   MDT Sun7 FiveM – Custom CSS
   ============================= */

/* Background overlay using the user-provided background image.
   If the image doesn't load (blocked domain), the dark gradient is used as fallback. */
.bg-overlay {
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
    url("/uploads/civilians/sun7_1920x1080.png") center / cover no-repeat fixed;
  background-color: #0b1220;
}

.bg-overlay-dark {
  background:
    linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.82)),
    url("/uploads/civilians/sun7_1920x1080.png") center / cover no-repeat fixed;
  background-color: #0b1220;
  min-height: 100vh;
}

/* Navbar */
.navbar-mdt {
  background: rgba(5, 72, 255, 0.39);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Login card */
.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* MDT cards */
.card-mdt {
  background: rgba(43, 56, 235, 0.418);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: #e2e8f0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-mdt:hover,
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.cursor-pointer {
  cursor: pointer;
}

/* Tiny button variant */
.btn-xs {
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Dark nav tabs */
.nav-tabs-dark {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs-dark .nav-link {
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
}

.nav-tabs-dark .nav-link:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs-dark .nav-link.active {
  color: #fff;
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) transparent;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

/* Table */
.table-dark {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
}
.navbar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  transform: scale(1.18);
  transform-origin: center;
}

.penal-admin-category {
  overflow: hidden;
}

.penal-admin-category .card-body {
  padding: 1.1rem;
}

.penal-admin-category .table-responsive {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.penal-admin-category .penal-description {
  max-width: 560px;
  white-space: normal;
}

@media (max-width: 767px) {
  #adminTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  #adminTabs .nav-link {
    white-space: nowrap;
  }
}
