/* ============================================================
   Design System - Nhập liệu đất đai
   Colors: Primary #1a73e8, Surface #ffffff, Background #f0f2f5
   ============================================================ */

:root {
  --primary: #1a73e8;
  --primary-light: #e8f0fe;
  --primary-dark: #1557b0;
  --success: #0d904f;
  --success-light: #e6f4ea;
  --warning: #f9ab00;
  --warning-light: #fef7e0;
  --danger: #d93025;
  --danger-light: #fce8e6;
  --info: #1967d2;
  --info-light: #e8f0fe;
  --surface: #ffffff;
  --bg: #f0f2f5;
  --border: #dadce0;
  --border-light: #e8eaed;
  --text: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 56px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.06), 0 10px 30px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- TYPE ---- */
.fs-xs { font-size: .75rem; }
.fs-sm { font-size: .875rem; }
.fs-md { font-size: 1rem; }
.fs-lg { font-size: 1.25rem; }
.fs-xl { font-size: 1.5rem; }
.fs-2xl { font-size: 2rem; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

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

/* -- SIDEBAR -- */
.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #1a1f36 0%, #0f1420 100%);
  color: #c5c9d6;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  transition: width var(--transition), transform var(--transition);
  overflow: hidden;
}
.app-sidebar.collapsed {
  width: var(--sidebar-collapsed);
}
.sidebar-brand {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 12px;
  flex-shrink: 0;
}
.sidebar-brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.sidebar-brand-text {
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.app-sidebar.collapsed .sidebar-brand-text { display: none; }
.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  flex-shrink: 0;
}
.sidebar-user-info {
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-user-name { font-weight: 500; font-size: .85rem; color: #e8eaed; }
.sidebar-user-role { font-size: .75rem; color: #9aa0a6; }
.app-sidebar.collapsed .sidebar-user-info,
.app-sidebar.collapsed .sidebar-user { display: none; }
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}
.sidebar-section {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #5f6368;
  padding: 16px 8px 6px;
  white-space: nowrap;
  overflow: hidden;
}
.app-sidebar.collapsed .sidebar-section { display: none; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius);
  color: #c5c9d6;
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 2px;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}
.sidebar-link.active {
  background: var(--primary);
  color: #fff;
}
.sidebar-link svg, .sidebar-link .icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sidebar-link-text { font-size: .875rem; font-weight: 400; }
.app-sidebar.collapsed .sidebar-link-text { display: none; }
.app-sidebar.collapsed .sidebar-link { justify-content: center; padding: 10px; }

/* -- MAIN CONTENT -- */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
  min-height: 100vh;
}
.app-sidebar.collapsed ~ .app-main { margin-left: var(--sidebar-collapsed); }

/* -- HEADER -- */
.app-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-toggle {
  width: 36px; height: 36px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: background var(--transition);
}
.header-toggle:hover { background: var(--bg); }
.header-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-btn {
  width: 36px; height: 36px;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition);
  position: relative;
  font-size: 1.1rem;
}
.header-btn:hover { background: var(--bg); }
.header-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.page-content {
  padding: 24px;
  flex: 1;
}

/* ---- CARDS ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header-title { font-weight: 600; font-size: 1rem; }
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background: #f8f9fa;
}

/* ---- FORMS ---- */
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control, .form-select {
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  font-size: .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { height: auto; min-height: 80px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6368' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}
.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 2px; }
.is-invalid { border-color: var(--danger) !important; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 10px; font-size: .8rem; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0b7a3e; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c5221f; }
.btn-warning { background: var(--warning); color: #202124; }
.btn-warning:hover { background: #e8a000; }
.btn-outline-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary-light); }
.btn-outline-secondary { background: transparent; border-color: var(--border); color: var(--text-secondary); }
.btn-outline-secondary:hover { background: #f1f3f4; }
.btn-outline-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger-light); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }

/* ---- TABLES ---- */
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
table tbody tr:hover { background: #f8f9fa; }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: .75rem;
  font-weight: 500;
  border-radius: 100px;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: #e37400; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-neutral { background: #f1f3f4; color: var(--text-secondary); }

/* ---- ALERTS ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.alert-info { background: var(--info-light); color: #174ea6; border: 1px solid #d2e3fc; }
.alert-success { background: var(--success-light); color: #0d652d; border: 1px solid #ceead6; }
.alert-warning { background: var(--warning-light); color: #e37400; border: 1px solid #feefc3; }
.alert-danger { background: var(--danger-light); color: #a50e0e; border: 1px solid #f7d7d4; }

/* ---- STATS ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: #e37400; }
.stat-icon.purple { background: #f3e8fd; color: #7b1fa2; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: .8rem; color: var(--text-secondary); margin-top: 2px; }

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.section-subtitle { font-size: .85rem; color: var(--text-secondary); margin-top: 2px; }

/* ---- TABS ---- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  gap: 0;
  margin-bottom: 20px;
}
.tab {
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- FORM SECTION ---- */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border-light);
}
.form-section-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-section-title {
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 0 10px;
  flex: 1;
}
.form-section-body { padding: 20px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}
.form-row:last-child { margin-bottom: 0; }
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* ---- OWNER / LAND USE ROW ---- */
.owner-row, .land-use-row {
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  transition: box-shadow var(--transition);
}
.owner-row:hover, .land-use-row:hover { box-shadow: var(--shadow-sm); }
.row-actions {
  position: absolute;
  top: 8px;
  right: 8px;
}
.row-number {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---- FILE UPLOAD ---- */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: #fafafa;
}
.file-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.file-upload-area.has-file { border-style: solid; border-color: var(--success); background: var(--success-light); }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  margin-top: 16px;
}
.page-item {
  height: 32px; min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.page-item:hover { background: var(--bg); color: var(--text); }
.page-item.active { background: var(--primary); color: #fff; }
.page-item.disabled { opacity: .4; pointer-events: none; }

/* ---- DROPDOWN ---- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  padding: 4px;
  margin-top: 4px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.dropdown-item:hover { background: var(--bg); text-decoration: none; }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.15s ease;
}
.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 480px;
  max-width: 90vw;
  animation: slideUp 0.2s ease;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-weight: 600; font-size: 1rem; }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal-close {
  width: 32px; height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  background: none;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg); }

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

/* ---- TOGGLE SWITCH ---- */
.toggle {
  position: relative;
  width: 40px; height: 22px;
  cursor: pointer;
}
.toggle input { display: none; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  transition: background var(--transition);
}
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(18px); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.empty-state-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; color: var(--text-secondary); }
.empty-state-text { font-size: .85rem; }

/* ---- TOP RIGHT USER HEADER ---- */
.user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.user-header:hover { background: var(--bg); }
.user-header-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
}
.user-header-name { font-size: .85rem; font-weight: 500; }
.user-header-role { font-size: .75rem; color: var(--text-muted); }

/* ---- USER MENU DROPDOWN ---- */
.user-menu-wrapper {
  position: relative;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  background: var(--surface);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), box-shadow var(--transition);
}
.user-menu-btn:hover { background: var(--bg); box-shadow: var(--shadow-sm); }
.user-menu-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}
.user-menu-caret { font-size: .7rem; color: var(--text-muted); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  animation: slideUp 0.15s ease;
}
.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #1a1f36 0%, #0f1420 100%);
  color: #fff;
}
.user-dropdown-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.user-dropdown-name { font-weight: 600; font-size: .95rem; }
.user-dropdown-role { font-size: .75rem; color: #93c5fd; margin-top: 2px; }
.dropdown-section-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding: 10px 12px 4px;
}
.user-dropdown .dropdown-item { padding: 9px 12px; }
.user-dropdown .dropdown-item.danger { color: var(--danger); }
.user-dropdown .dropdown-item.danger:hover { background: var(--danger-light); }

/* ---- LOGIN PAGE ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #1a1f36 0%, #0f1420 100%);
}
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  color: #fff;
}
.login-left h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.login-left p { font-size: 1rem; color: #9aa0a6; line-height: 1.7; max-width: 460px; }
.login-features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.login-feature { display: flex; align-items: flex-start; gap: 12px; }
.login-feature-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(26,115,232,0.2);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.login-feature-text { font-size: .85rem; color: #c5c9d6; }
.login-feature-text strong { color: #fff; }
.login-right {
  width: 480px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.login-card .subtitle { color: var(--text-secondary); font-size: .85rem; margin-bottom: 24px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-main { margin-left: 0 !important; }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }
  .form-row { grid-template-columns: repeat(6, 1fr); }
  .login-left { display: none; }
  .login-right { width: 100%; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 12px; }
}
