/* =============================================
   DASHBOARD SYSTEM - Global Styles
   Theme: Dark Blue, White, Blue
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --navy:       #0a1628;
  --navy-light: #112240;
  --navy-mid:   #1a3460;
  --blue:       #1565c0;
  --blue-mid:   #1976d2;
  --blue-light: #2196f3;
  --accent:     #42a5f5;
  --accent-glow:#64b5f6;
  --white:      #ffffff;
  --off-white:  #f0f4ff;
  --gray-light: #e8edf5;
  --gray-mid:   #90a4b8;
  --text-main:  #e8edf5;
  --text-dim:   #7b8fa6;
  --sidebar-w:  260px;
  --topbar-h:   64px;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(10,22,40,0.45);
  --shadow-sm:  0 2px 10px rgba(10,22,40,0.3);
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--navy);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── BACKGROUND MESH ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(21,101,192,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(33,150,243,0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--navy-light);
  border-right: 1px solid rgba(66,165,245,0.13);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 4px 0 30px rgba(0,0,0,0.35);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(66,165,245,0.13);
  text-decoration: none;
  flex-shrink: 0;
}

.sidebar-brand .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(21,101,192,0.26), rgba(66,165,245,0.14));
  border: 1px solid rgba(100,181,246,0.4);
  box-shadow: 0 8px 18px rgba(10,22,40,0.42), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-brand .brand-logo {
  width: 132%;
  height: 132%;
  object-fit: cover;
  object-position: 50% 24%;
  display: block;
  transform: translateY(1px);
  filter: saturate(1.12) contrast(1.04);
}

.sidebar-brand .brand-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.sidebar-brand .brand-sub {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(66,165,245,0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(66,165,245,0.2); border-radius: 4px; }

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 22px 6px;
}

/* Nav Item */
.sidebar-nav .nav-item { position: relative; }

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 22px;
  color: var(--gray-mid);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-nav .nav-link i {
  width: 20px;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: var(--transition);
}

.sidebar-nav .nav-link .nav-label { flex: 1; }

.sidebar-nav .nav-link .nav-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  color: var(--text-dim);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--white);
  background: rgba(33,150,243,0.12);
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i {
  color: var(--accent);
}

.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--blue-light));
  border-radius: 0 3px 3px 0;
}

/* Dropdown */
.sidebar-nav .nav-link[aria-expanded="true"] .nav-arrow {
  transform: rotate(90deg);
}

.sidebar-dropdown {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-dropdown.open { max-height: 400px; }

.sidebar-dropdown .sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 22px 7px 50px;
  color: var(--text-dim);
  font-size: 0.855rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.sidebar-dropdown .sub-link::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  transition: var(--transition);
}

.sidebar-dropdown .sub-link:hover,
.sidebar-dropdown .sub-link.active {
  color: var(--accent-glow);
}

.sidebar-dropdown .sub-link:hover::before,
.sidebar-dropdown .sub-link.active::before {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(66,165,245,0.13);
  flex-shrink: 0;
}

.sidebar-version {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: linear-gradient(135deg, rgba(17,34,64,0.95), rgba(21,52,102,0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(66,165,245,0.13);
  z-index: 1040;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 14px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.topbar-left { display: flex; align-items: center; gap: 12px; flex: 1; }

.sidebar-toggle-btn {
  width: 36px; height: 36px;
  border: none;
  background: rgba(66,165,245,0.1);
  border-radius: 8px;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover { background: rgba(66,165,245,0.22); transform: scale(1.05); }

.topbar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

/* Breadcrumb */
.topbar-breadcrumb {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-breadcrumb span { color: var(--accent); }

/* Search */
.topbar-search {
  position: relative;
}

.topbar-search input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(66,165,245,0.18);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.83rem;
  padding: 7px 14px 7px 36px;
  width: 220px;
  outline: none;
  transition: var(--transition);
  font-family: 'Nunito', sans-serif;
}

.topbar-search input::placeholder { color: var(--text-dim); }
.topbar-search input:focus {
  border-color: var(--accent);
  background: rgba(66,165,245,0.08);
  width: 260px;
  box-shadow: 0 0 12px rgba(66,165,245,0.2);
}

.topbar-search i {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Topbar Right */
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-icon-btn {
  width: 36px; height: 36px;
  border: none;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  color: var(--gray-mid);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.topbar-icon-btn:hover { 
  background: rgba(66,165,245,0.15); 
  color: var(--accent);
  transform: scale(1.08);
}

.badge-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #f44336;
  border-radius: 50%;
  border: 2px solid var(--navy-light);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Profile Dropdown */
.profile-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(66,165,245,0.15);
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.profile-dropdown-btn:hover { background: rgba(66,165,245,0.1); border-color: var(--accent); }

.profile-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  border: 2px solid rgba(66,165,245,0.4);
}

.profile-info { line-height: 1.2; }

.profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

.profile-role {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Role Badge Styling - Professional */
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
}

.role-badge-admin {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(244, 67, 54, 0.08));
  color: #e53935;
  border: 1px solid rgba(229, 57, 53, 0.35);
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.1);
}

.role-badge-admin:hover {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.18), rgba(244, 67, 54, 0.12));
  box-shadow: 0 0 16px rgba(229, 57, 53, 0.15);
}

.role-badge-mis {
  background: linear-gradient(135deg, rgba(25, 103, 210, 0.12), rgba(33, 150, 243, 0.08));
  color: #1565c0;
  border: 1px solid rgba(25, 103, 210, 0.35);
  box-shadow: 0 0 12px rgba(25, 103, 210, 0.1);
}

.role-badge-mis:hover {
  background: linear-gradient(135deg, rgba(25, 103, 210, 0.18), rgba(33, 150, 243, 0.12));
  box-shadow: 0 0 16px rgba(25, 103, 210, 0.15);
}

.role-badge-submitter {
  background: linear-gradient(135deg, rgba(56, 142, 60, 0.12), rgba(76, 175, 80, 0.08));
  color: #2e7d32;
  border: 1px solid rgba(56, 142, 60, 0.35);
  box-shadow: 0 0 12px rgba(56, 142, 60, 0.1);
}

.role-badge-submitter:hover {
  background: linear-gradient(135deg, rgba(56, 142, 60, 0.18), rgba(76, 175, 80, 0.12));
  box-shadow: 0 0 16px rgba(56, 142, 60, 0.15);
}

/* Dropdown User Header */
.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(66, 165, 245, 0.15);
  margin-bottom: 8px;
}

.dropdown-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  border: 2px solid rgba(66, 165, 245, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-user-info {
  flex: 1;
  line-height: 1.3;
}

.dropdown-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.dropdown-user-role {
  font-size: 0.78rem;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  font-weight: 600;
}

/* Bootstrap Dropdown Override */
.topbar .dropdown-menu {
  background: var(--navy-light);
  border: 1px solid rgba(66,165,245,0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 320px;
  padding: 8px;
  margin-top: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.topbar .dropdown-menu .dropdown-header {
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(66,165,245,0.1);
  margin-bottom: 8px;
}

.topbar .dropdown-item {
  color: var(--gray-mid);
  font-size: 0.85rem;
  border-radius: 7px;
  padding: 12px;
  display: flex; 
  align-items: flex-start; 
  gap: 10px;
  transition: var(--transition);
  margin-bottom: 4px;
  border-left: 3px solid transparent;
}

.topbar .dropdown-item:hover { 
  background: rgba(66,165,245,0.12); 
  color: var(--white);
  border-left-color: var(--accent);
}

.topbar .dropdown-item i { 
  width: 20px; 
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent); 
  font-size: 1.1rem;
}

.topbar .dropdown-item.opacity-50 {
  opacity: 0.65;
}

.topbar .dropdown-divider { 
  border-color: rgba(66,165,245,0.15); 
  margin: 6px 0; 
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 28px;
  min-height: calc(100vh - var(--topbar-h));
  position: relative;
  z-index: 1;
  transition: margin-left 0.28s cubic-bezier(0.4,0,0.2,1);
  animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   CARDS & STATS
   ============================================= */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Stat Card */
.stat-card {
  background: var(--navy-light);
  border: 1px solid rgba(66,165,245,0.14);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: cardSlideIn 0.5s ease both;
}

.stat-card:hover {
  border-color: rgba(66,165,245,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(10,22,40,0.5);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 0 var(--radius) 0 80px;
  opacity: 0.08;
}

.stat-card.blue::after   { background: var(--blue-light); }
.stat-card.teal::after   { background: #26c6da; }
.stat-card.green::after  { background: #66bb6a; }
.stat-card.orange::after { background: #ffa726; }
.stat-card.red::after    { background: #ef5350; }

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.stat-icon.blue   { background: rgba(33,150,243,0.18); color: var(--blue-light); }
.stat-icon.teal   { background: rgba(38,198,218,0.15); color: #26c6da; }
.stat-icon.green  { background: rgba(102,187,106,0.15); color: #66bb6a; }
.stat-icon.orange { background: rgba(255,167,38,0.15); color: #ffa726; }
.stat-icon.red    { background: rgba(239,83,80,0.15); color: #ef5350; }

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  counter-reset: none;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.up   { color: #66bb6a; }
.stat-change.down { color: #ef5350; }

/* Panel */
.panel {
  background: var(--navy-light);
  border: 1px solid rgba(66,165,245,0.13);
  border-radius: var(--radius);
  overflow: hidden;
  animation: cardSlideIn 0.5s ease both;
}

.panel-header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(66,165,245,0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-title i { color: var(--accent); font-size: 1rem; }

.panel-body { padding: 20px 22px; }

/* =============================================
   TABLE
   ============================================= */
.table-wrapper { overflow-x: auto; }

.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.855rem;
}

.dash-table th {
  background: rgba(10,22,40,0.6);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(66,165,245,0.14);
  white-space: nowrap;
}

.dash-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.dash-table tr:hover td { background: rgba(33,150,243,0.05); }
.dash-table tr:last-child td { border-bottom: none; }

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.badge-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-open     { background: rgba(33,150,243,0.18); color: #64b5f6; }
.badge-open::before { background: #64b5f6; }
.badge-closed   { background: rgba(102,187,106,0.15); color: #81c784; }
.badge-closed::before { background: #81c784; }
.badge-hold     { background: rgba(255,167,38,0.15); color: #ffb74d; }
.badge-hold::before { background: #ffb74d; }
.badge-pending  { background: rgba(255,167,38,0.15); color: #ffb74d; }
.badge-pending::before { background: #ffb74d; }
.badge-critical { background: rgba(239,83,80,0.15); color: #ef9a9a; }
.badge-critical::before { background: #ef9a9a; }

/* =============================================
   SYSTEM STATUS INDICATORS
   ============================================= */
.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.status-item:last-child { border-bottom: none; }

.status-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-main);
}

.status-label i { color: var(--accent); width: 18px; }

.status-bar-wrap { flex: 1; margin: 0 18px; }

.status-bar {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 5px;
  overflow: hidden;
}

.status-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.status-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: rgba(255,255,255,0.25);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  from { left: -60%; }
  to   { left: 110%; }
}

.status-pct { font-size: 0.78rem; font-weight: 700; color: var(--accent); min-width: 38px; text-align: right; }

/* Online dot */
.online-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #66bb6a;
  box-shadow: 0 0 8px #66bb6a;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border: none;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.4);
  color: var(--white);
}

.btn-warning-custom {
  background: linear-gradient(135deg, #f57c00, #fb8c00);
  border: none;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn-warning-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,124,0,0.4);
  color: var(--white);
}

.btn-success-custom {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  border: none;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn-success-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.4);
  color: var(--white);
}

.btn-danger-custom {
  background: linear-gradient(135deg, #c62828, #d32f2f);
  border: none;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn-danger-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(198,40,40,0.4);
  color: var(--white);
}

.btn-sm-custom {
  padding: 5px 12px;
  font-size: 0.76rem;
}

/* =============================================
   SIDEBAR COLLAPSED
   ============================================= */
body.sidebar-collapsed .sidebar { width: 0; overflow: hidden; }
body.sidebar-collapsed .topbar  { left: 0; }
body.sidebar-collapsed .main-content { margin-left: 0; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(66,165,245,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(66,165,245,0.38); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .topbar { left: 0; }
  .main-content { margin-left: 0; }
  .topbar-search input { width: 150px; }
  .topbar-search input:focus { width: 190px; }
}

@media (max-width: 576px) {
  .main-content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .topbar-search { display: none; }
  .profile-info { display: none; }
}

/* =============================================
   ALERT / TOAST
   ============================================= */
.dash-alert {
  background: rgba(33,150,243,0.1);
  border: 1px solid rgba(33,150,243,0.3);
  border-left: 3px solid var(--blue-light);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
}
.dash-alert i { color: var(--accent); margin-top: 1px; flex-shrink: 0; }

/* =============================================
   QUICK ACTION ITEMS
   ============================================= */
.quick-action {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}
.quick-action:last-child { margin-bottom: 0; }
.quick-action:hover {
  background: rgba(33,150,243,0.1);
  border-color: rgba(66,165,245,0.25);
  transform: translateX(4px);
}
.quick-action-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.quick-action-text { font-size: 0.85rem; color: var(--text-main); font-weight: 500; }
.quick-action-sub  { font-size: 0.73rem; color: var(--text-dim); }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-split-wrap {
  width: 100%;
  max-width: 1220px;
  min-height: 640px;
  background: rgba(17,34,64,0.92);
  border: 1px solid rgba(66,165,245,0.22);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(21,101,192,0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.login-visual-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(10,22,40,0.75), rgba(17,34,64,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px;
}

.login-visual-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(66,165,245,0.16), transparent 60%);
  pointer-events: none;
}

.login-visual-panel img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 12px;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.login-card {
  background: rgba(17,34,64,0.65);
  border: 1px solid rgba(66,165,245,0.2);
  border-radius: 18px;
  padding: 34px 30px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 10px 40px rgba(10,22,40,0.35);
  animation: fadeInUp 0.6s ease both;
}

.login-logo {
  text-align: left;
  margin-bottom: 24px;
}

.login-logo h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.login-logo p { font-size: 0.82rem; color: var(--text-dim); }

.form-label-custom { font-size: 0.8rem; font-weight: 600; color: var(--gray-mid); margin-bottom: 6px; letter-spacing: 0.5px; }

.form-control-custom {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(66,165,245,0.2);
  border-radius: 9px;
  color: var(--white);
  font-size: 0.88rem;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: var(--transition);
  font-family: 'Nunito', sans-serif;
}

/* Select Element Styling */
select.form-control-custom {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342a5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  cursor: pointer;
}

select.form-control-custom:focus {
  border-color: var(--accent);
  background-color: rgba(66,165,245,0.08);
  box-shadow: 0 0 0 3px rgba(66,165,245,0.12);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364b5f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}

select.form-control-custom option {
  background: var(--navy-light);
  color: var(--white);
  padding: 10px;
  border: none;
}

select.form-control-custom option:checked {
  background: linear-gradient(var(--blue), var(--blue));
  color: var(--white);
}

.form-control-custom:focus {
  border-color: var(--accent);
  background: rgba(66,165,245,0.08);
  box-shadow: 0 0 0 3px rgba(66,165,245,0.12);
}

.form-control-custom::placeholder { color: var(--text-dim); }

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border: none;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--accent));
  box-shadow: 0 6px 24px rgba(33,150,243,0.4);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .login-page {
    padding: 16px;
  }

  .login-split-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-visual-panel {
    padding: 20px;
    min-height: 250px;
  }

  .login-visual-panel img {
    max-height: 260px;
  }

  .login-form-panel {
    padding: 18px;
  }

  .login-card {
    max-width: 100%;
  }
}
