/**
 * Ooverse admin — layered on AdminLTE 2
 */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --admin-accent: #6366f1;
  --admin-accent-hover: #4f46e5;
  --admin-header-from: #1e1b4b;
  --admin-header-to: #312e81;
  --admin-sidebar-bg: #1a1a2e;
  --admin-sidebar-active: #6366f1;
  --admin-content-bg: #f1f5f9;
  --admin-radius: 10px;
  --admin-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --admin-shadow-lg: 0 10px 40px -12px rgba(15, 23, 42, 0.18);
}

/* Typography */
body {
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header & brand */
.main-header .logo {
  background: linear-gradient(135deg, var(--admin-header-from) 0%, var(--admin-header-to) 100%) !important;
  color: #fff !important;
  border-bottom: none !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.main-header .logo:hover {
  opacity: 0.95;
  color: #fff !important;
}

/* Header uses mark-only asset; compact = collapsed sidebar, wide = expanded */
.main-header .logo.logo-brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
  /* AdminLTE defaults to 50px + overflow:hidden, which caps logo size */
  height: 60px !important;
  line-height: 60px !important;
  overflow: visible !important;
}

/* Only one variant visible: wide when sidebar expanded, compact when collapsed (AdminLTE toggle) */
.main-header .logo.logo-brand .logo-lg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-header .logo.logo-brand .logo-mini {
  display: none;
}

@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .main-header .logo.logo-brand > .logo-mini {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-mini.sidebar-collapse .main-header .logo.logo-brand > .logo-lg {
    display: none;
  }

  /* Collapsed strip is only 50px wide — trim padding so the mark can read larger */
  .sidebar-mini.sidebar-collapse .main-header .logo.logo-brand {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

.main-header .logo.logo-brand .brand-logo {
  height: auto;
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
  padding: 0 !important;
}

.main-header .logo.logo-brand .brand-logo--compact {
  max-height: 52px;
  max-width: 52px;
}

.main-header .logo.logo-brand .brand-logo--wide {
  max-height: 58px;
  max-width: 120px;
}

.main-header .logo.logo-brand .brand-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  vertical-align: middle;
  margin-left: 6px;
}

.login-page .login-logo {
  margin-bottom: 8px;
}

.login-brand-link {
  display: inline-block;
  line-height: 0;
}

.login-brand-link:hover,
.login-brand-link:focus {
  opacity: 0.92;
}

.login-brand-logo {
  max-width: min(280px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.main-header .navbar {
  background: linear-gradient(90deg, var(--admin-header-to) 0%, #3730a3 100%) !important;
  border: none;
  box-shadow: var(--admin-shadow);
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap;
}

.main-header .navbar .sidebar-toggle {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 15px !important;
  line-height: 1 !important;
}

.main-header .navbar .navbar-custom-menu {
  float: none !important;
  margin-left: auto;
}

/* Remove AdminLTE skin divider lines in header */
.skin-black-light .main-header .navbar > .sidebar-toggle,
.skin-black-light .main-header .navbar .navbar-nav > li > a,
.skin-black-light .main-header .navbar .navbar-custom-menu .navbar-nav > li > a,
.skin-black-light .main-header .navbar .navbar-right > li > a {
  border-left: none !important;
  border-right: none !important;
}

.skin-black-light .main-header .logo.logo-brand {
  border-right: none !important;
}

.main-header .sidebar-toggle,
.main-header .navbar .nav > li > a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.main-header .sidebar-toggle:hover,
.main-header .navbar .nav > li > a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.main-header .navbar .nav > li > a .user-image {
  border: 2px solid rgba(255, 255, 255, 0.35);
  width: 28px;
  height: 28px;
  object-fit: cover;
}

/* Sidebar */
.main-sidebar {
  background: var(--admin-sidebar-bg) !important;
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.12);
}

.skin-black-light .main-sidebar,
.skin-black-light .left-side {
  border-right: none !important;
}

.sidebar-menu > li.header {
  color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 18px 8px;
}

.main-sidebar .sidebar {
  position: relative;
  z-index: 1;
}

.sidebar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  margin: 2px 10px;
  padding: 10px 12px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.sidebar-menu > li.active > a,
.sidebar-menu > li.treeview.menu-open > a,
.sidebar-menu > li.treeview.active > a {
  background: var(--admin-sidebar-active) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.sidebar-menu > li.treeview.menu-open > a:hover,
.sidebar-menu > li.treeview.active > a:hover {
  background: var(--admin-sidebar-active) !important;
  color: #fff !important;
}

.sidebar-menu > li > .treeview-menu {
  background: rgba(0, 0, 0, 0.2) !important;
  padding: 6px 0 10px;
  margin: 0 6px 6px;
  border-radius: 8px;
}

.sidebar-menu .treeview-menu > li > a {
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 8px 12px 8px 28px !important;
  font-size: 13px;
}

.sidebar-menu .treeview-menu > li.active > a {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.3) !important;
  border-radius: 6px;
}

.sidebar-menu .treeview-menu > li > a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px;
}

.sidebar-menu > li > a > .fa,
.sidebar-menu > li > a > .glyphicon,
.sidebar-menu > li > a > .ion {
  flex: 0 0 22px;
  width: 22px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  opacity: 0.95;
}

@media (min-width: 768px) {
  /* Inset margins break AdminLTE flyout positioning (absolute left: 50px is from the <a> box) */
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0;
  }

  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .fa,
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .glyphicon,
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .ion {
    flex: 0 0 auto;
    width: auto;
    min-width: 1.15em;
    margin-right: 0 !important;
    font-size: 18px;
    text-align: center;
  }
}

/* Content area */
.content-wrapper,
.right-side {
  background: var(--admin-content-bg) !important;
  min-height: calc(100vh - 60px);
}

.content-header {
  padding: 22px 20px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
}

.content-header > h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0;
  flex: 1 1 auto;
  padding-right: 12px;
}

.content-header > h1 > small {
  font-weight: 500;
  color: #64748b;
}

.content-header .breadcrumb {
  position: static !important;
  float: none !important;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 13px;
  flex: 0 0 auto;
}

.content-header .breadcrumb > li > a {
  color: var(--admin-accent);
  text-decoration: none;
}

.content-header .breadcrumb > li > a:hover {
  text-decoration: underline;
}

.content-header .breadcrumb > li + li::before {
  content: "/" !important;
  color: #94a3b8;
  padding: 0 6px;
}

.content-header .breadcrumb > .active {
  color: #64748b;
}

section.content {
  padding: 12px 20px 28px;
}

/* Boxes & grids */
.box {
  border: none;
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-lg);
  margin-bottom: 22px;
  overflow: hidden;
}

.box-header {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 14px 18px;
  font-weight: 600;
  color: #0f172a;
}

.box-header.with-border {
  border-bottom: 1px solid #e2e8f0;
}

.box-body {
  background: #fff;
  padding: 18px;
}

/* ===== Tables (AdminLTE 3 style) ===== */
.table-responsive {
  border-radius: 8px;
  overflow-x: auto;
}

.table {
  margin-bottom: 0;
}

.table > thead > tr > th {
  border-bottom: 2px solid #e2e8f0;
  border-top: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  padding: 12px 16px;
  white-space: nowrap;
  background: #f8fafc;
}

.table > tbody > tr > td {
  padding: 12px 16px;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  font-size: 13.5px;
}

.table > tbody > tr:hover {
  background-color: #f8fafc !important;
}

.table > tbody > tr:nth-child(even) {
  background-color: #fafbfc;
}

.table > tbody > tr:nth-child(even):hover {
  background-color: #f1f5f9 !important;
}

/* Remove harsh borders from striped/bordered tables */
.table-bordered {
  border: none !important;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
  border-left: none !important;
  border-right: none !important;
}

.table-bordered > thead > tr > th {
  border-bottom: 2px solid #e2e8f0 !important;
}

.table-bordered > tbody > tr > td {
  border-top: 1px solid #f1f5f9 !important;
}

/* Filter inputs in table header */
.table > thead > tr > td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.table > thead > tr > td .form-control {
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  font-size: 13px;
  padding: 4px 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.table > thead > tr > td .form-control:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

/* Action column buttons */
.table .glyphicon {
  font-size: 14px;
}

.table a[title="View"],
.table a[title="Update"],
.table a[title="Delete"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none !important;
  margin: 0 2px;
}

.table a[title="View"] {
  color: #6366f1;
  background: #eef2ff;
}

.table a[title="View"]:hover {
  background: #6366f1;
  color: #fff;
}

.table a[title="Update"] {
  color: #f59e0b;
  background: #fffbeb;
}

.table a[title="Update"]:hover {
  background: #f59e0b;
  color: #fff;
}

.table a[title="Delete"] {
  color: #ef4444;
  background: #fef2f2;
}

.table a[title="Delete"]:hover {
  background: #ef4444;
  color: #fff;
}

/* Pagination */
.pagination {
  margin: 16px 0 4px;
}

.pagination > li > a,
.pagination > li > span {
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 2px;
  border-radius: 8px !important;
  transition: all 0.15s ease;
}

.pagination > li > a:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--admin-accent);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
  background: var(--admin-accent) !important;
  border-color: var(--admin-accent) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pagination > .disabled > a,
.pagination > .disabled > span {
  color: #cbd5e1 !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Summary text */
.summary {
  font-size: 13px;
  color: #64748b;
  padding: 8px 0;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  transition: all 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--admin-accent-hover);
  border-color: var(--admin-accent-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-success {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-success:hover,
.btn-success:focus {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover,
.btn-danger:focus {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.btn-info {
  background: #06b6d4;
  border-color: #06b6d4;
}

.btn-info:hover,
.btn-info:focus {
  background: #0891b2;
  border-color: #0891b2;
}

.btn-default {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
}

.btn-default:hover,
.btn-default:focus {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

/* Form controls — single-line inputs stay compact; textareas stay flexible */
.form-control {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color: #334155;
  box-sizing: border-box;
}

input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="color"]),
select.form-control:not([size]):not([multiple]) {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  line-height: 1.45;
  padding: 7px 12px;
}

textarea.form-control {
  height: auto !important;
  min-height: 88px;
  max-height: none !important;
  line-height: 1.5;
  padding: 10px 12px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

select.form-control:not([size]):not([multiple]) {
  appearance: auto;
  -webkit-appearance: menulist;
}

/* AdminLTE sets appearance:none on non-select .form-control; normalize single-line inputs */
input.form-control {
  -webkit-appearance: none;
  appearance: none;
}

input.form-control[type="search"] {
  -webkit-appearance: textfield;
  appearance: auto;
}

/* Header / sidebar: do not force main content input dimensions */
.main-header input.form-control,
.main-header select.form-control {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: inherit !important;
}

/* ----- Global admin forms (main layout + modals) ----- */
section.content .form-group,
.modal .form-group {
  margin-bottom: 16px;
}

section.content .form-group label.control-label,
.modal .form-group label.control-label {
  font-weight: 600;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}

section.content .help-block,
.modal .help-block {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.panel > .panel-heading h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* Labels & badges */
.label {
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
}

.label-success {
  background: #dcfce7;
  color: #166534;
}

.label-danger {
  background: #fef2f2;
  color: #991b1b;
}

.label-warning {
  background: #fef9c3;
  color: #854d0e;
}

.label-info {
  background: #e0f2fe;
  color: #075985;
}

.label-default {
  background: #f1f5f9;
  color: #475569;
}

/* Alerts */
.alert {
  border-radius: var(--admin-radius);
  border: none;
  box-shadow: var(--admin-shadow);
  font-size: 14px;
}

/* Detail view */
.table.detail-view th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 200px;
  padding: 12px 16px;
}

.table.detail-view td {
  padding: 12px 16px;
  color: #0f172a;
}

/* Footer */
.main-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 13px;
  padding: 14px 20px;
}

.main-footer a {
  color: var(--admin-accent);
}

/* User dropdown */
.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
  background: linear-gradient(135deg, var(--admin-header-from), var(--admin-header-to)) !important;
}

.navbar-nav > .user-menu > .dropdown-menu {
  border: none;
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-lg);
}

/* ===== Split Login Page ===== */
body.login-page-split {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #fff;
  overflow: hidden;
}

.login-split-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left side */
.login-split-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
  overflow-y: auto;
}

.login-form-container {
  width: 100%;
  max-width: 420px;
}

.login-form-logo {
  margin-bottom: 36px;
}

.login-form-logo a {
  display: inline-block;
  line-height: 0;
}

.login-form-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.login-form-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--admin-accent);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.login-form-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 32px;
}

.login-field-group {
  margin-bottom: 20px;
}

.login-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  height: 48px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
  border-color: var(--admin-accent) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
  outline: none;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-remember-row {
  margin-bottom: 24px;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.login-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-accent);
}

.login-btn-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--admin-accent) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.login-btn-submit:hover {
  background: var(--admin-accent-hover) !important;
}

.login-btn-submit:active {
  transform: scale(0.985);
}

/* Right side — branding panel */
.login-split-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.login-split-right::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.login-split-right::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.login-split-right-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}

.login-right-logo-area {
  text-align: center;
}

.login-right-butterfly {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(99, 102, 241, 0.18)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.login-right-tagline {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 28px;
  letter-spacing: -0.01em;
}

/* Mobile responsive */
@media (max-width: 991px) {
  .login-split-wrapper {
    flex-direction: column;
  }

  .login-split-right {
    display: none;
  }

  .login-split-left {
    padding: 32px 24px;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff 60%, #f1f5f9 100%);
  }
}

/* Override AdminLTE body defaults for split login */
body.login-page-split .login-box,
body.login-page-split .login-logo,
body.login-page-split .login-box-body {
  display: none;
}

/* --- Dashboard (modern layout) --- */
.admin-dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(125deg, #fff 0%, #f8fafc 45%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: var(--admin-shadow);
}

.admin-dashboard-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
}

.admin-dashboard-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.admin-dashboard-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: #64748b;
}

.admin-btn-outline {
  color: #4338ca !important;
  background: #fff !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-btn-outline:hover {
  background: #eef2ff !important;
  border-color: #a5b4fc !important;
}

.admin-stat-row {
  margin-left: -8px;
  margin-right: -8px;
}

.admin-stat-row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

.admin-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--admin-shadow);
  min-height: 132px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-lg);
}

.admin-stat-card-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  opacity: 0.95;
}

.admin-stat-card--indigo .admin-stat-card-icon {
  background: linear-gradient(135deg, #6366f1, #4338ca);
}
.admin-stat-card--teal .admin-stat-card-icon {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}
.admin-stat-card--amber .admin-stat-card-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.admin-stat-card--rose .admin-stat-card-icon {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.admin-stat-card-body {
  padding: 20px 20px 12px;
}

.admin-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}

.admin-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.admin-stat-footer {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4338ca !important;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.admin-stat-footer:hover {
  background: #eef2ff !important;
  text-decoration: none !important;
}

.admin-stat-footer--muted {
  color: #64748b !important;
  cursor: default;
}

.admin-stat-footer--muted:hover {
  background: #f8fafc !important;
}

.admin-mini-metric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 14px;
}

.admin-mini-metric .fa {
  color: #6366f1;
}

.admin-quick-links {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--admin-shadow);
}

.admin-quick-links-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
}

.admin-quick-links-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-chip:hover {
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
  color: #3730a3 !important;
}

.admin-chip .fa {
  opacity: 0.85;
}

.admin-chart-box {
  border: 1px solid #e2e8f0 !important;
}

.admin-chart-header {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%) !important;
}

.admin-chart-header .box-title {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.admin-chart-caption {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hide duplicate h1 inside content that's already shown in content-header */
section.content > div > h1:first-child,
section.content > .row > .col-xs-12 > h1:first-child,
section.content [class$="-index"] > h1:first-child {
  display: none;
}

/* ===== Inner list pages (GridView / boxes) ===== */
.admin-page-panel {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--admin-shadow-lg) !important;
  overflow: hidden;
}

.admin-page-panel .box-header {
  background: #fff !important;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-page-panel .box-title {
  font-weight: 700 !important;
  font-size: 17px !important;
  color: #0f172a !important;
  margin: 0;
}

.admin-page-panel .box-body {
  padding: 0;
}

.admin-page-panel .box-body > .pull-right {
  padding: 12px 20px 0;
}

.admin-page-panel .box-body > div[style*="clear"] + .grid-view,
.admin-page-panel .box-body > .grid-view {
  padding: 0;
}

/* Box tools */
.box-tools .btn-box-tool {
  color: #94a3b8;
  font-size: 16px;
  transition: color 0.15s ease;
}

.box-tools .btn-box-tool:hover {
  color: var(--admin-accent);
}

/* Any box in a grid column gets clean panel treatment */
section.content .row > [class*="col-"] > .box {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--admin-shadow-lg) !important;
  overflow: hidden;
}

section.content .row > [class*="col-"] > .box > .box-header:not(.admin-chart-header) {
  background: #fff !important;
  padding: 16px 20px;
}

section.content .row > [class*="col-"] > .box > .box-header:not(.admin-chart-header) .box-title {
  font-weight: 700 !important;
  font-size: 17px !important;
  color: #0f172a !important;
}

section.content .row > [class*="col-"] > .box > .box-body {
  padding: 18px 20px 22px;
}

/* Kartik GridView overrides */
.kv-grid-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.kv-panel-before,
.kv-panel-after {
  padding: 10px 20px !important;
  background: #fff !important;
  border: none !important;
}

.kv-grid-container {
  border: none !important;
}

/* Panel (kartik grid) */
.panel {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--admin-shadow-lg) !important;
  overflow: hidden;
}

.panel > .panel-heading {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 14px 14px 0 0 !important;
}

.panel > .panel-body {
  padding: 16px 20px 20px;
}

.panel > .panel-footer {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  padding: 12px 20px;
}

.panel-default {
  border-color: #e2e8f0 !important;
}

.panel-default > .panel-heading {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.panel-primary {
  border-color: #e2e8f0 !important;
}

.panel-primary > .panel-heading {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Settings page wrapper — inherits global form rules above */
.admin-settings-form .form-group:last-child {
  margin-bottom: 0;
}

.admin-settings-form .form-group .btn-success {
  margin-top: 4px;
}

/* Image thumbnails in tables */
.table img {
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

/* Empty grid message */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 767px) {
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .content-header > h1 {
    font-size: 1.25rem;
  }

  .admin-dashboard-hero {
    padding: 18px;
  }

  .admin-dashboard-title {
    font-size: 1.4rem;
  }

  .table > thead > tr > th,
  .table > tbody > tr > td {
    padding: 10px 12px;
  }
}
