/* ============================================
   HRMS Navy Blue Theme - Custom Overrides
   Primary: #1e3a5f | Secondary: #2c5282
   ============================================ */

:root {
  --bs-primary: #1e3a5f !important;
  --bs-blue: #1e3a5f !important;
  --bs-primary-rgb: 30, 58, 95 !important;
  --navy-dark: #0f2440;
  --navy-main: #1e3a5f;
  --navy-light: #2c5282;
  --navy-accent: #3b82f6;
  --navy-hover: #253d5a;
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: #1e3a5f !important;
  border-color: #1e3a5f !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #152c4a !important;
  border-color: #152c4a !important;
  color: #fff !important;
}
.btn-primary:active,
.btn-primary.active {
  background-color: #0f2440 !important;
  border-color: #0f2440 !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: #1e3a5f !important;
  border-color: #1e3a5f !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #1e3a5f !important;
  color: #fff !important;
}

/* ---- Links ---- */
a {
  color: #1e3a5f;
}
a:hover {
  color: #152c4a;
}

/* ---- Text Utilities ---- */
.text-primary {
  color: #1e3a5f !important;
}
.bg-primary {
  background-color: #1e3a5f !important;
}

/* ---- Sidebar Navy Blue Theme ---- */
.sidebar {
  background-color: #0f2440 !important;
  color: #fff !important;
}
.sidebar .sidebar-brand {
  background-color: #0a1a30 !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar .sidebar-brand:hover {
  background-color: #0a1a30 !important;
}
.sidebar .sidebar-nav .sidebar-item .sidebar-link {
  color: rgba(255, 255, 255, 0.7) !important;
}
.sidebar .sidebar-nav .sidebar-item .sidebar-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}
.sidebar .sidebar-nav .sidebar-item.active .sidebar-link,
.sidebar .sidebar-nav .sidebar-item .sidebar-link.active {
  color: #fff !important;
  background-color: #1e3a5f !important;
}
.sidebar .sidebar-nav .sidebar-header {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* ---- Navbar ---- */
.navbar {
  background-color: #fff !important;
  border-bottom: 1px solid #e8ecf1;
}
.navbar-bg {
  background-color: #fff !important;
}

/* ---- Cards ---- */
.card {
  border: 1px solid #e8ecf1;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ---- Form Controls ---- */
.form-control:focus,
.form-control-lg:focus {
  border-color: #1e3a5f !important;
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.15) !important;
}
.form-check-input:checked {
  background-color: #1e3a5f !important;
  border-color: #1e3a5f !important;
}

/* ---- Dropdown ---- */
.dropdown-menu {
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.dropdown-item:hover {
  background-color: #f0f4f8;
  color: #1e3a5f;
}

/* ---- Tables ---- */
.table thead th {
  background-color: #f0f4f8;
  color: #1e3a5f;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

/* ---- Pagination / Active states ---- */
.page-link {
  color: #1e3a5f;
}
.page-item.active .page-link {
  background-color: #1e3a5f;
  border-color: #1e3a5f;
}

/* ---- Auth Login Page ---- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
}
.auth-brand {
  background: linear-gradient(135deg, #0f2440 0%, #1e3a5f 50%, #2c5282 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
}
.auth-brand .brand-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.auth-brand h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.auth-brand p {
  font-size: 1rem;
  opacity: 0.8;
  color: #fff;
  max-width: 300px;
  text-align: center;
  line-height: 1.6;
}
.auth-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: #f5f7fb;
}
.auth-content .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 420px;
  width: 100%;
}
.auth-content .card-body {
  padding: 2.5rem;
}
.auth-content h1 {
  color: #1e3a5f;
  font-weight: 700;
}
.auth-content .lead {
  color: #6c757d;
}
.auth-content .form-label {
  font-weight: 600;
  color: #343a40;
}
.auth-content .btn-primary {
  width: 100%;
  padding: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .auth-brand {
    display: none;
  }
  .auth-content {
    flex: 1;
  }
}

/* ---- Login page header improvements ---- */
.login-brand-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.login-brand-logo i {
  font-size: 2.5rem;
  color: #fff;
}

/* ---- Badge styles ---- */
.badge-primary {
  background-color: #1e3a5f;
  color: #fff;
}

/* ---- Scrollbar ---- */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* ---- Avatar border accent ---- */
.avatar.border-primary {
  border: 3px solid #1e3a5f;
}
