/* Binovara Payroll — Modern education theme */
:root {
  --edu-navy: #0f172a;
  --edu-navy-soft: #1e293b;
  --edu-primary: #0d9488;
  --edu-primary-dark: #0f766e;
  --edu-primary-soft: #ccfbf1;
  --edu-accent: #d97706;
  --edu-bg: #f4f7fb;
  --edu-surface: #ffffff;
  --edu-text: #172033;
  --edu-muted: #64748b;
  --edu-border: #e2e8f0;
  --edu-danger: #dc2626;
  --edu-radius: 14px;
  --edu-shadow: 0 2px 6px rgba(15, 23, 42, .04), 0 12px 28px rgba(15, 23, 42, .07);
}

html, body { min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  color: var(--edu-text);
  background: var(--edu-bg);
  letter-spacing: -.01em;
}

h1, h2, h3, h4, h5, h6, .navbar .navbar-brand { color: var(--edu-navy); font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; }
a { color: var(--edu-primary); }
a:hover { color: var(--edu-primary-dark); }

.content, .main-panel { background: var(--edu-bg) !important; }
.main-panel > .content { padding: 0 32px 36px; margin-top: 86px; min-height: calc(100vh - 100px); }

/* Sidebar */
.sidebar[data-color="education"]:after, .sidebar:after {
  background: linear-gradient(165deg, #0b1830 0%, #112c4b 56%, #0d605f 150%) !important;
}
.sidebar { box-shadow: 5px 0 20px rgba(15, 23, 42, .13); }
.sidebar .logo { padding: 18px 14px 14px; overflow: hidden; }
.sidebar .logo:after { display: none; }
.sidebar .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45,212,191,.16), rgba(255,255,255,.05));
}
.sidebar .logo-image-small { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; overflow: hidden; border-radius: 13px; background: transparent; display: grid; place-items: center; box-shadow: 0 7px 16px rgba(0,0,0,.18); }
.sidebar .logo-image-small img { display: block; width: 48px; height: 48px; max-width: 48px; max-height: 48px; object-fit: contain; }
.sidebar .brand-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; justify-content: center; }
.sidebar .logo .logo-normal { display: block; padding: 0 !important; color: #fff !important; font-size: 1.06rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; text-transform: none; white-space: nowrap; }
.sidebar .logo .brand-subtitle { display: block; margin-top: 4px; padding: 0; color: #99f6e4; font-size: .61rem; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.sidebar .sidebar-wrapper { padding: 12px 8px 24px; }
.sidebar .nav { margin-top: 0; }
.sidebar .nav li > a, .sidebar[data-color="education"] .nav li > a {
  color: rgba(255,255,255,.74) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.35;
  margin: 4px 6px;
  padding: 10px 12px;
  border-radius: 9px;
  text-transform: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
/* A dedicated icon slot prevents wide image assets from overlapping their label. */
.sidebar .nav .menu-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sidebar .nav .menu-icon > img,
.sidebar .nav .menu-icon > i,
.sidebar .nav .menu-icon > svg,
.sidebar .nav .menu-icon > .fa,
.sidebar .nav .menu-icon > .nc-icon {
  display: block;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
  margin: 0 !important;
  float: none !important;
  object-fit: contain;
  line-height: 20px !important;
  text-align: center;
}
.sidebar .nav .menu-icon > i, .sidebar .nav .menu-icon > .fa, .sidebar .nav .menu-icon > .nc-icon { font-size: 18px !important; }
.sidebar .nav .menu-label { flex: 1 1 auto; min-width: 0; }
.sidebar .nav .menu-chevron { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 16px; }
.sidebar .nav .menu-chevron .fa-chevron-down { margin: 0 !important; }
.sidebar .nav li.parent { border-bottom: 0 !important; }
.sidebar .nav li.child > a { margin-left: 20px; padding: 8px 12px; min-height: 38px; font-size: .71rem; }
.sidebar .nav li:hover:not(.active) > a, .sidebar .nav li:focus:not(.active) > a { background: rgba(255,255,255,.08); color: #fff !important; }
.sidebar .nav li.active > a, .sidebar[data-active-color="primary"] .nav li.active > a, .sidebar[data-active-color="primary"] .nav li.active > a i {
  color: #fff !important;
  background: rgba(45, 212, 191, .18);
  box-shadow: inset 3px 0 0 #5eead4;
  opacity: 1;
}
.sidebar .nav li > a .fa-chevron-down { color: rgba(255,255,255,.55) !important; margin-top: 1px !important; }
.sidebar .nav li.active > a .fa-chevron-down { color: #99f6e4 !important; }
.sidebar .nav li a img { filter: brightness(0) invert(1); opacity: .75; }
.sidebar .nav li.active > a img { filter: brightness(0) invert(1) !important; opacity: 1; }

/* Top bar */
.navbar.navbar-transparent {
  min-height: 68px;
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid var(--edu-border);
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
  backdrop-filter: blur(12px);
}
.navbar.navbar-transparent a:not(.dropdown-item):not(.btn), .navbar .navbar-brand { color: var(--edu-navy) !important; }
.navbar .navbar-brand { font-size: 1.08rem; letter-spacing: -.025em; padding-bottom: 2px; }
.navbar-toggle .navbar-toggler-bar { background: var(--edu-primary) !important; }
.navbar .navbar-nav .nav-link { border-radius: 9px; color: var(--edu-muted) !important; }
.navbar .navbar-nav .nav-link:hover { color: var(--edu-primary-dark) !important; background: #f0fdfa; }
.notification-count-container { background: var(--edu-danger) !important; box-shadow: 0 2px 7px rgba(220,38,38,.3); }

/* Breadcrumb */
.breadcrumb-link { color: var(--edu-muted); font-size: .75rem; text-decoration: none !important; }
.breadcrumb-link-clickable:hover { color: var(--edu-primary-dark); }

/* Surfaces */
.card {
  border: 1px solid var(--edu-border);
  border-radius: var(--edu-radius);
  box-shadow: var(--edu-shadow);
  color: var(--edu-text);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 4px 10px rgba(15,23,42,.05), 0 16px 32px rgba(15,23,42,.08); }
.card .card-body { padding: 24px; }
.card .card-header { padding: 22px 24px 0; }
.card .card-title { color: var(--edu-navy); font-weight: 750; }

/* Buttons */
.btn { border-radius: 9px; font-size: .76rem; font-weight: 700; letter-spacing: .025em; padding: 10px 17px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-primary:focus { background: var(--edu-primary); border-color: var(--edu-primary); color: #fff; box-shadow: 0 5px 12px rgba(13,148,136,.2); }
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle { background: var(--edu-primary-dark) !important; border-color: var(--edu-primary-dark) !important; box-shadow: 0 7px 16px rgba(13,148,136,.25) !important; }
.btn-secondary { background: #eaf0f5; border-color: #eaf0f5; color: var(--edu-navy); }
.btn-info { background: #0284c7; border-color: #0284c7; }
.btn-success { background: #059669; border-color: #059669; }
.btn-warning { background: var(--edu-accent); border-color: var(--edu-accent); color: #fff; }
.btn-danger { background: var(--edu-danger); border-color: var(--edu-danger); }
.btn-round { border-radius: 9px; }

/* Forms */
label { color: #334155; font-size: .78rem; font-weight: 700; margin-bottom: 7px; }
.form-group { margin-bottom: 20px; }
.form-control, .bootstrap-select .dropdown-toggle {
  min-height: 42px;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  color: var(--edu-text);
  font-size: .84rem;
  padding: .56rem .8rem;
  background: #fff;
  box-shadow: none;
}
.form-control:focus { border-color: var(--edu-primary); box-shadow: 0 0 0 3px rgba(13,148,136,.13); color: var(--edu-text); }
.form-control::placeholder { color: #94a3b8; }
.selectCustom + .dropdown-toggle, .bootstrap-select .dropdown-toggle { background: #fff !important; border-color: #d7e0ea !important; }
.text-danger { color: var(--edu-danger) !important; font-size: .73rem; }

/* Tables and DataTables */
.table { color: #334155; margin-bottom: 0; }
.table > thead > tr > th {
  background: #f8fafc;
  color: #475569;
  border-top: 0;
  border-bottom: 1px solid var(--edu-border);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .065em;
  padding: 13px 12px;
  text-transform: uppercase;
}
.table > tbody > tr > td, .table > tbody > tr > th { border-color: #edf2f7; font-size: .8rem; padding: 14px 12px; }
.table-striped tbody tr:nth-of-type(odd) { background-color: #fbfdff; }
.table-hover tbody tr:hover, .table tbody tr:hover { background: #f0fdfa !important; }
.table .btn { padding: 7px 11px; font-size: .67rem; }
.dataTables_wrapper { padding-top: 4px; }
.dataTables_filter input, .dataTables_length select { border: 1px solid #d7e0ea !important; border-radius: 8px !important; padding: 6px 9px !important; outline: none; }
.dataTables_filter input:focus { border-color: var(--edu-primary) !important; box-shadow: 0 0 0 3px rgba(13,148,136,.13); }
.page-item.active .page-link { background: var(--edu-primary); border-color: var(--edu-primary); }
.page-link { color: var(--edu-primary-dark); border-color: var(--edu-border); }

/* Dropdowns, modals and profile panel */
.dropdown-menu, .modal-content { border: 1px solid var(--edu-border); border-radius: 12px; box-shadow: 0 16px 36px rgba(15,23,42,.14); }
.dropdown-item { color: #334155; font-size: .82rem; padding: 9px 14px; }
.dropdown-item:hover, .dropdown-item:focus { color: var(--edu-primary-dark); background: #f0fdfa; }
.modal-header { border-bottom-color: var(--edu-border); }
.modal-footer { border-top-color: var(--edu-border); }
#profile-window { border-radius: 12px; }
#profile-window .header-title { border-bottom-color: var(--edu-border) !important; }

/* Accessibility and responsive behavior */
a:focus, button:focus, .form-control:focus { outline: none; }
a:focus-visible, button:focus-visible, .form-control:focus-visible { outline: 3px solid rgba(13,148,136,.35); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
@media (max-width: 991px) {
  .main-panel > .content { padding: 0 18px 28px; margin-top: 78px; }
  .navbar.navbar-transparent { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Login page */
.login-page { min-height: 100vh; background: #eef4f6; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); }
.login-hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 88px); color: #fff; background: linear-gradient(135deg, #0b1830 0%, #11365b 58%, #0f766e 150%); display: flex; flex-direction: column; justify-content: space-between; }
.login-hero::before, .login-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.login-hero::before { width: 520px; height: 520px; right: -200px; top: -180px; background: rgba(94,234,212,.12); }
.login-hero::after { width: 360px; height: 360px; left: -160px; bottom: -170px; background: rgba(255,255,255,.06); }
.login-brand, .login-hero-copy { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 13px; font-weight: 800; letter-spacing: -.02em; }
.login-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; padding: 5px; background: #fff; }
.login-brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.66); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.login-hero-copy h1 { color: #fff; max-width: 520px; font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.15; letter-spacing: -.045em; }
.login-hero-copy p { max-width: 470px; margin: 18px 0 0; color: rgba(255,255,255,.74); font-size: 1rem; line-height: 1.75; }
.login-panel { display: grid; place-items: center; padding: 32px; background: #fff; }
.login-card { width: min(100%, 430px); }
.login-card .eyebrow { margin: 0 0 8px; color: var(--edu-primary-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-card h2 { margin-bottom: 8px; font-size: 1.8rem; letter-spacing: -.04em; }
.login-card .login-description { margin-bottom: 30px; color: var(--edu-muted); font-size: .9rem; }
.login-card .form-control { min-height: 46px; }
.login-card .btn { min-height: 46px; width: 100%; }
.login-help { display: inline-block; margin: -3px 0 24px; color: var(--edu-primary-dark); font-size: .8rem; font-weight: 700; text-decoration: none !important; }
.login-help:hover { color: var(--edu-primary); }
.recaptcha-container { transform-origin: left top; }
@media (max-width: 850px) { .login-shell { grid-template-columns: 1fr; } .login-hero { min-height: 250px; padding: 30px; } .login-hero-copy { display: none; } .login-panel { min-height: calc(100vh - 250px); } }
@media (max-width: 380px) { .login-panel { padding: 22px; } .recaptcha-container { transform: scale(.88); width: 113%; } }
