/* ==========================================================================
   ACADEMIC MODERN DESIGN SYSTEM (custom.css)
   SMK Muhammadiyah Majenang - E-Learning 2.0
   Inspired by Modern Dashboard Design (Langgam Theme)
   Clean White Topbar, Midnight Navy Sidebar, Elevated Cards, & Clean DataTables
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --sidebar-bg: #081b29;
  --sidebar-active: #f59e0b;
  --sidebar-active-bg: rgba(245, 158, 11, 0.12);
  --topbar-bg: #ffffff;
  --bg-canvas: #f8fafc;
  --card-bg: #ffffff;
  --border-subtle: #e2e8f0;
  --border-light: #f1f5f9;
  --text-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --primary-navy: #0c192c;
  --primary-blue: #2563eb;
  --accent-gold: #f59e0b;
  --accent-emerald: #059669;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
}

html {
  zoom: 80%;
  -webkit-text-size-adjust: 80%;
}

@supports not (zoom: 82%) {
  html {
    font-size: 80%;
  }
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TOPBAR - Clean White, Elevated, Dark Typography (Matching Image 1)
   ========================================================================== */
.topbar,
.topbar.bg-danger {
  background: var(--topbar-bg) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.03) !important;
  min-height: 64px;
  padding: 0 24px !important;
}

.topbar .topbar-btn {
  color: var(--text-secondary) !important;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
}

.topbar .topbar-btn:hover {
  background: #f1f5f9 !important;
  color: var(--text-dark) !important;
}

.topbar-circle-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid #dce4ec !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.topbar-circle-btn:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08) !important;
}

.topbar-circle-btn i {
  font-size: 16px !important;
  line-height: 1 !important;
  color: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.topbar-btns {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  gap: 4px;
}

.topbar-btns > li {
  display: inline-flex !important;
  align-items: center !important;
}

.topbar-page-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.topbar-badge {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 12px;
  border: 1px solid var(--border-subtle);
}

.topbar .avatar {
  border: 1.5px solid #dce4ec !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  object-fit: cover !important;
  display: inline-block !important;
}

/* ==========================================================================
   SIDEBAR - Deep Midnight Navy, Gold Accents (Matching Image 1)
   ========================================================================== */
.sidebar {
  background-color: var(--sidebar-bg) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: var(--shadow-md) !important;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SIDEBAR HEADER - Matching Exact Screenshots (media_1792991501443_b08e6ee2.png & media_1792991518576_4fc26daf.png)
   Expanded: Royal Blue #1c519d, School Brand Image on left, hollow circle toggle in middle, sun emblem on right
   Folded: Midnight Navy #081b29, sun emblem precisely centered
   ========================================================================== */
.sidebar .sidebar-header,
.sidebar .sidebar-header.bg-primary,
.sidebar-header {
  background: #1c519d !important; /* Exact color from Image 1: #1c519d */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 10 !important;
}

/* 1. Left: School Brand Image (Image 1) */
.sidebar-header .logo {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  max-width: 135px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 1 !important;
}

.sidebar-header .logo a,
.sidebar-header .logo .sidebar-brand-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.sidebar-header .logo img,
.sidebar-header .logo .sidebar-logo-img {
  max-height: 26px !important;
  max-width: 130px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* 2. Middle: Circle Toggle Button (Hollow White Ring like Image 1) */
.sidebar-header .sidebar-toggle-fold {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  cursor: pointer !important;
  flex: 0 0 24px !important;
  order: 2 !important;
}

.sidebar-header .sidebar-toggle-fold::before {
  content: '' !important;
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.sidebar-header .sidebar-toggle-fold:hover::before {
  background-color: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
}

/* 3. Right: Emblem Icon (Muhammadiyah Sun like Image 1) */
.sidebar-header .logo-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: 0 0 32px !important;
  flex-basis: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  order: 3 !important;
}

.sidebar-header .logo-icon img,
.sidebar-header .sidebar-logo-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
}

/* ==========================================================================
   FOLDED SIDEBAR ALIGNMENT & CLEANUP (Fixes Crooked Icons & Floating Arrows)
   ========================================================================== */

/* 1. Hide submenu arrows completely when folded */
body.sidebar-folded .sidebar:not(:hover) .arrow,
.sidebar.sidebar-folded:not(:hover) .arrow,
body.sidebar-folded .sidebar:not(:hover) .menu-link .arrow,
.sidebar.sidebar-folded:not(:hover) .menu-link .arrow,
body.sidebar-folded .sidebar .arrow::before,
.sidebar.sidebar-folded .arrow::before,
.sidebar-folded .sidebar .arrow {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2. Hide titles completely when folded and not hovered */
body.sidebar-folded .sidebar:not(:hover) .title,
.sidebar.sidebar-folded:not(:hover) .title,
.sidebar-folded .sidebar:not(:hover) .title {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

/* 3. Base menu-link in folded non-hovered mode: align to visible right column */
body.sidebar-folded .sidebar:not(:hover) .menu-link,
.sidebar.sidebar-folded:not(:hover) .menu-link,
.sidebar-folded .sidebar:not(:hover) .menu-link {
  padding: 0 !important;
  margin: 3px 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  height: 48px !important;
  border-radius: 0 !important;
  border-left: none !important;
  background: transparent !important;
  position: relative !important;
}

/* 4. Center ALL icons precisely on the exact same vertical center line (x = 40px) */
body.sidebar-folded .sidebar:not(:hover) .menu-link .icon,
.sidebar.sidebar-folded:not(:hover) .menu-link .icon,
.sidebar-folded .sidebar:not(:hover) .menu-link .icon,
body.sidebar-folded .sidebar.sidebar-icons-right:not(:hover) .menu-link .icon,
.sidebar.sidebar-folded.sidebar-icons-right:not(:hover) .menu-link .icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  flex: 0 0 44px !important;
  flex-basis: 44px !important;
  margin: 0 18px 0 0 !important; /* Exactly centers the 44px icon in the 80px space (80 - 44)/2 = 18px */
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 10px !important;
  font-size: 17px !important;
  color: #94a3b8 !important;
  background-color: transparent !important;
  border: 1px solid transparent !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  order: 1 !important;
}

/* Hover state on folded icons */
body.sidebar-folded .sidebar:not(:hover) .menu-link:hover .icon,
.sidebar.sidebar-folded:not(:hover) .menu-link:hover .icon,
.sidebar-folded .sidebar:not(:hover) .menu-link:hover .icon {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Active State on folded icons (e.g. Dashboard, active page) */
body.sidebar-folded .sidebar:not(:hover) .menu-item.active > .menu-link .icon,
.sidebar.sidebar-folded:not(:hover) .menu-item.active > .menu-link .icon,
.sidebar-folded .sidebar:not(:hover) .menu-item.active > .menu-link .icon {
  color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* Ensure active menu item does not have bleeding borders or background in folded mode */
body.sidebar-folded .sidebar:not(:hover) .menu-item.active > .menu-link,
.sidebar.sidebar-folded:not(:hover) .menu-item.active > .menu-link,
.sidebar-folded .sidebar:not(:hover) .menu-item.active > .menu-link {
  border-left: none !important;
  background: transparent !important;
}

/* 5. Header in Folded Mode: Exactly matching Image 2 (Midnight Navy #081b29, Sun logo precisely centered) */
body.sidebar-folded .sidebar:not(:hover) .sidebar-header,
.sidebar.sidebar-folded:not(:hover) .sidebar-header,
.sidebar-folded .sidebar:not(:hover) .sidebar-header {
  background: #081b29 !important; /* Exact color from Image 2: #081b29 */
  justify-content: flex-end !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.sidebar-folded .sidebar:not(:hover) .sidebar-header .logo,
.sidebar.sidebar-folded:not(:hover) .sidebar-header .logo,
.sidebar-folded .sidebar:not(:hover) .sidebar-header .logo,
body.sidebar-folded .sidebar:not(:hover) .sidebar-header .sidebar-toggle-fold,
.sidebar.sidebar-folded:not(:hover) .sidebar-header .sidebar-toggle-fold,
.sidebar-folded .sidebar:not(:hover) .sidebar-header .sidebar-toggle-fold {
  display: none !important;
}

body.sidebar-folded .sidebar:not(:hover) .sidebar-header .logo-icon,
.sidebar.sidebar-folded:not(:hover) .sidebar-header .logo-icon,
.sidebar-folded .sidebar:not(:hover) .sidebar-header .logo-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  flex: 0 0 44px !important;
  flex-basis: 44px !important;
  margin: 0 18px 0 0 !important; /* Perfectly centered on visible 80px column */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.sidebar-folded .sidebar:not(:hover) .sidebar-header .logo-icon img,
.sidebar.sidebar-folded:not(:hover) .sidebar-header .logo-icon img,
.sidebar-folded .sidebar:not(:hover) .sidebar-header .logo-icon img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
}

/* 6. Completely hide bottom profile card when folded and not hovered */
body.sidebar-folded .sidebar:not(:hover) .sidebar-profile-card,
.sidebar.sidebar-folded:not(:hover) .sidebar-profile-card,
.sidebar-folded .sidebar:not(:hover) .sidebar-profile-card,
body.sidebar-folded .sidebar-profile-card,
.sidebar.sidebar-folded .sidebar-profile-card,
.sidebar-folded .sidebar-profile-card {
  display: none !important;
}

.sidebar-navigation {
  flex-grow: 1;
}

.sidebar-navigation .menu-category {
  color: #4b5e76 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 18px 20px 8px 20px !important;
}

.sidebar-navigation .menu-link {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  border-radius: var(--radius-sm) !important;
  margin: 2px 10px !important;
  padding: 10px 14px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-navigation .menu-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Active State with Golden Amber Accent */
.sidebar-navigation .menu-item.active > .menu-link {
  color: var(--sidebar-active) !important;
  background: var(--sidebar-active-bg) !important;
  font-weight: 700 !important;
  border-left: 3px solid var(--sidebar-active) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

.sidebar-navigation .menu-item.active > .menu-link .icon {
  color: var(--sidebar-active) !important;
}

.sidebar-navigation .menu-submenu {
  background-color: #05131d !important;
}

.sidebar-navigation .menu-submenu .menu-link {
  margin: 1px 12px !important;
  font-size: 13px !important;
}

/* Sidebar Profile Footer Pill */
.sidebar-profile-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-profile-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0ea5e9;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   CARDS - Clean White, Rounded 14px, Soft Borders (Matching Image 1)
   ========================================================================== */
.card {
  background: var(--card-bg) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 24px;
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 20px 24px !important;
}

.card-header .card-title,
.card-title {
  font-weight: 800 !important;
  font-size: 19px !important;
  color: var(--text-dark) !important;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 400;
}

.card-body {
  padding: 24px !important;
}

/* Primary Action Button (Dark Navy Pill, matching Image 1 "+ Tambah Investor") */
.btn-primary-dark {
  background: var(--primary-navy) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(12, 25, 44, 0.2);
  transition: all 0.2s ease;
}

.btn-primary-dark:hover {
  background: #172b48 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 25, 44, 0.25);
}

/* ==========================================================================
   DATATABLES & TABLE SYSTEM (Matching Image 1 Exactly)
   ========================================================================== */
/* Hide DataTables scrollY cloned header completely */
div.dataTables_scrollBody thead tr,
div.dataTables_scrollBody thead th,
div.dataTables_scrollBody thead td {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  visibility: hidden !important;
}

div.dataTables_scrollBody thead th::before,
div.dataTables_scrollBody thead th::after,
div.dataTables_scrollBody thead td::before,
div.dataTables_scrollBody thead td::after {
  display: none !important;
  content: "" !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Toolbar Controls */
.dataTables_wrapper {
  padding: 0 !important;
}

div.dataTables_wrapper div.dataTables_length {
  margin-bottom: 16px;
}

div.dataTables_wrapper div.dataTables_length label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

div.dataTables_wrapper div.dataTables_length select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

div.dataTables_wrapper div.dataTables_filter {
  margin-bottom: 16px;
}

div.dataTables_wrapper div.dataTables_filter label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

div.dataTables_wrapper div.dataTables_filter input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  padding: 7px 14px;
  font-size: 13px;
  min-width: 220px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Export Buttons (EXCEL, PDF, PRINT Pills) */
.dt-buttons,
.table-export-toolbar {
  display: inline-flex;
  gap: 6px;
  margin-left: 12px;
  vertical-align: middle;
}

.dt-buttons .btn,
.dt-button,
.btn-export-pill {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-subtle) !important;
  background: #ffffff !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 6px 14px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease;
}

.dt-buttons .btn:hover,
.dt-button:hover,
.btn-export-pill:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: var(--text-dark) !important;
}

/* Table Header (Clean Light Gray) */
table.dataTable thead th,
.table thead th {
  background-color: #f8fafc !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1.5px solid var(--border-subtle) !important;
  border-top: none !important;
  padding: 12px 16px !important;
  vertical-align: middle !important;
}

/* Table Rows */
table.dataTable tbody td,
.table tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--border-light) !important;
  font-size: 13.5px !important;
  color: var(--text-primary);
  vertical-align: middle !important;
}

table.dataTable tbody tr:hover,
.table-hover tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Primary Cell Text Hierarchy (Name + Subtext/ID) */
.cell-primary-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-dark);
  display: block;
}

.cell-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

/* Status Badges */
td .btn-success,
.badge-status-active {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 20px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-block;
}

td .btn-danger,
.badge-status-inactive {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  border-radius: 20px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-block;
}

/* Action Icon Buttons */
td .dropdown a.text-lighter,
.btn-table-action {
  border: 1px solid var(--border-subtle) !important;
  border-radius: 6px !important;
  padding: 5px 8px !important;
  background: #ffffff !important;
  color: var(--text-secondary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

td .dropdown a.text-lighter:hover,
.btn-table-action:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: var(--text-dark) !important;
}

/* DataTables Sorting Arrows */
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc {
  position: relative;
  vertical-align: middle !important;
  padding-right: 28px !important;
}

table.dataTable thead .sorting::before,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::before {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  right: 1.1em !important;
  line-height: 1 !important;
  opacity: 0.35 !important;
}

table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  right: 0.5em !important;
  line-height: 1 !important;
  opacity: 0.35 !important;
}

table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::after {
  opacity: 1 !important;
  color: var(--text-dark) !important;
}

/* Table Footer & Pagination */
div.dataTables_wrapper div.dataTables_info {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding-top: 16px !important;
}

div.dataTables_wrapper div.dataTables_paginate {
  padding-top: 12px !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  margin: 0 !important;
  gap: 4px;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination li.active a,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current {
  background: var(--primary-navy) !important;
  border-color: var(--primary-navy) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  min-width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 !important;
  text-align: center !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination li a,
div.dataTables_wrapper div.dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  border: 1px solid transparent !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  min-width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 8px !important;
  text-align: center !important;
  background: transparent !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination li a:hover,
div.dataTables_wrapper div.dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important;
  color: var(--text-dark) !important;
}

/* Width synchronization for DataTables scroll */
div.dataTables_scrollHeadInner,
div.dataTables_scrollHeadInner table.dataTable {
  width: 100% !important;
}

div.dataTables_scrollBody table.dataTable {
  width: 100% !important;
  margin-top: 0 !important;
  border-top: none !important;
}

/* ==========================================================================
   DASHBOARD HOME & QUICK ACTION TILES
   ========================================================================== */
.card-welcome-academic {
  background: linear-gradient(135deg, #081b29 0%, #0c192c 60%, #172554 100%) !important;
  border-radius: var(--radius-lg) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 10px 25px -5px rgba(8, 27, 41, 0.4) !important;
  padding: 32px 24px !important;
  margin-bottom: 24px;
}

.welcome-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
  margin-top: 14px;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.welcome-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
}

.academic-notice-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-left: 5px solid #f97316;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.academic-notice-badge {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  flex-shrink: 0;
  border: 1px solid #ffedd5;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.quick-action-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 115px;
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.quick-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  color: #ffffff;
}

.icon-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.icon-indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.icon-emerald { background: linear-gradient(135deg, #059669, #047857); }
.icon-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.icon-rose { background: linear-gradient(135deg, #e11d48, #be123c); }
.icon-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.icon-sky { background: linear-gradient(135deg, #0284c7, #0369a1); }
.icon-slate { background: linear-gradient(135deg, #475569, #334155); }

.quick-action-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (Touch-friendly, No Overflow)
   ========================================================================== */
@media (max-width: 768px) {
  .topbar {
    min-height: 56px;
    padding: 0 12px !important;
  }
  
  .topbar-page-title {
    font-size: 15px;
  }
  
  .topbar-badge {
    display: none;
  }

  .card-body {
    padding: 16px !important;
  }
  
  .main-content {
    padding: 16px 12px !important;
  }
  
  .quick-action-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .quick-action-card {
    padding: 16px 10px !important;
    min-height: 98px !important;
  }

  .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  
  div.dataTables_wrapper div.dataTables_filter input {
    min-width: 100% !important;
  }
  
  div.dataTables_wrapper div.dataTables_paginate {
    text-align: center !important;
  }
  
  .table-responsive {
    border-radius: var(--radius-sm);
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   COMPACT & ACADEMIC DENSITY SYSTEM (Font & Content Scale Down)
   ========================================================================== */

/* Headings scale down */
h1, .h1 { font-size: 1.35rem !important; }
h2, .h2 { font-size: 1.2rem !important; }
h3, .h3 { font-size: 1.05rem !important; }
h4, .h4 { font-size: 0.95rem !important; }
h5, .h5 { font-size: 0.85rem !important; }
h6, .h6 { font-size: 0.78rem !important; }

/* Topbar Typography */
.topbar-page-title {
  font-size: 15px !important;
  font-weight: 700 !important;
}

.topbar-badge {
  font-size: 10.5px !important;
  padding: 2px 9px !important;
}

/* Sidebar Typography & Compact Items */
.sidebar-navigation .menu-category {
  font-size: 9.5px !important;
  padding: 12px 16px 4px 16px !important;
}

.sidebar-navigation .menu-link {
  font-size: 12.5px !important;
  padding: 8px 12px !important;
  margin: 1px 8px !important;
}

.sidebar-navigation .menu-link .icon {
  font-size: 15px !important;
}

.sidebar-navigation .menu-submenu .menu-link {
  font-size: 11.5px !important;
  padding: 6px 12px !important;
}

/* Content Cards & Padding */
.card-body {
  padding: 18px !important;
}

.card-title {
  font-size: 14px !important;
}

.card-subtitle {
  font-size: 12px !important;
  margin-bottom: 12px !important;
}

/* Welcome Academic Banner */
.card-welcome-academic {
  padding: 20px 20px !important;
  margin-bottom: 18px !important;
}

.welcome-title {
  font-size: 18px !important;
  margin-top: 8px !important;
  margin-bottom: 4px !important;
}

.welcome-badge {
  font-size: 11.5px !important;
  padding: 4px 12px !important;
}

/* Academic Notice Alert */
.academic-notice-card {
  padding: 10px 16px !important;
  margin-bottom: 18px !important;
}

.academic-notice-badge {
  font-size: 10px !important;
  padding: 3px 9px !important;
}

.academic-notice-card .fs-13 {
  font-size: 11.5px !important;
}

/* Quick Action Tiles (Grid) */
.quick-action-grid {
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.quick-action-card {
  padding: 12px 8px !important;
  min-height: 85px !important;
}

.quick-action-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  font-size: 17px !important;
  margin-bottom: 6px !important;
}

.quick-action-title {
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

/* Table Compact Hierarchy */
table.dataTable thead th,
.table thead th {
  font-size: 10px !important;
  padding: 8px 12px !important;
  letter-spacing: 0.04em !important;
}

table.dataTable tbody td,
.table tbody td {
  padding: 9px 12px !important;
  font-size: 12px !important;
}

.cell-primary-title {
  font-size: 12px !important;
}

.cell-subtitle {
  font-size: 10.5px !important;
}

/* Form Controls & Inputs */
.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  font-size: 12px !important;
  padding: 6px 10px !important;
  height: auto !important;
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
  font-size: 11.5px !important;
}

div.dataTables_wrapper div.dataTables_length select {
  font-size: 11.5px !important;
  padding: 4px 8px !important;
}

div.dataTables_wrapper div.dataTables_filter input {
  font-size: 11.5px !important;
  padding: 5px 10px !important;
  min-width: 180px !important;
}

.dt-buttons .btn,
.dt-button,
.btn-export-pill {
  font-size: 10px !important;
  padding: 4px 10px !important;
}

.btn-primary-dark {
  font-size: 11.5px !important;
  padding: 6px 14px !important;
}

.badge-status-active,
.badge-status-inactive,
td .btn-success,
td .btn-danger {
  font-size: 10px !important;
  padding: 2px 8px !important;
}

div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.dataTables_paginate {
  font-size: 11px !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button {
  padding: 3px 8px !important;
  font-size: 11px !important;
}

/* General Buttons */
.btn {
  font-size: 12px !important;
}

.btn-sm {
  font-size: 10.5px !important;
  padding: 3px 8px !important;
}

/* Discussion Forum Area */
.publisher-input {
  font-size: 12px !important;
}

.media-body p {
  font-size: 12px !important;
}


/* ==========================================================================
   LANGGAM INVEST TAILWIND & COMPONENT STYLING
   ========================================================================== */
.shadow-soft {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 20px 25px -5px rgba(0, 0, 0, 0.02) !important;
}

.shadow-floating {
  box-shadow: 0 20px 40px -15px rgba(0, 43, 78, 0.25) !important;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* Langgam Invest Sidebar Profile Card */
.sidebar-profile-card {
  padding: 10px 14px !important;
  margin: 12px 14px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.2s ease !important;
}

.sidebar-profile-badge {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  background: #cc0704 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

.sidebar-profile-logout {
  color: #94a3b8 !important;
  transition: color 0.2s ease !important;
  padding: 4px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
}

.sidebar-profile-logout:hover {
  color: #ef4444 !important;
}

.sidebar-folded .sidebar-profile-card {
  padding: 8px 4px !important;
  margin: 10px 4px !important;
  justify-content: center !important;
}

.sidebar-folded .sidebar-profile-card .profile-meta,
.sidebar-folded .sidebar-profile-card .sidebar-profile-logout {
  display: none !important;
}

/* Langgam Invest Active Menu Styling */
.sidebar-navigation .menu-item.active > .menu-link {
  background: linear-gradient(90deg, rgba(255, 184, 29, 0.12) 0%, transparent 100%) !important;
  border-left: 4px solid #ffb81d !important;
  color: #ffb81d !important;
}

.sidebar-navigation .menu-item.active > .menu-link .icon,
.sidebar-navigation .menu-item.active > .menu-link i,
.sidebar-navigation .menu-item.active > .menu-link svg {
  color: #ffb81d !important;
}

/* DataTables styling matching Langgam Invest template */
.dataTables_wrapper {
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #475569;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  float: none;
  text-align: inherit;
  color: #64748b;
}
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.3rem 1.5rem 0.3rem 0.75rem !important;
  outline: none !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  margin: 0 0.5rem !important;
}
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.35rem 0.85rem !important;
  outline: none !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  margin-left: 0.5rem !important;
  transition: all 0.2s !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.3rem 0.75rem !important;
  margin-left: 0.25rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important;
  color: #002b4e !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #002b4e !important;
  color: #fff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}
table.dataTable {
  border-collapse: collapse !important;
  margin: 0 !important;
  width: 100% !important;
}
table.dataTable thead th {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  font-weight: 700 !important;
  padding: 0.75rem 1.25rem !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  background: #f8fafc !important;
  vertical-align: middle !important;
}
table.dataTable.no-footer {
  border-bottom: 1px solid #e2e8f0 !important;
}
table.dataTable tbody td {
  padding: 0.75rem 1.25rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}
.dataTables_scrollHeadInner {
  width: 100% !important;
}
.dataTables_scrollHeadInner table {
  width: 100% !important;
}
select.dt-column-filter {
  cursor: pointer;
}
select.dt-column-filter:hover {
  border-color: #ffb81d !important;
}
.dt-buttons {
  display: flex !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  margin-left: 1rem !important;
}
.dt-buttons .dt-button,
.dt-buttons .btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.35rem 0.85rem !important;
  transition: all 0.2s !important;
}
.dt-buttons .dt-button:hover,
.dt-buttons .btn:hover {
  background: #002b4e !important;
  color: #fff !important;
  border-color: #002b4e !important;
}
