/* =============================================================
   NÔPÉ DESIGN SYSTEM
   ============================================================= */

:root {
  --sidebar-w: 240px;
  --sidebar-bg: #182533;
  --sidebar-text: rgba(255,255,255,0.72);
  --sidebar-text-active: #ffffff;
  --sidebar-accent: #2E7D52;
  --sidebar-hover: rgba(255,255,255,0.07);

  --ground: #F6F6F4;
  --surface: #ffffff;
  --border: #E4E2DF;
  --text: #1A1A1A;
  --text-muted: #6B7280;

  --accent: #2E7D52;
  --accent-light: #E7F3ED;
  --accent-dark: #235F3E;

  --blue: #1E5BB5;
  --blue-light: #EAF0FB;
  --purple: #6935A4;
  --purple-light: #F1EBFA;
  --amber: #B45309;
  --amber-light: #FEF3C7;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);

  --topbar-h: 56px;
}

/* =============================================================
   RESET & BASE
   ============================================================= */

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ground);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text);
  margin-top: 0;
}

/* =============================================================
   APP LAYOUT
   ============================================================= */

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

/* --- Sidebar ------------------------------------------------- */
.app-sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-sidebar::-webkit-scrollbar { width: 3px; }
.app-sidebar::-webkit-scrollbar-track { background: transparent; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  flex-shrink: 0;
  gap: 6px;
}

.sidebar-logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.sidebar-logo-dot {
  width: 7px;
  height: 7px;
  background: var(--sidebar-accent);
  border-radius: 50%;
  margin-bottom: 1px;
  flex-shrink: 0;
}

.sidebar-label {
  padding: 16px 20px 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.sidebar-nav a.nuxt-link-active,
.sidebar-nav a.is-active {
  background: rgba(46,125,82,0.18);
  border-left-color: var(--sidebar-accent);
  color: var(--sidebar-text-active);
  font-weight: 500;
}

.sidebar-nav a .fa {
  width: 17px;
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
  flex-shrink: 0;
}

.sidebar-user {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sidebar-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-info strong {
  display: block;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-info small { color: var(--sidebar-text); font-size: 11px; }

/* --- Main area ---------------------------------------------- */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- Topbar -------------------------------------------------- */
.app-topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.topbar-search {
  position: relative;
}

.topbar-search input {
  width: 200px;
  padding: 6px 10px 6px 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--ground);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, width 0.2s;
  font-family: inherit;
}

.topbar-search input:focus {
  border-color: var(--accent);
  background: #fff;
  width: 240px;
}

.topbar-search .fa {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
}

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

.topbar-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.topbar-btn:hover { background: var(--ground); color: var(--text); }

/* Language dropdown */
.lang-dropdown { position: relative; }

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--ground);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s;
}

.lang-dropdown-toggle:hover { background: var(--border); }

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 148px;
  z-index: 200;
  overflow: hidden;
  display: none;
}

.lang-dropdown.open .lang-dropdown-menu { display: block; }

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-dropdown-item:hover { background: var(--ground); }

/* User menu */
.user-menu { position: relative; }

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.12s;
  color: var(--text);
}

.user-menu-trigger:hover { background: var(--ground); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-name { font-size: 13px; font-weight: 500; }

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 190px;
  z-index: 200;
  overflow: hidden;
  display: none;
}

.user-menu.open .user-dropdown-menu { display: block; }

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.user-dropdown-item:hover { background: var(--ground); }
.user-dropdown-item.danger { color: #dc2626; }
.user-dropdown-item .fa { width: 14px; color: var(--text-muted); font-size: 13px; }
.user-dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.user-dropdown-header { padding: 8px 16px 4px; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Page body */
.app-body { flex: 1; padding: 24px; overflow: auto; }
/* Full-bleed pages (chat, maps, etc.) opt out of padding */
.app-body:has(> .chat-layout) { padding: 0; overflow: hidden; }

/* =============================================================
   PAGE HEADER
   ============================================================= */

.page-header {
  margin: 0 0 20px;
  padding: 0 0 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.page-header small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: 0;
}

.breadcrumb > li + li::before {
  content: '/';
  padding: 0 4px;
  color: var(--border);
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .active { color: var(--text); }

/* =============================================================
   STAT CARDS
   ============================================================= */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stat-cards { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}

.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.stat-card-icon.green  { background: var(--accent-light); color: var(--accent); }
.stat-card-icon.blue   { background: var(--blue-light); color: var(--blue); }
.stat-card-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-card-icon.amber  { background: var(--amber-light); color: var(--amber); }

.stat-card-body { flex: 1; min-width: 0; }
.stat-card-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; }
.stat-card-value { font-size: 26px; font-weight: 700; color: var(--text); font-family: 'Courier New', monospace; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-card-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* Bootstrap widget-stats compat */
.widget.widget-stats {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 16px 18px !important;
  box-shadow: var(--shadow);
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent) !important;
}

.widget.widget-stats.bg-green  { border-left-color: var(--accent) !important; }
.widget.widget-stats.bg-blue   { border-left-color: var(--blue) !important; }
.widget.widget-stats.bg-purple { border-left-color: var(--purple) !important; }
.widget.widget-stats.bg-black  { border-left-color: var(--amber) !important; }
.widget.widget-stats.bg-orange { border-left-color: #ea7720 !important; }
.widget.widget-stats.bg-red    { border-left-color: #dc2626 !important; }

.widget.widget-stats .stats-icon { font-size: 28px; opacity: 0.3; color: var(--text); }
.widget.widget-stats .stats-icon-lg { margin-right: 0; }
.widget.widget-stats .stats-info { flex: 1; }
.widget.widget-stats .stats-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.widget.widget-stats .stats-number { font-size: 24px; font-weight: 700; font-family: 'Courier New', monospace; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.2; }
.widget.widget-stats .stats-progress { display: none; }
.widget.widget-stats .stats-desc { display: none; }

/* =============================================================
   CARDS / PANELS
   ============================================================= */

.card,
.panel,
.panel-inverse,
.panel-default,
.panel-with-tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  /* No overflow:hidden — would clip dropdown menus inside tables */
}

/* Clip only the heading corners so border-radius looks right */
.panel > .panel-heading:first-child {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.panel > .panel-footer:last-child {
  border-bottom-left-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

.card-header,
.panel-heading {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-heading.p-0 { padding: 0; }

.card-title, .panel-title,
.panel-heading h4, .panel-heading h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.card-body, .panel-body { padding: 18px; }
.panel-form { padding: 18px; }

.panel-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--ground);
}

.panel-heading-btn { float: right; margin-right: 8px; margin-top: 8px; }

/* =============================================================
   CONTENT AREA (pages use #content.content)
   ============================================================= */

#content.content {
  padding: 0;
  margin: 0;
  background: transparent;
  margin-top: 0 !important;
}

/* =============================================================
   TABLES
   ============================================================= */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  text-align: left;
  background: transparent;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover > td { background: var(--ground); }
.table-striped tbody tr:nth-child(odd) td { background: rgba(0,0,0,0.012); }
.table-condensed th, .table-condensed td { padding: 7px 12px; }
.table-bordered { border: 1px solid var(--border); }
.table-bordered th, .table-bordered td { border: 1px solid var(--border); }
.table-hover tbody tr:hover td { background: var(--ground); }

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s, box-shadow 0.13s;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  font-family: inherit;
}

.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-lg { padding: 10px 20px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 7px; font-size: 11px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-success { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-success:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-default, .btn-white {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-default:hover:not(:disabled), .btn-white:hover:not(:disabled) { background: var(--ground); }

.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.btn-info { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-info:hover:not(:disabled) { background: #1a4f9f; border-color: #1a4f9f; color: #fff; }

.btn-warning { background: #d97706; color: #fff; border-color: #d97706; }
.btn-warning:hover:not(:disabled) { background: var(--amber); border-color: var(--amber); color: #fff; }

.btn-inverse { background: var(--sidebar-bg); color: #fff; border-color: var(--sidebar-bg); }
.btn-inverse:hover:not(:disabled) { background: #1e3145; border-color: #1e3145; color: #fff; }

.btn-white-without-border { background: var(--surface); color: var(--text); border-color: transparent; }
.btn-white-without-border:hover { background: var(--ground); }

.btn-icon { width: 30px; height: 30px; padding: 0; flex-shrink: 0; }
.btn-circle { border-radius: 50%; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; border-right-width: 0; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-right-width: 1px; }

/* =============================================================
   FORMS
   ============================================================= */

.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  line-height: 1.5;
  font-family: inherit;
  appearance: auto;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.1);
}

.form-control[disabled], .form-control:disabled { background: var(--ground); color: var(--text-muted); }

.input-lg { padding: 10px 14px; font-size: 15px; border-radius: var(--radius); }

.form-group { margin-bottom: 14px; }
label, .control-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 5px; }

.form-horizontal .form-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.form-horizontal .control-label { padding-top: 9px; margin-bottom: 0; }

.form-bordered .form-group { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-bordered .form-group:last-child { border-bottom: none; }

fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
legend { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0 6px; width: auto; border: none; margin-bottom: 10px; }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group-addon, .input-group-btn { display: flex; }
.input-group-btn .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.checkbox label { font-weight: 400; display: flex; align-items: center; gap: 6px; }
.checkbox input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); }

/* =============================================================
   BADGES / LABELS
   ============================================================= */

.badge, .label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1.5;
}

.badge-success, .label-success { background: var(--accent-light); color: var(--accent); }
.badge-primary, .label-primary { background: var(--blue-light); color: var(--blue); }
.badge-warning, .label-warning { background: var(--amber-light); color: var(--amber); }
.badge-danger, .label-danger { background: #fee2e2; color: #dc2626; }
.badge-inverse, .label-inverse { background: #f3f4f6; color: #374151; }
.badge-default, .label-default { background: #f3f4f6; color: #374151; }
.badge-info, .label-info { background: var(--blue-light); color: var(--blue); }

/* =============================================================
   LIST GROUPS
   ============================================================= */

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

.list-group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  background: var(--surface);
  transition: background 0.1s;
}

.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover { background: var(--ground); }
.list-group-item-inverse { background: var(--surface); }

/* =============================================================
   TABS
   ============================================================= */

.nav-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  gap: 0;
  background: transparent;
}

.nav-tabs > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.nav-tabs > li > a:hover { color: var(--text); }
.nav-tabs > li.active > a { color: var(--accent); border-bottom-color: var(--accent); }

.tab-overflow { overflow-x: auto; }

.tab-content { }
.tab-pane { display: none; padding: 16px; }
.tab-pane.active.in { display: block; }

/* =============================================================
   DROPDOWNS (Bootstrap compat)
   ============================================================= */

.dropdown { position: relative; display: inline-block; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: none;
}

.open > .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu-right { right: 0 !important; left: auto !important; }
.dropdown-menu-left { left: 0 !important; right: auto !important; }

.dropdown-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.1s;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-menu > li > a:hover { background: var(--ground); color: var(--text); }
.dropdown-menu > li.divider, .divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; padding: 0; }
.dropdown-header { padding: 6px 14px; font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* =============================================================
   REGISTERED USERS LIST
   ============================================================= */

.registered-users-list {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.registered-users-list li { text-align: center; width: 56px; }

.registered-users-list img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.registered-users-list .username { font-size: 11px; font-weight: 500; margin: 4px 0 0; color: var(--text); }
.registered-users-list .username small { display: block; font-size: 10px; color: var(--text-muted); }

/* =============================================================
   AUTH PAGES
   ============================================================= */

.auth-layout {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  background: var(--sidebar-bg);
  position: relative;
  overflow: hidden;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

@media (min-width: 800px) { .auth-left { display: flex; } }

.auth-left-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

.auth-left-content { position: relative; z-index: 1; }

.auth-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.auth-logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--sidebar-accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: middle;
  margin-bottom: 8px;
}

.auth-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  line-height: 1.65;
  max-width: 360px;
}

.auth-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  background: var(--surface);
}

@media (min-width: 800px) { .auth-right { width: 440px; flex-shrink: 0; } }

.auth-box { width: 100%; max-width: 370px; }

.auth-box-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-box-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.auth-box-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.55; }

.auth-footer { text-align: center; margin-top: 28px; font-size: 12px; color: var(--text-muted); }
.auth-footer a { color: var(--text-muted); }

/* 2FA OTP */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-input {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
  font-family: 'Courier New', monospace;
}
.otp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,125,82,0.1); }

/* =============================================================
   BOOTSTRAP GRID COMPAT
   ============================================================= */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

[class*="col-"] { padding-left: 8px; padding-right: 8px; width: 100%; }

.col-md-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
.col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-md-3  { flex: 0 0 25%;      max-width: 25%; }
.col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-md-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-md-6  { flex: 0 0 50%;      max-width: 50%; }
.col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-md-9  { flex: 0 0 75%;      max-width: 75%; }
.col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-md-12 { flex: 0 0 100%;     max-width: 100%; }

.col-sm-6  { flex: 0 0 50%;  max-width: 50%; }
.col-sm-12 { flex: 0 0 100%; max-width: 100%; }

.col-md-offset-3  { margin-left: 25%; }
.col-md-offset-4  { margin-left: 33.3333%; }

@media (max-width: 767px) {
  [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
  .col-md-offset-3, .col-md-offset-4 { margin-left: 0; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

/* =============================================================
   UTILITIES
   ============================================================= */

.pull-right { float: right; }
.pull-left  { float: left; }
.clearfix::after { content: ''; display: table; clear: both; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--accent); }
.text-primary { color: var(--blue); }
.text-danger  { color: #dc2626; }
.text-warning { color: var(--amber); }
.text-inverse { color: var(--text-muted); }

.m-r-5  { margin-right: 5px !important; }
.m-r-10 { margin-right: 10px !important; }
.m-t-5  { margin-top: 5px !important; }
.m-t-10 { margin-top: 10px !important; }
.m-t-15 { margin-top: 15px !important; }
.m-t-20 { margin-top: 20px !important; }
.m-b-5  { margin-bottom: 5px !important; }
.m-b-10 { margin-bottom: 10px !important; }
.m-b-15 { margin-bottom: 15px !important; }
.m-b-30 { margin-bottom: 30px !important; }
.m-b-40 { margin-bottom: 40px !important; }
.m-b-0  { margin-bottom: 0 !important; }
.p-b-40 { padding-bottom: 40px !important; }
.p-b-0  { padding-bottom: 0 !important; }
.p-0    { padding: 0 !important; }

.hidden-xs { }
@media (max-width: 480px) { .hidden-xs { display: none; } }

.full-width { width: 100%; }
.margin-bottom-0 { margin-bottom: 0; }
.ui-sortable { }
.ui-sortable-handle { }

.bg-silver { background: var(--ground) !important; }
.bg-black  { background: var(--sidebar-bg) !important; }

/* =============================================================
   PROGRESS BAR
   ============================================================= */

.progress {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-sm { height: 5px; }
.progress-lg { height: 14px; }
.progress-striped .progress-bar { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 10px, transparent 10px, transparent 20px); }

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-bar-success { background: var(--accent); }
.progress-bar-warning { background: var(--amber); }
.progress-bar-danger  { background: #dc2626; }
.progress-bar-info    { background: var(--blue); }

/* =============================================================
   SIDEBAR ROLE BADGE
   ============================================================= */

.sidebar-role {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(46,125,82,0.25);
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-role.admin { background: rgba(234,119,32,0.25); }
.sidebar-role.superadmin { background: rgba(105,53,164,0.25); }

/* =============================================================
   PAGE CONTENT (narrow forms)
   ============================================================= */

.page-content-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Profile hero */
.profile-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
}

.profile-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-hero-info { flex: 1; }
.profile-hero-name { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.profile-hero-email { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.profile-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.profile-completion { font-size: 11.5px; color: var(--text-muted); }
.profile-completion .progress { width: 120px; display: inline-block; margin-bottom: 0; vertical-align: middle; margin-right: 6px; }

/* =============================================================
   SWITCH TOGGLE (profile settings)
   ============================================================= */

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.switch-row:last-child { border-bottom: none; }
.switch-row-label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.switch-row-sub { font-size: 12px; color: var(--text-muted); }

/* =============================================================
   BOOTSTRAP-VUE OVERRIDES (loaded via global.client.js plugin)
   BootstrapVue injects its own CSS — these selectors win by
   being more specific or by targeting the same classes last.
   ============================================================= */

/* Reset BV body color override */
body { color: var(--text) !important; background-color: var(--ground) !important; }

/* BV card overrides → same as our .panel */
.card { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; }
.card-header { background: transparent !important; border-bottom: 1px solid var(--border) !important; padding: 13px 18px !important; }
.card-body { padding: 18px !important; }

/* BV button overrides */
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active { background-color: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.btn-success, .btn-success:not(:disabled):not(.disabled):active { background-color: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }

/* BV form controls */
.form-control:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(46,125,82,0.1) !important; }
.form-control-sm { font-size: 13px !important; padding: 5px 10px !important; height: auto !important; }

/* BV table */
.table th { background-color: transparent !important; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,0.012) !important; }
.table-hover tbody tr:hover { background-color: var(--ground) !important; }

/* BV dropdown */
.dropdown-item { font-size: 13px !important; padding: 7px 14px !important; color: var(--text) !important; }
.dropdown-item:hover, .dropdown-item:focus { background-color: var(--ground) !important; color: var(--text) !important; }
.dropdown-menu { border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-md) !important; padding: 4px 0 !important; }

/* dropdown-menu-right alignment */
.dropdown-menu-right { right: 0; left: auto; }

/* =============================================================
   NAVBAR / OLD HEADER (hidden — sidebar replaces)
   ============================================================= */

#header.header.navbar { display: none !important; }
#top-menu.top-menu { display: none !important; }

/* Old page-container classes that conflict with new layout */
.page-container { padding-top: 0 !important; }
.page-header-fixed #content { padding-top: 0 !important; }

/* =============================================================
   SCROLLBAR
   ============================================================= */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.13); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }

/* =============================================================
   OLD DASHBOARD WIDGETS (hidden in favour of new design)
   ============================================================= */

.widget-chart.with-sidebar { display: none !important; }
#visitors-map, #visitors-donut-chart, #visitors-line-chart { display: none !important; }

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 767px) {
  .app-sidebar { transform: translateX(-100%); transition: transform 0.22s ease; }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .app-body { padding: 14px; }
  .topbar-search { display: none; }
}

/* =============================================================
   TABLES — ENHANCED
   ============================================================= */

/* Wrap table in a panel so it looks contained */
.panel-body .table,
.panel-body > .dataTables_wrapper .table {
  margin-bottom: 0;
}

/* Row action buttons — direct icons, no dropdown */
.row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}
.row-actions .btn-xs {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.row-actions .btn-xs:hover { opacity: 1; }
tr:not(:hover) .row-actions .btn-xs { opacity: 0.4; }

/* Rounded-circle avatar in table */
.rounded-circle { border-radius: 50% !important; object-fit: cover; }

/* =============================================================
   PAGINATION
   ============================================================= */

.pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination li,
.pagination .paginate_button {
  display: inline-flex;
}

.pagination li a,
.pagination .paginate_button a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--surface);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  cursor: pointer;
}

.pagination li a:hover,
.pagination .paginate_button a:hover {
  background: var(--ground);
  border-color: var(--accent);
  color: var(--accent);
}

.pagination li.active a,
.pagination .paginate_button.active a {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}

.pagination li.disabled a,
.pagination .paginate_button.disabled a {
  color: var(--text-muted);
  cursor: not-allowed;
  background: var(--ground);
  border-color: var(--border);
  pointer-events: none;
}

/* dataTables info bar */
.dataTables_info {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 6px;
}

.dataTables_wrapper > .row {
  align-items: center;
  margin-top: 14px;
  padding: 0 2px;
}

/* =============================================================
   TOOLBAR (PaginatePageNew toolbar)
   ============================================================= */

.page-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* =============================================================
   RESULT LIST (property cards view)
   ============================================================= */

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

.result-list li {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

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

.result-image { flex-shrink: 0; }
.result-image img { border-radius: var(--radius); object-fit: cover; width: 150px; height: 110px; }

.result-info { flex: 1; }
.result-info .title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.result-info .title a { color: var(--text); text-decoration: none; }
.result-info .title a:hover { color: var(--accent); }
.result-info .location { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.result-info .desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.result-info .btn-row { display: flex; gap: 8px; margin-top: 10px; }
.result-info .btn-row a { color: var(--text-muted); font-size: 16px; transition: color 0.12s; }
.result-info .btn-row a:hover { color: var(--accent); }

.result-price {
  flex-shrink: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  padding-top: 4px;
}

/* =============================================================
   MISC COMPAT
   ============================================================= */

/* Modal body padding (panel-form inside modal) */
.nope-modal-body .panel-body,
.nope-modal-body .panel-form { padding: 20px; }
.nope-modal-body .panel-body .form-group:last-child { margin-bottom: 0; }

small { font-size: 11.5px; color: var(--text-muted); }

.fa-fw { width: 1.2857em; text-align: center; }

.draggable-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 5px 0;
  padding: 10px;
  background: var(--ground);
  cursor: move;
}

.draggable-item.is-dragging { opacity: 0.6; border: 2px dashed var(--accent); background: #fff; }

/* Bootstrap media compat */
.media { display: flex; gap: 12px; align-items: flex-start; }
.media-left { flex-shrink: 0; }
.media-body { flex: 1; }
.media-heading { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.media-object { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.media-object.bg-red { background: #dc2626; }
.media-object.bg-green { background: var(--accent); }
.media-object.bg-blue { background: var(--blue); }

/* =============================================================
   MODAL FORMS — fluid layout for add/edit modals
   ============================================================= */

/* Form inside a modal: consistent padding and spacing */
.modal-form {
  padding: 4px 0;
}

/* Section divider with a label */
.form-section {
  margin-bottom: 20px;
}
.form-section + .form-section {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.form-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Required field asterisk */
.req { color: #dc2626; font-size: 11px; margin-left: 2px; }

/* Action row at the bottom of a modal form */
.modal-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

/* Outlined accent button (used for "next step" actions) */
.btn-outline-accent {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
}

/* Fluid form controls */
.form-control {
  border-radius: var(--radius-sm) !important;
  border-color: var(--border) !important;
  font-size: 13px !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}
.form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(46,125,82,0.12) !important;
  outline: none !important;
}
.form-control[disabled],
.form-control:disabled {
  background: var(--ground) !important;
  opacity: 0.7;
}

/* Fieldset legend styling (settings / profile pages) */
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px 0;
}
fieldset legend {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* Toggle switch design */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  vertical-align: middle;
  margin: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  transition: 0.25s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .slider { background: var(--accent); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Form group label spacing */
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== NOTIFICATION BELL ===== */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: #e53935;
  color: #fff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 3px;
  text-align: center;
}
.notif-dropdown { position: relative; }
.notif-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 2000;
  overflow: hidden;
}
.notif-dropdown.open .notif-menu { display: block; }
.notif-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}
.notif-mark-read {
  font-size: 11px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.notif-item:hover { background: var(--ground); }
.notif-item.unread { background: rgba(46,125,82,0.04); }
.notif-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.notif-icon.green { background: rgba(46,125,82,0.12); color: var(--accent); }
.notif-icon.red { background: rgba(211,33,33,0.1); color: #d32f2f; }
.notif-icon.blue { background: rgba(21,101,192,0.1); color: #1565c0; }
.notif-icon.amber { background: rgba(245,127,23,0.1); color: #e65100; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-sidebar { transform: translateX(-100%); transition: transform 0.25s; z-index: 1100; }
  .app-sidebar.mobile-open { transform: translateX(0); }
  .app-main { margin-left: 0 !important; width: 100% !important; }
  .app-topbar { padding: 0 12px; }
  .topbar-search { display: none; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .content { padding: 12px !important; }
  #content.content { padding: 12px !important; }
  .panel { border-radius: 8px; }
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .row-actions { opacity: 1 !important; }
  .row-actions .btn-xs { opacity: 1 !important; }
  #content.content > .row { margin: 0 -8px; }
  table { font-size: 12px; }
  .table-responsive { overflow-x: auto; }
  .page-header { font-size: 18px; margin: 8px 0 16px; }
  .user-menu-name { display: none; }
  .notif-menu { width: 280px; right: -60px; }
  .registered-users-list { flex-wrap: wrap; }
  .registered-users-list li { width: 50%; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .notif-menu { width: 260px; right: -80px; }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; align-items: center; }
}

/* Table wrapper responsive */
.paginate-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Property/Tenant form on mobile */
@media (max-width: 768px) {
  #content.content[style*="padding-left: 20%"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
