@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");

:root {
  --bs-blue: #5E50F9;
  --bs-indigo: #6610f2;
  --bs-purple: #6a008a;
  --bs-pink: #E91E63;
  --bs-red: #f96868;
  --bs-orange: #f2a654;
  --bs-yellow: #f6e84e;
  --bs-green: #46c35f;
  --bs-teal: #58d8a3;
  --bs-cyan: #57c7d4;
  --bs-white: #ffffff;
  --bs-gray: #434a54;
  --bs-gray-light: #aab2bd;
  --bs-gray-lighter: #e8eff4;
  --bs-gray-lightest: #e6e9ed;
  --bs-gray-dark: #0f1531;
  --bs-black: #000000;

  --bs-primary: #1F3BB3;
  --bs-secondary: #F1F1F1;
  --bs-success: #34B1AA;
  --bs-info: #52CDFF;
  --bs-warning: #ffaf00;
  --bs-danger: #F95F53;
  --bs-light: #fbfbfb;
  --bs-dark: #1E283D;

  --bs-primary-rgb: 31, 59, 179;
  --bs-secondary-rgb: 241, 241, 241;
  --bs-success-rgb: 52, 177, 170;
  --bs-info-rgb: 82, 205, 255;
  --bs-warning-rgb: 255, 175, 0;
  --bs-danger-rgb: 249, 95, 83;

  --sidebar-width: 220px;
  --navbar-height: 97px;
  --bg-page: #F4F5F7;
  --font-family: 'Manrope', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background: var(--bg-page);
  color: #1F1F1F;
  -webkit-font-smoothing: antialiased;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.container-scroller { display: flex; flex-direction: column; min-height: 100vh; }

.page-body-wrapper {
  display: flex;
  flex-direction: row;
  padding-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
}

.main-panel {
  width: calc(100% - var(--sidebar-width));
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  transition: width 0.25s ease, margin 0.25s ease;
}

.content-wrapper {
  background: var(--bg-page);
  padding: 1.5rem 2.187rem;
  width: 100%;
  flex-grow: 1;
}

@media (max-width: 767px) {
  .content-wrapper { padding: 1.5rem; }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }
h6 { font-size: 0.812rem; }

a { color: var(--bs-primary); transition: color 0.2s ease; text-decoration: none; }
a:hover { color: #162d8a; text-decoration: underline; }

::selection { background: rgba(var(--bs-primary-rgb), 0.15); color: var(--bs-dark); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4c9d0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a8b4; }

/* ===== NAVBAR ===== */
.navbar.default-layout {
  background: var(--bg-page);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--navbar-height);
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  padding: 0;
}

.navbar .navbar-brand-wrapper {
  background: var(--bg-page);
  width: var(--sidebar-width);
  height: var(--navbar-height);
  padding: 20px 35px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.navbar .navbar-brand-wrapper .navbar-brand {
  color: #27367f;
  font-size: 1.5rem;
  margin-right: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
}

.navbar .navbar-brand-wrapper .navbar-brand i {
  color: var(--bs-primary);
  margin-right: 8px;
}

.navbar .navbar-menu-wrapper {
  background: var(--bg-page);
  color: #6C7383;
  padding: 30px 2.187rem 25px 3.5rem;
  width: calc(100% - var(--sidebar-width));
  height: var(--navbar-height);
  display: flex;
  align-items: flex-start;
}

.navbar .navbar-menu-wrapper .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar .navbar-menu-wrapper .navbar-nav.ms-auto { margin-left: auto; }

.navbar .navbar-menu-wrapper .navbar-nav .nav-item { margin-left: 1rem; }

.navbar .navbar-menu-wrapper .navbar-nav .nav-item .nav-link {
  color: #6C7383;
  font-size: 0.875rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-item .nav-link i {
  font-size: 1.25rem;
  color: #6C7383;
}

.navbar .navbar-menu-wrapper .welcome-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1F1F1F;
  margin: 0;
}

.navbar .navbar-menu-wrapper .welcome-sub-text {
  font-size: 0.75rem;
  color: #6C7383;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 991px) {
  .navbar .navbar-brand-wrapper { width: 55px; padding: 20px 0; }
  .navbar .navbar-menu-wrapper { width: calc(100% - 55px); padding: 12px 15px; height: auto; }
  .navbar .navbar-menu-wrapper .welcome-text { font-size: 0.875rem; }
  .navbar .navbar-menu-wrapper .welcome-sub-text { display: none; }
}

/* ===== SIDEBAR ===== */
.sidebar {
  min-height: calc(100vh - var(--navbar-height));
  background: var(--bg-page);
  font-family: var(--font-family);
  font-weight: 500;
  padding: 0;
  width: var(--sidebar-width);
  z-index: 11;
  transition: width 0.25s ease;
  position: fixed;
  left: 0;
  top: var(--navbar-height);
  bottom: 0;
  overflow-y: auto;
}

.sidebar .nav {
  overflow: hidden;
  flex-wrap: nowrap;
  flex-direction: column;
  margin-bottom: 60px;
  list-style: none;
  padding: 0;
}

.sidebar .nav .nav-item { transition-duration: 0.25s; }

.sidebar .nav .nav-item .nav-link {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 35px;
  color: #484848;
  border-radius: 0 20px 20px 0;
  transition-duration: 0.45s;
  font-weight: 400;
  font-size: 12px;
  text-decoration: none;
}

.sidebar .nav .nav-item .nav-link i.menu-icon {
  font-size: 22px;
  line-height: 1;
  margin-right: 1rem;
  color: #484848;
}

.sidebar .nav .nav-item .nav-link .menu-title { color: inherit; display: inline-block; font-size: 12px; line-height: 1; vertical-align: middle; }

.sidebar .nav .nav-item:hover > .nav-link,
.sidebar .nav .nav-item:hover > .nav-link i.menu-icon,
.sidebar .nav .nav-item:hover > .nav-link .menu-title { color: var(--bs-primary); }

.sidebar .nav .nav-item.active { border-radius: 0 20px 20px 0; }

.sidebar .nav .nav-item.active > .nav-link {
  background: #fff;
  font-weight: bold;
  font-size: 13px;
}

.sidebar .nav .nav-item.active > .nav-link i,
.sidebar .nav .nav-item.active > .nav-link .menu-title { color: var(--bs-primary); }

.sidebar .nav .nav-item.active > .nav-link .menu-title { font-size: 13px; }

.sidebar .nav .nav-item.nav-category {
  color: #404040;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin: 0 30px;
  font-size: 11px;
  font-weight: 700;
  padding: 20px 0 5px;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .sidebar { display: none; }
}

/* ===== CARDS ===== */
.card {
  box-shadow: 0 0 0 0 rgba(90,113,208,0.11), 0 4px 16px 0 rgba(167,175,183,0.33);
  border: none !important;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.card .card-body { padding: 1.5rem; }

.card .card-title {
  color: #010101;
  margin-bottom: 1.2rem;
  text-transform: capitalize;
  font-size: 1.125rem;
  font-weight: 600;
}

.card .card-title.card-title-dash {
  font-weight: 800;
  font-size: 16px;
  line-height: 22px;
  color: #1F1F1F;
  margin-bottom: 2px;
}

.card .card-description { margin-bottom: 0.875rem; font-weight: 400; color: #76838f; }

.card.card-tale { background: #7DA0FA; color: #fff; }
.card.card-dark-blue { background: #4747A1; color: #fff; }
.card.card-light-blue { background: #7978E9; color: #fff; }
.card.card-light-danger { background: #F3797E; color: #fff; }

.card.card-img-holder { position: relative; }
.card.card-img-holder .card-img-absolute { position: absolute; top: 0; right: 0; height: 100%; }

.card-rounded { border-radius: 15px; box-shadow: none; border: none; }

/* ===== STAT CARDS ===== */
.stat-card { border-radius: 4px !important; overflow: hidden; position: relative; }
.stat-card .card-body { padding: 1.25rem 1.5rem; position: relative; z-index: 1; }
.stat-card .stat-icon { position: absolute; top: 0.75rem; right: 0.85rem; font-size: 2rem; opacity: 0.12; color: #fff; pointer-events: none; }
.stat-card h6 { font-weight: 500; letter-spacing: 0.3px; opacity: 0.85; text-transform: uppercase; font-size: 0.65rem !important; margin-bottom: 0.2rem; color: inherit; }
.stat-card h2 { font-weight: 800; font-size: 1.6rem !important; margin-bottom: 0; color: inherit; }

/* ===== TABLES ===== */
.table { margin-bottom: 0; font-size: 0.85rem; }
.table thead th {
  background: #f8f9fa !important;
  color: #6C7383;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e9ecef;
  padding: 0.7rem 1rem;
}
.table tbody td { padding: 0.65rem 1rem; vertical-align: middle; border-bottom: 1px solid #f0f0f0; color: #484848; }
.table tbody tr { transition: background 0.2s ease; }
.table-hover tbody tr:hover { background: #f1f4ff; }

@media (max-width: 575.98px) {
  table.table-mobile-card thead { display: none; }
  table.table-mobile-card tbody tr {
    display: block;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #fff;
  }
  table.table-mobile-card tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }
  table.table-mobile-card tbody td:last-child { border-bottom: none; }
  table.table-mobile-card tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6C7383;
  }
}

/* ===== FORMS ===== */
.form-control {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 0.812rem;
  padding: 0.5rem 0.75rem;
  color: #1F1F1F;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.15);
}

.form-control-lg { padding: 0.75rem 1rem; font-size: 0.875rem; }

.form-label { font-size: 0.812rem; font-weight: 500; color: #484848; margin-bottom: 0.3rem; }

.input-group-text {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  font-size: 0.875rem;
  color: #6C7383;
}

/* ===== BUTTONS ===== */
.btn {
  font-size: 0.812rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.btn-primary:hover { background: #162d8a; border-color: #162d8a; color: #fff; }

.btn-success { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.btn-success:hover { background: #2a9e98; border-color: #2a9e98; color: #fff; }

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

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

.btn-info { background: var(--bs-info); border-color: var(--bs-info); color: #fff; }
.btn-info:hover { background: #3cc7ff; border-color: #3cc7ff; color: #fff; }

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

.btn-outline-secondary { color: #6C7383; border-color: #dee2e6; background: #fff; }
.btn-outline-secondary:hover { background: #f8f9fa; border-color: #c4c9d0; color: #484848; }

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.875rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-page);
  color: #6C7383;
  padding: 30px 2.45rem;
  transition: all 0.25s ease;
  font-size: 0.812rem;
  font-family: var(--font-family);
  font-weight: 400;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer a { color: var(--bs-primary); }

@media (max-width: 991px) {
  .footer { margin-left: 0; width: 100%; }
}

/* ===== BADGES ===== */
.badge {
  font-weight: 500;
  font-size: 0.65rem;
  padding: 0.25em 0.65em;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-severity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25em 0.65em;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 0.65rem;
  border-radius: 3px;
}

.badge-severity.critical { background: #fde8e8; color: #c62828; }
.badge-severity.high { background: #fff3e0; color: #e65100; }
.badge-severity.medium { background: #fff8e1; color: #f9a825; }
.badge-severity.low { background: #e8f5e9; color: #2e7d32; }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  text-transform: capitalize;
}

.badge-status.reported { background: #f1f1f1; color: #484848; }
.badge-status.acknowledged { background: #e3f2fd; color: #1565c0; }
.badge-status.dispatched { background: #e8eaf6; color: #283593; }
.badge-status.on_scene { background: #fff8e1; color: #f57f17; }
.badge-status.resolved { background: #e8f5e9; color: #2e7d32; }
.badge-status.false_alarm { background: #fce4ec; color: #c62828; }

/* ===== SEVERITY INDICATORS ===== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bs-success); margin-right: 6px; animation: pulse-dot 2s infinite; }
.live-dot.critical { background: var(--bs-danger); }
.live-dot.warning { background: var(--bs-warning); }

/* ===== AUTH PAGES ===== */
.auth-page {
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(167,175,183,0.33);
  padding: 2.5rem 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}

.auth-card .auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .auth-brand .brand-circle {
  width: 56px;
  height: 56px;
  background: var(--bs-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.auth-card .auth-brand .brand-circle i { color: #fff; font-size: 1.5rem; }

.auth-card .auth-brand h4 { font-weight: 700; font-size: 1.25rem; color: #1F1F1F; margin-bottom: 0.25rem; }

.auth-card .auth-brand p { color: #6C7383; font-size: 0.812rem; margin: 0; }

.auth-card .form-control { border-radius: 4px; }

.auth-card .btn { padding: 0.75rem 1.5rem; font-weight: 600; }

.auth-card .auth-link { color: #6C7383; font-size: 0.812rem; }

/* ===== LANDING NAVBAR ===== */
.top-nav {
  background: #1E283D !important;
  min-height: 56px;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.top-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff !important;
}

.top-nav .navbar-brand .accent {
  color: var(--bs-primary);
}

.btn-nav {
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  padding: 0.4rem 1.2rem !important;
  border-radius: 4px !important;
}

.btn-teal {
  background: var(--bs-teal) !important;
  border-color: var(--bs-teal) !important;
  color: #fff !important;
}
.btn-teal:hover {
  background: #3bcb8f !important;
  border-color: #3bcb8f !important;
  color: #fff !important;
}

.hero-section .accent {
  background: linear-gradient(135deg, #52CDFF, #58d8a3, #ffaf00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LANDING / HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #1E283D 0%, #1F3BB3 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 10% 55%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-section h1 .accent {
  background: linear-gradient(135deg, #52CDFF, #58d8a3, #ffaf00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .lead {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  color: #c4c9d0;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-btn-primary {
  background: var(--bs-danger);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  color: #fff;
  transition: all 0.2s ease;
}

.hero-btn-primary:hover { background: #f74a3c; transform: translateY(-2px); color: #fff; text-decoration: none; }

.hero-btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  color: #fff;
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }

.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-top: 2.5rem; }

.hero-stat { text-align: center; }

.hero-stat .stat-number { font-size: 1.5rem; font-weight: 800; color: #fff; display: block; }

.hero-stat .stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); }

/* ===== FEATURE CARDS ===== */
.section-heading { text-align: center; margin-bottom: 3rem; }

.section-heading h2 { font-weight: 800; font-size: 1.8rem; margin-bottom: 0.5rem; color: #1F1F1F; }

.section-heading p { color: #6C7383; max-width: 520px; margin: 0 auto; font-size: 0.9rem; }

.section-divider {
  height: 3px;
  border: none;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-success));
  border-radius: 2px;
  margin: 0 auto;
  width: 60px;
  opacity: 0.6;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(167,175,183,0.33);
  height: 100%;
  transition: all 0.25s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(167,175,183,0.4); }

.feature-card .icon-circle {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card .icon-circle.danger { background: #fde8e8; color: var(--bs-danger); }
.feature-card .icon-circle.primary { background: #eef0ff; color: var(--bs-primary); }
.feature-card .icon-circle.success { background: #e8f5e9; color: var(--bs-success); }
.feature-card .icon-circle.info { background: #e3f2fd; color: var(--bs-info); }

.feature-card h5 { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; color: #1F1F1F; }

.feature-card p { font-size: 0.812rem; color: #6C7383; margin-bottom: 0; line-height: 1.6; }

/* ===== CHATBOT ===== */
.chat-container { display: flex; flex-direction: column; height: 70vh; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-message { max-width: 80%; padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.875rem; line-height: 1.5; }
.chat-message.bot { align-self: flex-start; background: #f8f9fa; color: #1F1F1F; }
.chat-message.user { align-self: flex-end; background: var(--bs-primary); color: #fff; }
.chat-input-area { border-top: 1px solid #e9ecef; padding: 1rem; background: #fff; }

/* ===== PAGE TITLE ===== */
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-title h3 { font-weight: 700; font-size: 1.125rem; color: #1F1F1F; margin: 0; display: flex; align-items: center; gap: 0.5rem; }

.page-title h3 i { color: var(--bs-primary); }

.page-subtitle { color: #6C7383; font-size: 0.812rem; margin: 0; }

/* ===== ALERTS ===== */
.alert-inline { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.8rem; margin-bottom: 0.5rem; }

.notification-toast { border-radius: 4px; border: none; }
.notification-toast.toast-success { background: var(--bs-success); color: #fff; }
.notification-toast.toast-danger { background: var(--bs-danger); color: #fff; }
.notification-toast.toast-warning { background: var(--bs-warning); color: #fff; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .main-panel { width: 100%; }

  .content-wrapper { margin-left: 0; padding: 1rem; padding-top: 1.5rem; }

  .footer { margin-left: 0; padding: 20px 1.5rem; }

  .hero-section { padding: 3rem 0; }
  .hero-section h1 { font-size: 1.75rem; }
  .hero-section .lead { font-size: 0.875rem; }

  .hero-stats { gap: 1.5rem; }
  .hero-stat .stat-number { font-size: 1.25rem; }

  .stat-card h2 { font-size: 1.2rem !important; }
  .stat-card h6 { font-size: 0.6rem !important; }

  .auth-card { padding: 2rem 1.5rem; }

  .feature-card { padding: 1.5rem 1rem; }
  .feature-card .icon-circle { width: 52px; height: 52px; font-size: 1.2rem; margin-bottom: 0.75rem; }

  .page-title { flex-direction: column; align-items: flex-start; }

  .chat-message { max-width: 95%; }
}

/* ===== UTILITY ===== */
.grid-margin { margin-bottom: 1.5rem; }

.text-primary { color: var(--bs-primary) !important; }
.text-success { color: var(--bs-success) !important; }
.text-danger { color: var(--bs-danger) !important; }
.text-warning { color: var(--bs-warning) !important; }
.text-info { color: var(--bs-info) !important; }
.text-muted { color: #6C7383 !important; }

.bg-primary { background: var(--bs-primary) !important; }
.bg-success { background: var(--bs-success) !important; }
.bg-danger { background: var(--bs-danger) !important; }
.bg-warning { background: var(--bs-warning) !important; }
.bg-info { background: var(--bs-info) !important; }

.grid-margin { margin-bottom: 1.875rem; }

@media (min-width: 576px) {
  .d-sm-flex { display: flex !important; }
  .justify-content-sm-between { justify-content: space-between !important; }
  .text-sm-left { text-align: left !important; }
  .float-sm-end { float: right !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .mt-sm-0 { margin-top: 0 !important; }
}
