/* ===================================================
   AAuJob - Main Site Styles | TopCV-inspired Modern UI
   Bootstrap 5.3 + Inter + Font Awesome 6
   =================================================== */

/* ─── CSS VARIABLES ────────────────────────────────── */
:root {
  /* Override Bootstrap primary to brand color */
  --bs-primary:        #A11D21;
  --bs-primary-rgb:    161, 29, 33;
  --bs-link-color:     #A11D21;
  --bs-link-color-rgb: 161, 29, 33;
  --brand:          #A11D21;
  /* Legacy aliases (used by views.css) */
  --border-radius-xl: 14px;
  --border-radius-lg: 10px;
  --border-radius-md: 8px;
  --border-radius-sm: 6px;
  --brand-dark:     #7f1417;
  --brand-light:    #fff0f0;
  --brand-mid:      #fecaca;
  --primary:        #A11D21;
  --primary-dark:   #7f1417;
  --primary-light:  #fff0f0;
  --secondary:      #f97316;
  --success:        #16a34a;
  --text-main:      #111827;
  --text-body:      #374151;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;
  --bg-body:        #f5f5f5;
  --bg-white:       #ffffff;
  --bg-section:     #f9fafb;
  --border-color:   #e5e7eb;
  --border-light:   #f3f4f6;
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.10);
  --shadow-xl:      0 16px 48px rgba(0,0,0,0.12);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;
  --transition:     all 0.22s ease;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  font-size: 0.9375rem;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ─── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ─── TYPOGRAPHY ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--text-main); font-weight: 700; line-height: 1.35; }

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.2em;
  background: var(--brand);
  border-radius: 3px;
  flex-shrink: 0;
}
.section-title span { color: var(--brand); }
.section-title .sub {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Section header view-all link */
.view-all {
  font-size: 0.8rem; font-weight: 600; color: var(--brand);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; transition: opacity 0.15s;
}
.view-all:hover { opacity: 0.75; color: var(--brand); }
.hp-section-hd .view-all { font-size: 0.8rem; font-weight: 600; color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.hp-section-hd .view-all:hover { opacity: .75; }

/* ─── PAGE HEADER / BREADCRUMB ──────────────────────── */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-bottom: 0;
}
.page-header h1, .page-header .h4 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.breadcrumb { margin: 0; padding: 0; font-size: 0.8125rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--text-body); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border-color); }

/* ─── NAVBAR / HEADER ───────────────────────────────── */
.main-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.logo img { height: 34px; transition: var(--transition); }
.logo:hover img { opacity: 0.88; }

.navbar-nav .nav-link {
  color: var(--text-body) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.65rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.navbar-nav .nav-link i { font-size: 0.8rem; color: var(--text-light); transition: var(--transition); }
.navbar-nav .nav-link:hover { color: var(--brand) !important; background: var(--brand-light); }
.navbar-nav .nav-link:hover i { color: var(--brand); }

/* Dropdown menus */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  min-width: 220px;
  margin-top: 0.5rem !important;
}
.dropdown-item {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-section); color: var(--brand); }
.dropdown-item i { width: 18px; text-align: center; color: var(--text-light); }
.dropdown-item:hover i { color: var(--brand); }
.dropdown-divider { border-color: var(--border-color); margin: 0.3rem 0; }

/* User avatar in navbar */
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-mid);
}
.user-avatar-placeholder {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  border: 2px solid var(--brand-mid);
}

/* Employer navbar adjustments */
.navbar-employer .navbar-nav { flex-wrap: wrap; row-gap: 0.2rem; }
.navbar-employer .navbar-nav.ms-auto { flex-wrap: nowrap; gap: 0.1rem; }
@media (min-width: 992px) and (max-width: 1280px) {
  .navbar-employer .navbar-nav .nav-link { padding: 0.4rem 0.4rem !important; font-size: 0.82rem; }
  .navbar-employer .employer-utility-menu .dropdown-menu { min-width: 240px; }
}

/* Navbar toggler */
.navbar-toggler { border: 1.5px solid var(--border-color); padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); }
.navbar-toggler:focus { box-shadow: none; }

/* ─── BUTTONS ───────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1.5;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(161,29,33,0.25);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(161,29,33,0.35);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--brand);
  border: 2px solid var(--brand);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-employer {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,0.2);
}
.btn-employer:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
  transform: translateY(-1px);
}

.btn-light-primary {
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid var(--brand-mid);
}
.btn-light-primary:hover { background: var(--brand-mid); color: var(--brand-dark); }

.btn-primary-soft {
  background: var(--brand-light);
  color: var(--brand);
  border: none;
}
.btn-primary-soft:hover { background: var(--brand-mid); color: var(--brand-dark); transform: translateY(-1px); }

.btn-search {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(161,29,33,0.25);
}
.btn-search:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Icon-only save button */
.btn-save {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-section);
  color: var(--text-light);
  border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-save:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; transform: scale(1.08); }
.btn-save.saved { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

/* ─── FORMS ─────────────────────────────────────────── */
.form-control, .form-select {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  background: var(--bg-white);
  color: var(--text-main);
  transition: var(--transition);
}
.form-control::placeholder { color: var(--text-light); font-weight: 400; }
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(161,29,33,0.10);
  outline: none;
}
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0.4rem;
}
.form-text { font-size: 0.8rem; color: var(--text-muted); }

.input-group .input-group-text {
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.875rem;
}
.input-group .form-control:focus ~ .input-group-text,
.input-group .input-group-text:has(+ .form-control:focus) {
  border-color: var(--brand);
}

/* ─── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.card-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* ─── JOB CARDS (TopCV-inspired) ────────────────────── */
.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}
.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
  border-radius: 3px 0 0 3px;
}
.job-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 18px rgba(161,29,33,0.10);
  transform: translateY(-2px);
}
.job-card:hover::before { background: var(--brand); }
.job-card--featured {
  background: linear-gradient(to right, #fff8f8 0%, #fff 60%);
}
.job-card--featured::before { background: var(--brand); }

/* Card body layout */
.jc-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}

/* Logo */
.jc-logo-wrap {
  width: 60px; height: 60px;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: border-color 0.2s;
  text-decoration: none;
}
.job-card:hover .jc-logo-wrap { border-color: #fca5a5; }
.jc-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jc-logo-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #A11D21, #0f172a);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}

/* Content */
.jc-content { flex: 1; min-width: 0; }

/* Title row */
.jc-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.jc-badges { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.jc-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.jc-badge--hot { background: var(--brand); color: #fff; }
.jc-badge--urgent { background: #f59e0b; color: #fff; }

.jc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.18s;
  text-decoration: none;
}
.jc-title:hover { color: var(--brand); }

/* Save button */
.jc-save-form { flex-shrink: 0; margin-left: auto; }
.jc-save-btn {
  width: 30px; height: 30px;
  border-radius: 50%; border: 1.5px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
}
.jc-save-btn:hover { border-color: #fca5a5; color: #ef4444; background: #fef2f2; }
.jc-save-btn.saved { border-color: #fca5a5; color: #ef4444; background: #fef2f2; }

/* Company name */
.jc-company {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jc-company i { font-size: 0.7rem; flex-shrink: 0; }
.jc-company a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.jc-company a:hover { color: var(--brand); }

/* Tags row */
.jc-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.jc-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}
.jc-tag i { font-size: 0.65rem; }
.jc-tag--salary { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.jc-tag--location { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.jc-tag--type { background: #f9fafb; color: #4b5563; border: 1px solid #e5e7eb; }
.jc-tag--date { background: transparent; color: var(--text-light); border: none; padding-left: 2px; margin-left: auto; }

/* Legacy aliases (backward compat with Detail/other views) */
.company-logo-container {
  width: 68px; height: 68px; flex-shrink: 0;
  border-radius: var(--radius-md); border: 1px solid var(--border-light);
  background: var(--bg-white); padding: 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
}
.company-logo { width: 100%; height: 100%; object-fit: contain; }
.company-logo-placeholder {
  width: 100%; height: 100%;
  background: var(--brand-light); color: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem;
}
.job-title {
  font-weight: 700; font-size: 1rem; color: var(--text-main);
  display: block; line-height: 1.4; margin-bottom: 0.3rem;
  transition: var(--transition);
}
.job-title:hover { color: var(--brand); }
.company-name {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.35rem;
}
.company-name a { color: var(--text-muted); }
.company-name a:hover { color: var(--brand); }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.job-tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.775rem; font-weight: 600; padding: 0.25rem 0.7rem;
  border-radius: 20px; line-height: 1.4;
}
.job-tag-location { background: #f0fdf4; color: #15803d; }
.job-tag-type { background: #f3f4f6; color: #374151; }
.job-tag-salary { background: #f0fdf4; color: #16a34a; font-weight: 700; }
.job-tag-date { background: transparent; color: var(--text-light); padding-left: 0; margin-left: auto; }
.badge-hot { background: var(--brand); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 4px; }
.badge-urgent { background: #f59e0b; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 4px; }
.btn-save {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-white);
  color: var(--text-light); border: 1.5px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer; transition: var(--transition);
}
.btn-save:hover { background: #fef2f2; color: #ef4444; border-color: #fca5a5; }
.btn-save.saved { background: #fef2f2; color: #ef4444; border-color: #fca5a5; }

/* Salary text */
.salary { color: var(--success); font-weight: 700; }

/* ─── CATEGORY CARDS ────────────────────────────────── */
.category-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 0.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 0 0 12px 12px;
}
.category-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 6px 20px rgba(161,29,33,0.10);
  transform: translateY(-3px);
  color: var(--text-main);
}
.category-card:hover::after { transform: scaleX(1); }
.category-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.category-card:hover .category-icon { transform: scale(1.08); }
.category-card h6 { font-size: 0.82rem; font-weight: 600; margin: 0; line-height: 1.3; }
.category-card small { color: var(--text-light); font-size: 0.73rem; }

/* ─── STAT CARDS ────────────────────────────────────── */
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}
.stat-label { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }

/* ─── HERO / SEARCH SECTION ─────────────────────────── */
.search-section {
  background: linear-gradient(145deg, #A11D21 0%, #0f0f10 100%);
  padding: 80px 0;
  color: #fff;
}
.search-box {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ─── FILTER SIDEBAR ────────────────────────────────── */
.filter-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.filter-card .filter-header {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-card .filter-body { padding: 1.25rem; }
.filter-card .form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.4rem; }

/* ─── PAGINATION ────────────────────────────────────── */
.pagination { gap: 0.25rem; }
.page-link {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.8rem;
  transition: var(--transition);
  background: var(--bg-white);
}
.page-link:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(161,29,33,0.25);
}
.page-item.disabled .page-link { opacity: 0.5; }

/* ─── ALERTS ────────────────────────────────────────── */
.alert {
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.85rem 1.1rem;
}
.alert-success { background: #f0fdf4; color: #15803d; border-left: 4px solid #22c55e; }
.alert-danger { background: #fef2f2; color: #dc2626; border-left: 4px solid #ef4444; }
.alert-warning { background: #fffbeb; color: #d97706; border-left: 4px solid #f59e0b; }
.alert-info { background: #eff6ff; color: #1d4ed8; border-left: 4px solid #3b82f6; }

/* ─── BADGES ────────────────────────────────────────── */
.badge { font-weight: 600; letter-spacing: 0.2px; }

/* ─── TABLES ────────────────────────────────────────── */
.table { font-size: 0.875rem; }
.table th { font-weight: 700; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-section); border-bottom: 2px solid var(--border-color); }
.table td { vertical-align: middle; border-color: var(--border-light); }
.table-hover tbody tr:hover { background: var(--bg-section); }

/* ─── FOOTER ────────────────────────────────────────── */
.main-footer {
  background: #111827;
  color: #9ca3af;
  padding: 56px 0 0;
  margin-top: 80px;
}
.main-footer h5, .main-footer h6 {
  color: #f9fafb;
  font-weight: 700;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}
.main-footer a {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.8;
  display: inline-block;
}
.main-footer a:hover { color: #fff; padding-left: 4px; }
.main-footer .footer-brand img { height: 36px; filter: brightness(0) invert(1); opacity: 0.9; }
.main-footer .footer-desc { color: #6b7280; font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.2rem; }
.main-footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}
.main-footer .contact-item i { color: var(--brand); margin-top: 0.2rem; flex-shrink: 0; width: 16px; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
  transition: var(--transition);
  padding: 0;
}
.footer-social a:hover { background: var(--brand); color: #fff; padding-left: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.1rem 0;
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
}

/* ─── FAB SUPPORT BUTTON ─────────────────────────────── */
.fab-support-wrap {
  position: fixed; right: 22px; bottom: 24px;
  z-index: 9990;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.fab-trigger {
  width: 52px; height: 52px;
  border-radius: 50%; border: none;
  background: linear-gradient(135deg, #A11D21, #7f1417);
  color: #fff; font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(161,29,33,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  position: relative; z-index: 2;
}
.fab-trigger:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(161,29,33,0.55); }
.fab-trigger .fab-icon-close { display: none; }
.fab-support-wrap.open .fab-trigger .fab-icon-open { display: none; }
.fab-support-wrap.open .fab-trigger .fab-icon-close { display: inline; }
.fab-support-wrap.open .fab-trigger { background: linear-gradient(135deg, #374151, #1f2937); transform: rotate(90deg); }
.fab-menu {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 12px;
  pointer-events: none; opacity: 0;
  transform: translateY(16px) scale(0.85);
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.fab-support-wrap.open .fab-menu { pointer-events: auto; opacity: 1; transform: translateY(0) scale(1); }
.fab-item {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; font-size: 17px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  transition: var(--transition); border: none; cursor: pointer;
}
.fab-item:hover { transform: scale(1.12); color: #fff; }
.fab-item.zalo { background: linear-gradient(45deg, #0070cc, #1a9fff); }
.fab-item.comm { background: var(--brand); }
.fab-item.phone { background: linear-gradient(45deg, #16a34a, #22c55e); }
.fab-item.bot { background: linear-gradient(135deg, #A11D21, #0f172a); }

/* ─── ADMIN TOPBAR (in main layout) ─────────────────── */
.admin-topbar {
  background: #0f172a;
  color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1031;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.admin-topbar .admin-brand {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.admin-topbar .admin-brand .brand-badge {
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.admin-nav-link {
  color: #94a3b8 !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem !important;
  border-radius: 6px;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,0.08); color: #fff !important; }
.admin-nav-link i { font-size: 0.75rem; }
.admin-nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.12); margin: 0 4px; }
.admin-topbar .dropdown-menu {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
}
.admin-topbar .dropdown-item {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 7px 12px;
  display: flex; align-items: center; gap: 8px;
}
.admin-topbar .dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-topbar .dropdown-item i { width: 16px; text-align: center; }
.admin-topbar .dropdown-divider { border-color: rgba(255,255,255,0.1); }
.admin-user-chip {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 30px;
  background: rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.admin-user-chip:hover { background: rgba(255,255,255,0.13); }
.admin-user-chip .name { font-size: 0.82rem; font-weight: 600; color: #fff; }
.admin-user-chip .avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,0.25); }
.admin-user-chip .avatar-sm-ph { width: 28px; height: 28px; border-radius: 50%; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; border: 1.5px solid rgba(255,255,255,0.25); }

/* ─── ACTION GROUPS ─────────────────────────────────── */
.admin-action-group { display: flex; gap: 0.4rem; align-items: center; flex-wrap: nowrap; }
.admin-action-group .btn { white-space: nowrap; }
@media (max-width: 576px) { .admin-action-group { flex-wrap: wrap; } }

/* ─── MODAL ─────────────────────────────────────────── */
.modal-content { border: none; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.modal-header { border-bottom: 1px solid var(--border-light); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--border-light); padding: 1rem 1.5rem; }
.modal-title { font-weight: 700; font-size: 1.05rem; }

/* ─── MISC UTILITIES ─────────────────────────────────── */
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-light { background: var(--brand-light) !important; }
.border-brand { border-color: var(--brand) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

/* Branch modal items */
.branch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 991px) {
  .main-header .navbar-collapse {
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
  }
  .main-header .navbar-nav .nav-link { padding: 0.6rem 0.5rem !important; }
  .main-footer { padding-top: 40px; }
  .main-footer { margin-top: 48px; }
}

@media (max-width: 767px) {
  .section-title { font-size: 1.25rem; }
  .stat-number { font-size: 1.5rem; }
  .search-box { padding: 1.5rem; }
}

/* ─── HERO BANNER LINK ───────────────────────────────── */
.hero-banner-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; z-index: 1; }

/* ─── PAGE-SPECIFIC: Branch Map Modal ─────────────────── */
.btn-primary-soft { background: var(--brand-light); color: var(--brand); border: none; transition: var(--transition); }
.btn-primary-soft:hover { background: var(--brand-mid); color: var(--brand-dark); transform: translateY(-1px); }

/* ─── SMOOTH TRANSITIONS ─────────────────────────────── */
.fade-in { animation: fadeIn 0.35s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── UTILITY CLASSES ────────────────────────────────── */
.sz-48 { width: 48px !important; height: 48px !important; }
.sz-56 { width: 56px !important; height: 56px !important; }
.sz-64 { width: 64px !important; height: 64px !important; }
.sz-72 { width: 72px !important; height: 72px !important; }
.sz-80 { width: 80px !important; height: 80px !important; }
.fs-xs { font-size: 0.75rem; }
.fs-sm { font-size: 0.875rem; }
.fs-13 { font-size: 13px; }
.hover-primary:hover { color: var(--brand) !important; }
.min-w-0 { min-width: 0; }
.obj-cover { object-fit: cover; }

/* Text color utilities */
.text-brand { color: var(--brand) !important; }
.text-brand-muted { color: rgba(161,29,33,0.6) !important; }

/* ─── LIST GROUP MODERN ──────────────────────────────── */
.list-group-item {
  border-color: var(--border-light);
  font-size: 0.9rem;
  transition: var(--transition);
}
.list-group-item-action:hover { background: var(--bg-section); }
.list-group-item.fw-semibold { background: var(--brand-light); border-left: 3px solid var(--brand); }

/* ─── NOTIFICATION ITEMS ─────────────────────────────── */
.notif-item { border-radius: var(--radius-md); margin-bottom: 0.25rem; }
.notif-item:not(.is-read) { background: #fffdf0; border-left: 3px solid #f59e0b; }

/* ─── EMPTY STATE ────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .empty-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-section); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--text-light); }
.empty-state h5 { font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }
