/**
 * Minh Thư BRVT – Modern Design System & PetroTech Styles
 * Giao diện hiện đại, chuyên nghiệp cho hệ thống quản lý xăng dầu & trạm cân
 */

:root {
  /* Brand Primary: Petro Blue */
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(3, 105, 161, 0.03) 100%);
  
  /* Fuel & Industrial Accents */
  --fuel-a95: #f59e0b;
  --fuel-a95-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --fuel-e5: #10b981;
  --fuel-e5-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --fuel-do: #2563eb;
  --fuel-do-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --fuel-nhot: #8b5cf6;
  --fuel-nhot-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  
  /* Neutral Slate Palette */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-sidebar: #0b1120;
  --bg-sidebar-elevated: #111827;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  /* Shadows & Elevation */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow-primary: 0 4px 14px 0 rgba(2, 132, 199, 0.35);
  --shadow-glow-scale: 0 0 24px rgba(34, 197, 94, 0.25);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.wrapper {
  background-color: var(--bg-app);
}

.content-wrapper {
  background-color: var(--bg-app) !important;
  min-height: calc(100vh - 56px) !important;
}

.table td.num, .table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.main-header.navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.main-header .nav-link {
  color: #334155 !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem !important;
  transition: all 0.15s ease;
}

.main-header .nav-link:hover {
  background-color: #f1f5f9;
  color: var(--primary) !important;
}

.navbar-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.navbar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.navbar-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.btn-nav-logout {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #64748b !important;
  transition: all 0.2s ease;
}

.btn-nav-logout:hover {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  transform: scale(1.05);
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.main-sidebar {
  background: linear-gradient(180deg, #090e1a 0%, #0f172a 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
}

.brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1rem 1rem !important;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.brand-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
  object-fit: contain;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title-wrap .brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-title-wrap .brand-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  font-weight: 600;
}

.sidebar {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nav-sidebar .nav-header {
  color: #64748b !important;
  font-size: 0.6875rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 0.75rem 0.35rem !important;
}

.nav-sidebar .nav-item {
  margin-bottom: 0.2rem;
}

.nav-sidebar .nav-link {
  color: #94a3b8 !important;
  border-radius: var(--radius-md) !important;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.nav-sidebar .nav-link i.nav-icon {
  width: 1.35rem;
  font-size: 0.95rem;
  margin-right: 0.65rem;
  text-align: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.nav-sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  transform: translateX(3px);
}

.nav-sidebar .nav-link:hover i.nav-icon {
  color: #38bdf8;
}

.nav-sidebar .nav-link.active {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: var(--shadow-glow-primary) !important;
}

.nav-sidebar .nav-link.active i.nav-icon {
  color: #ffffff !important;
}

.nav-sidebar .nav-link.disabled {
  cursor: default;
  opacity: 0.45;
}

/* ==========================================================================
   Page Headers & Breadcrumbs
   ========================================================================== */
.content-header {
  padding: 1.25rem 0 1rem !important;
}

.content-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-header h1::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--primary-gradient);
  border-radius: 4px;
}

/* ==========================================================================
   Cards & Panels
   ========================================================================== */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card.card-outline {
  border-top-width: 3px !important;
}

.card.card-outline.card-primary {
  border-top-color: var(--primary) !important;
}

.card.card-outline.card-warning {
  border-top-color: var(--fuel-a95) !important;
}

.card.card-outline.card-success {
  border-top-color: var(--fuel-e5) !important;
}

.card.card-outline.card-info {
  border-top-color: #0284c7 !important;
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem !important;
  font-weight: 600;
}

.card-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.25rem !important;
}

.card-footer {
  background-color: #f8fafc !important;
  border-top: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-lg) !important;
  border-bottom-right-radius: var(--radius-lg) !important;
  padding: 0.85rem 1.25rem !important;
}

/* Callout Info / Warning */
.callout {
  border-radius: var(--radius-md) !important;
  border-left-width: 4px !important;
  box-shadow: var(--shadow-xs);
  padding: 1rem !important;
}

.callout.callout-info {
  background: #f0f9ff !important;
  border-left-color: var(--primary) !important;
  color: #0369a1 !important;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary-gradient) !important;
  border: 1px solid var(--primary-hover) !important;
  color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.btn-success {
  background: var(--fuel-e5-gradient) !important;
  border: 1px solid #059669 !important;
  color: #ffffff !important;
}

.btn-success:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-outline-success {
  color: #059669 !important;
  border-color: #10b981 !important;
}

.btn-outline-success:hover {
  background: #10b981 !important;
  color: #ffffff !important;
}

.btn-warning {
  background: var(--fuel-a95-gradient) !important;
  border: 1px solid #d97706 !important;
  color: #ffffff !important;
}

.btn-warning:hover {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Badges */
.badge {
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.35em 0.75em;
  letter-spacing: 0.02em;
}

.badge-info {
  background-color: var(--primary-light) !important;
  color: #0284c7 !important;
}

.badge-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

.badge-danger {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.badge-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

.badge-secondary {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-control {
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

.form-control-sm {
  height: calc(1.5em + 0.6rem + 2px);
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
}

.form-control-lg {
  font-size: 1.15rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

.input-group-text {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Tables & DataTables
   ========================================================================== */
.table {
  color: #1e293b;
  margin-bottom: 0;
}

.table thead th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: none;
  border-bottom: 2px solid var(--border-color);
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.table tbody td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
  font-size: 0.875rem;
}

.table-hover tbody tr:hover {
  background-color: rgba(2, 132, 199, 0.04) !important;
  cursor: pointer;
}

.table-bordered {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-bordered th, .table-bordered td {
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Metrics & KPI Cards
   ========================================================================== */
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
}

.kpi-card.kpi-warning::after {
  background: var(--fuel-a95-gradient);
}

.kpi-card.kpi-success::after {
  background: var(--fuel-e5-gradient);
}

.kpi-card.kpi-indigo::after {
  background: var(--fuel-do-gradient);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #ffffff;
}

.kpi-icon.icon-blue { background: var(--primary-gradient); box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25); }
.kpi-icon.icon-amber { background: var(--fuel-a95-gradient); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25); }
.kpi-icon.icon-green { background: var(--fuel-e5-gradient); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25); }
.kpi-icon.icon-indigo { background: var(--fuel-do-gradient); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25); }

.kpi-content {
  flex-grow: 1;
}

.kpi-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

/* Info-box modernization */
.info-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-xs);
  min-height: 76px;
  margin-bottom: 1rem;
}

.info-box .info-box-icon {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  width: 64px;
}

.info-box-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-muted);
}

.info-box-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Small-box modernization */
.small-box.bg-light {
  background: #ffffff !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.small-box.bg-light:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Quick Actions Tiles
   ========================================================================== */
.quick-action-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: var(--text-main) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
  height: 100%;
}

.quick-action-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary) !important;
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
}

.quick-action-tile:hover .quick-action-icon {
  transform: scale(1.1);
}

.quick-action-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.quick-action-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Fuel Price Board (Bảng Giá Xăng Dầu)
   ========================================================================== */
.fuel-price-card {
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.fuel-price-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.fuel-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.badge-fuel-a95 { background: #fef3c7; color: #92400e; }
.badge-fuel-e5 { background: #d1fae5; color: #065f46; }
.badge-fuel-do { background: #dbeafe; color: #1e40af; }
.badge-fuel-nhot { background: #ede9fe; color: #5b21b6; }

.fuel-price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.fuel-price-unit {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   Scale Display (Trạm Cân Điện Tử)
   ========================================================================== */
.scale-display {
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-align: right;
  background: radial-gradient(circle at 50% 20%, #152238 0%, #080d16 100%);
  color: #39ff6a;
  border: 2px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), var(--shadow-glow-scale);
  text-shadow: 0 0 16px rgba(57, 255, 106, 0.5);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.scale-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.scale-display small {
  font-size: 1.6rem;
  color: #86efac;
  font-weight: 600;
  text-shadow: none;
  letter-spacing: normal;
  margin-left: 0.5rem;
}

.scale-state-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.scale-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: beacon-pulse 1.8s infinite;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.scale-raw {
  height: 200px;
  overflow: auto;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 576px) {
  .scale-display { font-size: 2.75rem; padding: 1rem; }
  .scale-display small { font-size: 1.25rem; }
}

/* ==========================================================================
   Login Page Styling
   ========================================================================== */
.login-page-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 15% 15%, #0c4a6e 0%, #0f172a 60%, #020617 100%);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.login-bg-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}

.login-bg-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

.login-bg-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
}

.login-card-modern {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 2.25rem 2rem;
  position: relative;
  z-index: 10;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
  margin-bottom: 1rem;
  object-fit: contain;
}

.login-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.login-brand-sub {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
}

.login-input-group {
  margin-bottom: 1.25rem;
}

.login-input-group .form-control {
  height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  padding-left: 1rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.login-input-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.login-input-group .input-group-text {
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}

.btn-login-submit {
  height: 46px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--primary-gradient) !important;
  box-shadow: var(--shadow-glow-primary);
  border: none;
  color: #ffffff !important;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

/* ==========================================================================
   Modals & Toasts
   ========================================================================== */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
}

.modal-header .modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-footer {
  background-color: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
}

.toasts-top-right {
  z-index: 1070;
}

.toast {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: none;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 1.15rem;
  margin-bottom: -2px;
  border-radius: 0;
  transition: all 0.15s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--primary);
  border-bottom-color: #cbd5e1;
}

.nav-tabs .nav-link.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
  background: transparent !important;
}

/* Footer */
.main-footer {
  background: #ffffff !important;
  border-top: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  padding: 0.85rem 1.25rem !important;
}

/* ==========================================================================
   DataTables & Filters Refinements
   ========================================================================== */
.dataTables_wrapper {
  padding-top: 0.25rem;
}

.dataTables_wrapper .dataTables_filter {
  text-align: right;
  margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  margin-left: 0.5rem;
  outline: none;
  transition: all 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.dataTables_wrapper .dataTables_info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 0.75rem;
  text-align: right;
}

.dataTables_wrapper .pagination .page-item .page-link {
  color: #334155;
  border-radius: var(--radius-sm);
  margin: 0 2px;
  border: 1px solid var(--border-color);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  transition: all 0.15s ease;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.dataTables_wrapper .pagination .page-item .page-link:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

/* Active Price Row & Table Highlight */
.table tr.table-primary td {
  background-color: rgba(2, 132, 199, 0.08) !important;
  color: #0369a1 !important;
  font-weight: 600;
}

/* Custom Checkbox & Radio */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.custom-control-label {
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* Total Highlights */
#tongcong {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 800;
}

#thanhtien {
  font-size: 1.35rem;
  color: #059669;
}

/* Form Filter Modernization */
#filter .form-control {
  background-color: #ffffff;
}

#filter .form-group label {
  color: #475569;
}

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

