/* Dark gold theme overrides for SB Admin 2.
   Keep as an override layer so upstream sb-admin-2*.css can remain untouched. */

:root {
  --gold-950: #1a1200;
  --gold-900: #241800;
  --gold-850: #2f2000;
  --gold-800: #3a2700;
  --gold-700: #4a3200;
  --gold-600: #5a3e00; /* primary */
  --gold-500: #705000;
  --gold-400: #8a6400;
  --gold-300: #a97d00;
  --gold-200: #c99a1a;

  /* For components that actually use CSS variables. */
  --primary: var(--gold-600);
}

/* Links */
a {
  color: var(--gold-500);
}
a:hover,
a:focus {
  color: var(--gold-300);
}

/* Text helpers */
.text-primary,
.text-primary i {
  color: var(--gold-600) !important;
}
a.text-primary:hover,
a.text-primary:focus {
  color: var(--gold-400) !important;
}

/* Buttons */
.btn-primary {
  color: #fff !important;
  background-color: var(--gold-600) !important;
  border-color: var(--gold-600) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gold-700) !important;
  border-color: var(--gold-700) !important;
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--gold-800) !important;
  border-color: var(--gold-800) !important;
}
.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(90, 62, 0, 0.35) !important;
}

.btn-outline-primary {
  color: var(--gold-600) !important;
  border-color: var(--gold-600) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff !important;
  background-color: var(--gold-600) !important;
  border-color: var(--gold-600) !important;
}
.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(90, 62, 0, 0.25) !important;
}

/* Background helpers */
.bg-primary {
  background-color: var(--gold-600) !important;
}
.bg-gradient-primary {
  background-color: var(--gold-900) !important;
  background-image: linear-gradient(180deg, var(--gold-800) 10%, var(--gold-950) 100%) !important;
  background-size: cover !important;
}

/* Borders / badges / misc */
.border-left-primary {
  border-left: 0.25rem solid var(--gold-600) !important;
}
.badge-primary {
  background-color: var(--gold-600) !important;
}
.page-item.active .page-link {
  background-color: var(--gold-600) !important;
  border-color: var(--gold-600) !important;
}
.page-link {
  color: var(--gold-500);
}
.page-link:hover {
  color: var(--gold-300);
}

/* Topbar: make header uniform (not white), with readable text */
.app-topbar {
  position: sticky !important;
  top: 0;
  z-index: 1100 !important; /* keep dropdown/profile above dashboard cards */
  background: rgba(26, 18, 0, 0.78) !important;
  border-bottom: 1px solid rgba(201, 154, 26, 0.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-topbar .dropdown-menu {
  z-index: 1110 !important;
}

/* Footer: match the topbar (dark translucent) */
.app-footer {
  background: rgba(26, 18, 0, 0.78) !important;
  border-top: 1px solid rgba(201, 154, 26, 0.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-footer,
.app-footer a,
.app-footer span {
  color: rgba(255, 255, 255, 0.9) !important;
}

.app-footer a:hover,
.app-footer a:focus {
  color: rgba(255, 255, 255, 1) !important;
  text-decoration: none !important;
}

/* Sidebar: keep version pinned to bottom */
#accordionSidebar {
  display: flex;
  flex-direction: column;
}
#accordionSidebar .sidebar-version {
  margin-top: auto;
}

#accordionSidebar .sidebar-version__text {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0.95;
}

.app-topbar .nav-link,
.app-topbar .navbar-brand {
  color: rgba(255, 255, 255, 0.9) !important;
}
.app-topbar .nav-link:hover,
.app-topbar .nav-link:focus {
  color: rgba(255, 255, 255, 1) !important;
}

.app-topbar #sidebarToggleTop {
  color: rgba(255, 255, 255, 0.85) !important;
}
.app-topbar #sidebarToggleTop:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.app-topbar .navbar-search input.form-control {
  background: rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.app-topbar .navbar-search input.form-control::placeholder {
  color: rgba(255, 255, 255, 0.62) !important;
}

/* Dropdown list header uses primary; make it gold */
.topbar .dropdown-list .dropdown-header {
  background-color: var(--gold-600) !important;
  border: 1px solid var(--gold-600) !important;
}

/* Dashboard background video (home.php) */
.dashboard-video-bg {
  background: #0b0b0b;
}

.dashboard-video-bg .dashboard-bg {
  position: fixed;
  inset: 0;
  /* Keep this behind everything, including Bootstrap modals/backdrops. */
  z-index: -1;
  overflow: hidden;
  background: #0b0b0b;
}

.dashboard-video-bg .dashboard-bg__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: brightness(0.65) contrast(1.05) saturate(0.9);
}

.dashboard-video-bg .dashboard-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0.55) 100%);
}

/* Let the background show through on the dashboard */
.dashboard-video-bg #content-wrapper,
.dashboard-video-bg #content {
  background-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-video-bg .dashboard-bg__video {
    display: none;
  }
}

/* HR Home Cards: light frosted cards (no gold on the cards themselves). */
.hr-home .hr-light-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 0.2rem 1.25rem rgba(17, 24, 39, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hr-home .hr-light-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.hr-home .hr-light-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.55rem 2.1rem rgba(17, 24, 39, 0.18) !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
}

.hr-home .hr-light-card .card-body,
.hr-home .hr-light-card .card-footer {
  position: relative;
  z-index: 1;
}

.hr-home .hr-light-card,
.hr-home .hr-light-card .text-lg,
.hr-home .hr-light-card .small,
.hr-home .hr-light-card .h5 {
  color: rgba(17, 24, 39, 0.92) !important;
}

.hr-home .hr-light-card .text-muted {
  color: rgba(17, 24, 39, 0.6) !important;
}

.hr-home .hr-light-card .text-uppercase {
  letter-spacing: 0.06em;
}

.hr-home .hr-light-card a {
  color: rgba(17, 24, 39, 0.92) !important;
}
.hr-home .hr-light-card a:hover,
.hr-home .hr-light-card a:focus {
  color: rgba(17, 24, 39, 1) !important;
  text-decoration: none !important;
}

.hr-home .hr-light-card .hr-icon {
  color: rgba(17, 24, 39, 0.35) !important;
}

/* Remove any accent strip (in case old classes remain somewhere). */
.hr-home .hr-light-card::after {
  content: none !important;
}

/* List groups inside cards */
.hr-home .hr-light-card .list-group-item {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: rgba(17, 24, 39, 0.9) !important;
}

.hr-home .hr-light-card .card-footer {
  background: rgba(255, 255, 255, 0.65) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* HR Home: headings and lists */
.hr-home .hr-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(17, 24, 39, 0.82) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.hr-home .hr-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.hr-home .hr-section-title__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.hr-home .hr-section-title__text {
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.82) !important;
}

.hr-home .hr-sep {
  display: inline-block;
  margin: 0 0.3rem;
  color: rgba(17, 24, 39, 0.35) !important;
}

.hr-home .hr-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.65);
  color: rgba(17, 24, 39, 0.78) !important;
}
.hr-home .hr-pill--good {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.25);
  color: rgba(6, 95, 70, 0.95) !important;
}
.hr-home .hr-pill--warn {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.3);
  color: rgba(146, 64, 14, 0.95) !important;
}
.hr-home .hr-pill--neutral {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(30, 41, 59, 0.9) !important;
}

.hr-home .hr-emp-item {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.55) !important;
  margin: 0.35rem 0;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.hr-home .hr-emp-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.35rem 1.2rem rgba(17, 24, 39, 0.12) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}
.hr-home .hr-emp-meta {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: rgba(17, 24, 39, 0.62) !important;
}
.hr-home .photo-thumbnail {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.hr-home .hr-mini-item {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: rgba(255, 255, 255, 0.55) !important;
  margin: 0.3rem 0;
}

/* HR Home: compact inline lists (birthday/anniversary/etc) */
.hr-home .hr-mini-line {
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(17, 24, 39, 0.72) !important;
  padding: 0.12rem 0;
}

.hr-home .hr-mini-line strong {
  color: rgba(17, 24, 39, 0.88) !important;
  font-weight: 800;
}

/* HR Home: compact, uniform mini-cards only (do not affect Employees Present Today card) */
.hr-home .hr-mini-card {
  height: 168px;
}

.hr-home .hr-card-body--mini {
  max-height: 140px;
  overflow-y: auto;
}

/* Desktop: increase mini-card height so total left column matches the big list card height */
@media (min-width: 1200px) {
  .hr-home .hr-mini-card {
    height: 200px;
  }

  .hr-home .hr-card-body--mini {
    max-height: 172px;
  }
}

/* SweetAlert2: uniform dark-gold look across the app */
:root {
  --swal-bg: rgba(26, 18, 0, 0.92);
  --swal-border: rgba(201, 154, 26, 0.22);
  --swal-text: rgba(255, 255, 255, 0.92);
  --swal-muted: rgba(255, 255, 255, 0.72);
  --swal-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.swal2-popup.app-swal {
  background: var(--swal-bg) !important;
  color: var(--swal-text) !important;
  border: 1px solid var(--swal-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--swal-shadow) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.swal2-title.app-swal__title {
  color: var(--swal-text) !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
}

.swal2-html-container.app-swal__content {
  color: var(--swal-muted) !important;
  font-weight: 700;
}

.swal2-actions .swal2-styled {
  border-radius: 14px !important;
  padding: 0.7rem 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.swal2-confirm.app-swal__confirm {
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400)) !important;
  color: #1a1200 !important;
  border: 0 !important;
}

.swal2-cancel.app-swal__cancel {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.swal2-timer-progress-bar {
  background: rgba(201, 154, 26, 0.8) !important;
}
