/* ============================================
   Digite SaaS — Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --primary:        #2E6BE6;
  --primary-light:  #4A87F5;
  --primary-dark:   #1A4DB3;
  --primary-bg:     #EBF1FD;
  --accent:         #38C19A;
  --accent-bg:      #E6F9F3;
  --danger:         #E85252;
  --danger-bg:      #FDECEC;
  --warning:        #F5A623;
  --warning-bg:     #FEF5E6;
  --sidebar-bg:     #0D1B36;
  --sidebar-hover:  #162847;
  --sidebar-active: #1E3560;
  --bg:             #EFF3FB;
  --surface:        #FFFFFF;
  --border:         #DDE5F4;
  --text-primary:   #18284A;
  --text-secondary: #556080;
  --text-muted:     #8E9BB7;
  --radius-sm:      8px;
  --radius-md:      13px;
  --radius-lg:      18px;
  --shadow-sm:      0 1px 3px rgba(14,27,58,0.06);
  --shadow-md:      0 4px 16px rgba(14,27,58,0.08);
  --shadow-lg:      0 8px 32px rgba(14,27,58,0.12);
  --transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font:           'Poppins', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* --- Layout Container --- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-body {
  flex: 1;
  padding: 28px 32px 40px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 24px 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand .brand-icon svg { width: 20px; height: 20px; }

.sidebar-brand .brand-info h2 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.sidebar-brand .brand-info span {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Nav sections */
.sidebar-nav { padding: 16px 0; flex: 1; }

.nav-section-label {
  padding: 12px 22px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.28);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0;
  position: relative;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  background: var(--primary);
  color: #fff;
  margin: 2px 12px;
  border-radius: var(--radius-sm);
  padding-left: 14px;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active svg { opacity: 1; }

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-footer .user-info { overflow: hidden; }

.sidebar-footer .user-info .name {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .user-info .role {
  color: rgba(255,255,255,0.35);
  font-size: 0.68rem;
  font-weight: 500;
}

/* Sidebar overlay (mobile) */
#sidebarOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 54, 0.5);
  z-index: 1035;
  backdrop-filter: blur(2px);
}

#sidebarOverlay.show { display: block; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.topbar-left .hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.topbar-left .hamburger svg { width: 22px; height: 22px; }

.topbar-left h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.topbar-left .breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topbar-left .breadcrumb-trail .sep { opacity: 0.4; }

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

.topbar-search {
  position: relative;
  width: 260px;
}

.topbar-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(46,107,230,0.1); }

.topbar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  position: relative;
}

.topbar-icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.topbar-icon-btn svg { width: 18px; height: 18px; }

.topbar-icon-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #fff;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
  cursor: pointer;
}

.topbar-user .avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
}

.topbar-user .user-label { line-height: 1.2; }
.topbar-user .user-label .name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.topbar-user .user-label .role { font-size: 0.68rem; color: var(--text-muted); }

/* ============================================
   STAT CARDS
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

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

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card .stat-icon svg { width: 22px; height: 22px; }

.stat-card .stat-icon.blue   { background: var(--primary-bg); color: var(--primary); }
.stat-card .stat-icon.green  { background: var(--accent-bg);  color: var(--accent); }
.stat-card .stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-card .stat-icon.red    { background: var(--danger-bg);  color: var(--danger); }

.stat-card .stat-info { flex: 1; }

.stat-card .stat-info .stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-card .stat-info .stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.stat-card .stat-info .stat-change {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
}

.stat-card .stat-info .stat-change.up { color: var(--accent); }
.stat-card .stat-info .stat-change.down { color: var(--danger); }

/* ============================================
   CONTENT CARD (Table wrapper)
   ============================================ */
.content-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  position: relative;
}

.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-track { background: var(--bg); }
.table-responsive::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.table-responsive::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.table-responsive .data-table { min-width: 700px; }

/* Scroll shadow hints */
.table-responsive.has-scroll-right { box-shadow: inset -12px 0 8px -10px rgba(14,27,58,0.06); }
.table-responsive.has-scroll-left  { box-shadow: inset 12px 0 8px -10px rgba(14,27,58,0.06); }
.table-responsive.has-scroll-both  { box-shadow: inset -12px 0 8px -10px rgba(14,27,58,0.06), inset 12px 0 8px -10px rgba(14,27,58,0.06); }

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.content-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.content-card-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0 24px;
}

.tab-btn {
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* Search bar */
.search-bar {
  position: relative;
  width: 280px;
}

.search-bar input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.84rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(46,107,230,0.1); }

.search-bar svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn { font-family: var(--font); font-weight: 600; border-radius: var(--radius-sm); transition: var(--transition); font-size: 0.84rem; padding: 9px 18px; display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,107,230,0.3); }

.btn-outline { background: #fff; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #d43d3d; color: #fff; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #2eab87; color: #fff; }

.btn-sm { padding: 6px 12px; font-size: 0.78rem; }

.btn svg { width: 16px; height: 16px; }

.btn .spinner-border { width: 16px; height: 16px; border-width: 2px; }

/* ============================================
   DATA TABLE
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 12px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table thead th .sort-icon {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.3;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: #F7F9FE; }

.data-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
}

.data-table td.muted { color: var(--text-muted); font-size: 0.82rem; }

/* User cell */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
}

.user-cell .user-details .name { font-weight: 600; color: var(--text-primary); }
.user-cell .user-details .email { font-size: 0.78rem; color: var(--text-muted); }

/* Avatar colors */
.avatar-0 { background: linear-gradient(135deg, #2E6BE6, #4A87F5); }
.avatar-1 { background: linear-gradient(135deg, #38C19A, #56D4B1); }
.avatar-2 { background: linear-gradient(135deg, #F5A623, #F7BD55); }
.avatar-3 { background: linear-gradient(135deg, #E85252, #EE7878); }
.avatar-4 { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.avatar-5 { background: linear-gradient(135deg, #EC4899, #F472B6); }

/* Action buttons in table */
.action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.action-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.action-btn svg { width: 15px; height: 15px; }

/* Status badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-status.success { background: var(--accent-bg); color: #1a8a6a; }
.badge-status.warning { background: var(--warning-bg); color: #c47f15; }
.badge-status.danger  { background: var(--danger-bg); color: #c23838; }
.badge-status.info    { background: var(--primary-bg); color: var(--primary); }

.badge-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 16px;
}

.empty-state h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Loading */
.loading-state {
  text-align: center;
  padding: 48px 20px;
}

.loading-state .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Error state */
.error-state {
  text-align: center;
  padding: 48px 20px;
}

.error-state svg {
  width: 48px;
  height: 48px;
  color: var(--danger);
  opacity: 0.6;
  margin-bottom: 12px;
}

.error-state h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.error-state p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-header .btn-close { opacity: 0.4; }
.modal-header .btn-close:hover { opacity: 0.8; }

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

/* Form elements */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  font-family: var(--font);
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,107,230,0.1);
  outline: none;
}

.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: 0.75rem; color: var(--danger); margin-top: 4px; display: none; }
.form-control.is-invalid ~ .invalid-feedback { display: block; }

/* Delete modal */
.delete-modal-body {
  text-align: center;
  padding: 10px 0;
}

.delete-modal-body .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--danger-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.delete-modal-body .icon-circle svg { width: 28px; height: 28px; color: var(--danger); }

.delete-modal-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.delete-modal-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.delete-modal-body .user-name {
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  padding: 14px 20px 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 380px;
}

.toast-msg svg { width: 18px; height: 18px; flex-shrink: 0; }

.toast-msg.success { background: #1a8a6a; }
.toast-msg.error   { background: var(--danger); }
.toast-msg.info    { background: var(--primary); }

.toast-msg.fade-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   DASHBOARD SHORTCUTS
   ============================================ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.quick-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-action-card svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 10px;
}

.quick-action-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.quick-action-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================
   MODULE VIEWS
   ============================================ */
.view-section { display: none; }
.view-section.active { display: block; animation: fadeIn 0.3s ease; }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar-left .hamburger { display: flex; }
  .topbar-search { display: none; }
  .topbar-user .user-label { display: none; }
}

@media (max-width: 768px) {
  .page-body { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .content-card-header { padding: 14px 16px; flex-direction: column; align-items: stretch; }
  .content-card-header .header-actions { flex-direction: column; }
  .content-card-header .header-actions > div { margin-left: 0 !important; width: 100%; justify-content: flex-end; }
  .data-table td, .data-table thead th { padding: 10px 14px; font-size: 0.82rem; }
  .search-bar { width: 100%; }
  .topbar-right .topbar-icon-btn:not(:first-child) { display: none; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-card { padding: 16px 18px; }
  .quick-actions { grid-template-columns: 1fr; }
  .data-table td, .data-table thead th { padding: 10px 12px; }
  .user-cell .user-details .email { display: none; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   UTILITY
   ============================================ */
.text-muted { color: var(--text-muted) !important; }
.text-primary-c { color: var(--primary) !important; }
.fw-600 { font-weight: 600; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mb-0 { margin-bottom: 0; }
