/* ===================================================
   ARTCHA MANAGER PRO — Design System v2
   Font: Inter (Google Fonts)
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===================================================
   DESIGN TOKENS
=================================================== */
:root {
  /* Sidebar */
  --sidebar-bg-from:   #0a1628;
  --sidebar-bg-to:     #0f2d52;
  --sidebar-hover:     rgba(255,255,255,.07);
  --sidebar-active-bg: rgba(99,179,237,.18);
  --sidebar-active-border: #63b3ed;
  --sidebar-width:     260px;

  /* Brand colors */
  --primary:           #2563eb;
  --primary-dark:      #1d4ed8;
  --primary-light:     #dbeafe;
  --primary-glow:      rgba(37,99,235,.25);

  /* Semantic */
  --success:           #10b981;
  --success-light:     #d1fae5;
  --warning:           #f59e0b;
  --warning-light:     #fef3c7;
  --danger:            #ef4444;
  --danger-light:      #fee2e2;
  --info:              #3b82f6;
  --info-light:        #dbeafe;

  /* Surfaces */
  --bg:                #f1f5f9;
  --surface:           #ffffff;
  --surface-2:         #f8fafc;
  --border:            #e2e8f0;
  --border-light:      #f1f5f9;

  /* Text */
  --text:              #0f172a;
  --text-secondary:    #334155;
  --text-muted:        #64748b;
  --text-faint:        #94a3b8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 1px 4px rgba(15,23,42,.08), 0 0 0 1px rgba(15,23,42,.03);
  --shadow:    0 4px 12px rgba(15,23,42,.10), 0 0 0 1px rgba(15,23,42,.03);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12), 0 0 0 1px rgba(15,23,42,.04);
  --shadow-xl: 0 20px 48px rgba(15,23,42,.16);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: .18s cubic-bezier(.4,0,.2,1);

  /* Topbar */
  --topbar-h: 62px;

  /* Color alias used in templates */
  --primary-color: var(--primary);
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================================
   SCROLLBAR
=================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===================================================
   LAYOUT
=================================================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===================================================
   SIDEBAR
=================================================== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sidebar-bg-from) 0%, var(--sidebar-bg-to) 100%);
  color: #e2eaf5;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
  border-right: 1px solid rgba(255,255,255,.04);
}

.sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}

.sidebar-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.4), 0 0 0 2px rgba(255,255,255,.1);
  letter-spacing: -1px;
}

.sidebar-brand-text {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.3px;
}

.sidebar-brand-sub {
  color: rgba(255,255,255,.4);
  font-size: 10.5px;
  font-weight: 400;
  display: block;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Sections */
.sidebar-section {
  padding: 14px 12px 4px;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.22);
  padding: 0 10px;
  margin-bottom: 4px;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav .nav-item {
  margin-bottom: 2px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
  position: relative;
  border-left: 2px solid transparent;
}

.sidebar-nav .nav-link i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

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

.sidebar-nav .nav-link:hover i {
  transform: translateX(1px);
}

.sidebar-nav .nav-link.active {
  background: var(--sidebar-active-bg);
  color: #93c5fd;
  border-left-color: var(--sidebar-active-border);
  font-weight: 600;
}

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

/* Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sidebar-footer .nav-link {
  color: rgba(255,255,255,.45);
  font-size: 13px;
}

.sidebar-footer .nav-link:hover {
  color: rgba(255,255,255,.8);
  background: rgba(239,68,68,.12);
}

/* ===================================================
   MAIN CONTENT
=================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

/* ===================================================
   TOPBAR
=================================================== */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.topbar-icon-btn:hover {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--primary-light);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}

.user-badge:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-role-badge {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 500;
  background: var(--border);
  padding: 1px 7px;
  border-radius: 10px;
}

/* ===================================================
   PAGE CONTENT
=================================================== */
.page-content {
  padding: 28px;
  flex: 1;
}

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -.4px;
}

.breadcrumb {
  font-size: 12px;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-faint);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* ===================================================
   CARDS
=================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h5, .card-header h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.card-body {
  padding: 22px;
}

.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--surface-2);
}

/* ===================================================
   STAT CARDS
=================================================== */
.stat-card {
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.04));
  transition: opacity var(--transition);
}

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

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

.stat-card-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -.5px;
}

.stat-card-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.stat-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ===================================================
   TABLES
=================================================== */
.table {
  font-size: 13.5px;
  margin-bottom: 0;
  --bs-table-hover-bg: #f8faff;
}

.table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 11px 16px;
  white-space: nowrap;
}

.table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.table-hover tbody tr {
  transition: background var(--transition);
}

.table-hover tbody tr:hover td {
  background: #f5f8ff;
  color: var(--text);
}

/* ===================================================
   FORMS
=================================================== */
.form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-control,
.form-select {
  font-size: 13.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  line-height: 1.5;
}

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

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
  background: var(--surface);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: none;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.invalid-feedback {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

.form-text {
  font-size: 12px;
  color: var(--text-faint);
}

.input-group-text {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  transition: all var(--transition);
  letter-spacing: .1px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16,185,129,.25);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16,185,129,.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  border: none;
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 12px rgba(239,68,68,.3);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-primary {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-outline-secondary {
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: #94a3b8;
}

.btn-outline-success {
  color: var(--success);
  border: 1.5px solid var(--success);
}

.btn-outline-success:hover {
  background: var(--success);
  color: #fff;
}

.btn-outline-danger {
  color: var(--danger);
  border: 1.5px solid var(--danger);
}

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

.btn-outline-warning {
  color: #b45309;
  border: 1.5px solid var(--warning);
}

.btn-outline-warning:hover {
  background: var(--warning);
  color: #fff;
  border-color: var(--warning);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #fff;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

/* ===================================================
   BADGES
=================================================== */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  letter-spacing: .2px;
  white-space: nowrap;
}

/* Custom soft badges */
.badge-success  { background: var(--success-light);  color: #065f46; }
.badge-warning  { background: var(--warning-light);  color: #92400e; }
.badge-danger   { background: var(--danger-light);   color: #991b1b; }
.badge-info     { background: var(--info-light);     color: #1e40af; }
.badge-primary  { background: var(--primary-light);  color: var(--primary-dark); }
.badge-secondary{ background: #f1f5f9;               color: #475569; }

/* Bootstrap bg- badges override for soft look */
.bg-success { background: var(--success-light)  !important; color: #065f46 !important; }
.bg-warning { background: var(--warning-light)  !important; color: #92400e !important; }
.bg-danger  { background: var(--danger-light)   !important; color: #991b1b !important; }
.bg-info    { background: var(--info-light)     !important; color: #1e40af !important; }
.bg-primary { background: var(--primary-light)  !important; color: var(--primary-dark) !important; }
.bg-secondary{ background: #f1f5f9 !important;  color: #475569 !important; }

/* ===================================================
   ALERTS
=================================================== */
.alert {
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 13.5px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: var(--success-light);
  color: #065f46;
  border-left-color: var(--success);
}

.alert-danger {
  background: var(--danger-light);
  color: #991b1b;
  border-left-color: var(--danger);
}

.alert-info {
  background: var(--info-light);
  color: #1e40af;
  border-left-color: var(--info);
}

.alert-warning {
  background: var(--warning-light);
  color: #92400e;
  border-left-color: var(--warning);
}

/* ===================================================
   PAGINATION
=================================================== */
.pagination {
  font-size: 13px;
  gap: 3px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-link {
  border-radius: var(--radius-sm) !important;
  border-color: var(--border);
  color: var(--primary);
  padding: 7px 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ===================================================
   PROGRESS BARS
=================================================== */
.progress {
  border-radius: 10px;
  background: var(--border-light);
  overflow: hidden;
}

.progress-bar {
  border-radius: 10px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* ===================================================
   EMPTY STATES
=================================================== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .3;
  display: block;
}

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

.empty-state-desc {
  font-size: 13px;
  color: var(--text-faint);
  max-width: 320px;
  margin: 0 auto 20px;
}

/* ===================================================
   FILTER BAR
=================================================== */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

/* ===================================================
   TOPBAR DIVIDER
=================================================== */
.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

/* ===================================================
   UTILITY OVERRIDES
=================================================== */
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }

hr {
  border-color: var(--border);
  opacity: 1;
  margin: 18px 0;
}

a {
  color: var(--primary);
  transition: color var(--transition);
}

code {
  background: var(--border-light);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: #e11d48;
}

dl.row dt { font-weight: 500; color: var(--text-muted); font-size: 13px; padding-bottom: 8px; }
dl.row dd { font-size: 13.5px; color: var(--text); padding-bottom: 8px; }

/* ===================================================
   PAGE TRANSITIONS
=================================================== */
.page-content {
  animation: fadeSlideIn .22s cubic-bezier(.4,0,.2,1) both;
}

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

/* ===================================================
   LOGIN PAGE — standalone (no sidebar)
=================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.login-panel-left {
  flex: 1;
  background: linear-gradient(145deg, #0a1628 0%, #0f2d52 50%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.login-panel-left::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.login-panel-left::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,179,237,.12) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

.login-brand-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 8px 28px rgba(37,99,235,.5), 0 0 0 4px rgba(255,255,255,.1);
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}

.login-brand-name {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.login-brand-sub {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  letter-spacing: .5px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.login-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
}

.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.login-feature-list li:last-child {
  border-bottom: none;
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.login-panel-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--surface);
}

.login-form-wrap {
  width: 100%;
  max-width: 380px;
}

.login-form-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.5px;
}

.login-form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.login-form-wrap .form-control {
  padding: 11px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.login-form-wrap .form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}

.login-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: all var(--transition);
  letter-spacing: .1px;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 992px) {
  .login-panel-left { display: none; }
  .login-panel-right { width: 100%; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,.25);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 99;
  }

  .sidebar.open ~ .sidebar-overlay,
  .sidebar-overlay.show {
    display: block;
  }

  .page-content {
    padding: 16px;
  }

  .topbar {
    padding: 0 16px;
  }
}

@media (max-width: 576px) {
  .stat-card-value { font-size: 22px; }
  .page-title { font-size: 18px; }
}
