:root{
  --navy:#91037b; --navy-2:#6d015c; --gold:#ffde00; --line:#ebd1e7;
  --bg:#fbf6fa; --text:#1c0218; --muted:#6e646d;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--text);font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px}
a{text-decoration:none}
.btn-primary{background:var(--navy);border-color:var(--navy)}
.btn-primary:hover{background:var(--navy-2);border-color:var(--navy-2)}
.btn-outline-primary{color:var(--navy);border-color:var(--navy)}
.btn-outline-primary:hover{background:var(--navy);border-color:var(--navy)}
.form-control:focus,.form-select:focus{border-color:var(--gold);box-shadow:0 0 0 .2rem rgba(255,222,0,.25)}

/* ---------- Executive Corporate Admin Login ---------- */
.admin-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b001d 0%, #3a003f 50%, #150017 100%);
  position: relative;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.admin-login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.admin-login-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.admin-login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45);
}

.admin-login-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.admin-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #91037b;
  color: #ffde00;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin: 0 auto;
}

.admin-login-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c0218;
  letter-spacing: -0.01em;
}

.admin-login-subtitle {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #91037b;
  text-transform: uppercase;
}

.form-label-prof {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: .4rem;
  display: block;
}

.prof-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.prof-input-ico {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: .9rem;
  pointer-events: none;
  z-index: 5;
  transition: color 0.2s ease;
}

.prof-input {
  padding-left: 44px !important;
  padding-right: 44px !important;
  height: 48px;
  font-size: .95rem;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 500;
  transition: all 0.2s ease;
}

.prof-input:focus {
  background: #ffffff;
  border-color: #91037b;
  box-shadow: 0 0 0 4px rgba(145, 3, 123, 0.12);
}

.prof-input:focus ~ .prof-input-ico,
.prof-input-wrap:focus-within .prof-input-ico {
  color: #91037b;
}

.prof-pwd-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: .9rem;
  cursor: pointer;
  z-index: 5;
  padding: 4px;
  transition: color 0.2s ease;
}

.prof-pwd-toggle:hover {
  color: #91037b;
}

.btn-admin-submit {
  background: #91037b;
  border: 1px solid #70025f;
  color: #ffffff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .06em;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.btn-admin-submit:hover {
  background: #760264;
  color: #ffde00;
  border-color: #760264;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(145, 3, 123, 0.3);
}

.hover-navy:hover {
  color: #91037b !important;
}

.fs-xs {
  font-size: .75rem;
}

/* ---------- modern admin shell ---------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.sidebar {
  width: 270px;
  flex: 0 0 270px;
  background: linear-gradient(180deg, #1c001e 0%, #150017 100%);
  color: #e2e8f0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 50;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.2rem 1.4rem;
  color: #ffffff;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-logo-container {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-logo-img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-name-text {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.nav-groups {
  padding: 14px 12px 40px;
}

.nav-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a855f7;
  margin: 20px 12px 8px;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.sidebar .nav-link i {
  width: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  transition: color 0.2s ease;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar .nav-link:hover i {
  color: #ffde00;
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, #91037b 0%, #6d015c 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(145, 3, 123, 0.4);
}

.sidebar .nav-link.active i {
  color: #ffde00;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.admin-page-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.text-navy-dark {
  color: #1c0218;
}

.btn-outline-navy {
  color: #91037b;
  border-color: #91037b;
  transition: all 0.2s ease;
}

.btn-outline-navy:hover {
  background: #91037b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(145, 3, 123, 0.2);
}

.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #91037b 0%, #6d015c 100%);
  color: #ffde00;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(145, 3, 123, 0.3);
}

.btn-user-profile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px 4px 6px;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.btn-user-profile:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.content {
  padding: 24px;
  flex: 1;
}

.admin-footer {
  padding: 16px 24px;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

/* ---------- Stat Cards ---------- */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  color: #0f172a;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(145, 3, 123, 0.15);
  border-color: #ebd1e7;
  color: #0f172a;
}

.stat-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(145, 3, 123, 0.08);
  color: #91037b;
  font-size: 1.1rem;
}

.stat-card:hover .ic {
  background: #91037b;
  color: #ffde00;
}

.stat-trend {
  color: #10b981;
  font-size: .8rem;
}

.stat-card .n {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.stat-card .t {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

/* ---------- Panels & Tables ---------- */
.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
}

.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.panel-body {
  padding: 20px;
}

.table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.table tbody td {
  padding: 12px 16px;
}

.badge-soft-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-soft-warning {
  background: #fef9c3;
  color: #a16207;
}

.badge-soft-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-soft-secondary {
  background: #f1f5f9;
  color: #475569;
}

.bg-purple-subtle {
  background: rgba(145, 3, 123, 0.1) !important;
}

.text-purple {
  color: #91037b !important;
}

.text-gold {
  color: #ffde00 !important;
}

.text-orange {
  color: #f97316 !important;
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: -290px;
    z-index: 60;
    transition: left 0.3s ease;
  }
  .sidebar.open {
    left: 0;
  }
}
