/*
 * Kimia SGV — Dark Tech / AI Theme
 * Overrides the light base variables and styles in every template.
 */

/* ──────────────────────────────────────────
   1. VARIABLES  (override :root from inline styles)
   ────────────────────────────────────────── */
:root {
  --primary:        #07070f;
  --primary-mid:    #12122a;
  --primary-light:  #6366f1;
  --accent:         #22d3ee;
  --accent-2:       #a78bfa;
  --accent-light:   rgba(34,211,238,0.06);
  --success:        #34d399;
  --warning:        #fbbf24;
  --danger:         #f87171;
  --bg-page:        #06060e;
  --bg-card:        #0d0d1c;
  --bg-card:        #0d0d1c;
  --text-main:      #e2e8f0;
  --text-muted:     #475569;
  --sidebar-text:   #374761;
  --sidebar-active: #e2e8f0;
  --border:         rgba(255,255,255,0.05);
  /* Legacy variables kept for inline style compatibility */
  --bg-page:        #06060e;
}

/* ──────────────────────────────────────────
   2. BASE
   ────────────────────────────────────────── */
html, body {
  background: #06060e !important;
  color: #e2e8f0 !important;
}

/* Subtle grid texture on page background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────
   3. SIDEBAR
   ────────────────────────────────────────── */
.sidebar {
  background: linear-gradient(170deg, #070711 0%, #0a0a1a 60%, #07080f 100%) !important;
  border-right: 1px solid rgba(255,255,255,0.03) !important;
  box-shadow: 4px 0 40px rgba(0,0,0,0.6);
}
.sidebar-brand {
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.sidebar-brand .brand-icon { color: #22d3ee !important; }
.sidebar-brand .brand-name { color: #e2e8f0 !important; }
.sidebar-brand .brand-sub  { color: #2d3d5a !important; }
.sidebar-brand .logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-section-label {
  color: rgba(105, 711,97,0.65) !important;
}
.sidebar .nav-link {
  color: #fefefe !important;
}
.sidebar .nav-link:hover {
  background: rgba(99,102,241,0.07) !important;
  color: #6b7ea0 !important;
}
.sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(99,102,241,0.18) 0%, rgba(99,102,241,0.02) 100%) !important;
  color: #e2e8f0 !important;
  border-left: 2px solid #6366f1 !important;
}
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.04) !important;
}
.sidebar-footer .avatar {
  background: linear-gradient(135deg, #6366f1, #22d3ee) !important;
}
.sidebar-footer .user-name { color: #e2e8f0 !important; }
.sidebar-footer .user-role { color: #2d3d5a !important; }
.sidebar-footer .btn-logout { color: #2d3d5a !important; }
.sidebar-footer .btn-logout:hover { color: #f87171 !important; }

/* ──────────────────────────────────────────
   4. TOPBAR
   ────────────────────────────────────────── */
.topbar {
  background: rgba(6,6,14,0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  box-shadow: 0 1px 50px rgba(0,0,0,0.6) !important;
}
.topbar .btn-menu {
  color: #6366f1 !important;
}
.topbar .btn-menu:hover {
  background: rgba(99,102,241,0.1) !important;
}
.topbar .form-control {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #e2e8f0 !important;
}
.topbar .form-control::placeholder { color: #2d3d5a !important; }
.breadcrumb-item.active { color: #374761 !important; }
.breadcrumb-item a { color: #22d3ee !important; }
.notif-btn { color: #374761 !important; }
.notif-btn:hover { background: rgba(99,102,241,0.08) !important; color: #22d3ee !important; }
.notif-badge { background: #f87171 !important; }
.top-avatar { background: linear-gradient(135deg, #6366f1, #22d3ee) !important; }

/* ──────────────────────────────────────────
   5. MAIN CONTENT AREA
   ────────────────────────────────────────── */
.main-content,
.page-content {
  background: #06060e !important;
}

/* Page headings */
.page-content h2,
.page-content .h2 {
  color: #e2e8f0 !important;
}

/* ──────────────────────────────────────────
   6. CARDS
   ────────────────────────────────────────── */
.card,
.kpi-card,
.chart-card,
.detail-card,
.section-card,
.export-card,
.stat-card,
.vendor-card,
.login-card {
  background: #0d0d1c !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  color: #e2e8f0 !important;
}
.card:hover,
.kpi-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.12) !important;
}
.vendor-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.12) !important;
}

/* KPI icon */
.kpi-icon {
  background: rgba(99,102,241,0.1) !important;
  color: #818cf8 !important;
}
.kpi-value { color: #e2e8f0 !important; }
.kpi-label { color: #475569 !important; }
.kpi-delta.up   { color: #34d399 !important; }
.kpi-delta.warn { color: #fbbf24 !important; }
.kpi-delta.down { color: #f87171 !important; }

/* Chart titles */
.chart-title { color: #e2e8f0 !important; }

/* Stat cards */
.stat-value { color: #818cf8 !important; }
.stat-label { color: #475569 !important; }

/* ──────────────────────────────────────────
   7. TABLES
   ────────────────────────────────────────── */
.table {
  color: #cbd5e1 !important;
  --bs-table-bg: transparent !important;
}
.table thead th,
.table thead tr th {
  background: rgba(255,255,255,0.025) !important;
  color: #374761 !important;
  font-size: 0.76rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  border-color: rgba(255,255,255,0.04) !important;
}
.table tbody tr {
  border-color: rgba(255,255,255,0.03) !important;
}
.table-hover tbody tr:hover {
  background: rgba(99,102,241,0.04) !important;
  color: #e2e8f0 !important;
}
.table td, .table th {
  border-color: rgba(255,255,255,0.04) !important;
}
.table td {
  color:#fff !important;
}
/* Alternate row colors */
.table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.01) !important;
}

/* Card body with table (no extra padding) */
.card-header {
  background: rgba(255,255,255,0.02) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  color: #e2e8f0 !important;
}
.card-footer {
  background: rgba(255,255,255,0.02) !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}

/* ──────────────────────────────────────────
   8. BADGES
   ────────────────────────────────────────── */
.badge-draft     { background: rgba(71,85,105,0.25)   !important; color: #94a3b8 !important; }
.badge-sent      { background: rgba(34,211,238,0.12)   !important; color: #22d3ee !important; border: 1px solid rgba(34,211,238,0.2) !important; }
.badge-approved  { background: rgba(52,211,153,0.12)   !important; color: #34d399 !important; border: 1px solid rgba(52,211,153,0.2) !important; }
.badge-rejected  { background: rgba(248,113,113,0.12)  !important; color: #f87171 !important; border: 1px solid rgba(248,113,113,0.2) !important; }
.badge-converted { background: rgba(167,139,250,0.12)  !important; color: #a78bfa !important; border: 1px solid rgba(167,139,250,0.2) !important; }
.badge-pending   { background: rgba(251,191,36,0.12)   !important; color: #fbbf24 !important; border: 1px solid rgba(251,191,36,0.2) !important; }
.badge-active    { background: rgba(52,211,153,0.12)   !important; color: #34d399 !important; border: 1px solid rgba(52,211,153,0.2) !important; }
.badge-prospect  { background: rgba(34,211,238,0.12)   !important; color: #22d3ee !important; }
.badge-inactive  { background: rgba(71,85,105,0.25)    !important; color: #64748b !important; }
.badge-process   { background: rgba(99,102,241,0.12)   !important; color: #818cf8 !important; border: 1px solid rgba(99,102,241,0.2) !important; }
.badge-completed { background: rgba(167,139,250,0.12)  !important; color: #a78bfa !important; border: 1px solid rgba(167,139,250,0.2) !important; }
.badge-admin     { background: rgba(248,113,113,0.15)  !important; color: #f87171 !important; }
.badge-gerente   { background: rgba(251,191,36,0.15)   !important; color: #fbbf24 !important; }
.badge-vendedor  { background: rgba(52,211,153,0.15)   !important; color: #34d399 !important; }
/* Bootstrap default badges */
.badge.bg-secondary { background: rgba(100,116,139,0.25) !important; color: #94a3b8 !important; }
.badge.bg-success   { background: rgba(52,211,153,0.15)  !important; color: #34d399 !important; }
.badge.bg-danger    { background: rgba(248,113,113,0.15) !important; color: #f87171 !important; }
.badge.bg-primary   { background: rgba(99,102,241,0.15)  !important; color: #818cf8 !important; }
.badge.bg-warning   { background: rgba(251,191,36,0.15)  !important; color: #fbbf24 !important; }
.badge.bg-light     { background: rgba(255,255,255,0.05) !important; color: #94a3b8 !important; }
.badge.bg-light.text-dark { color: #94a3b8 !important; }
.badge.bg-warning.text-dark { color: #fbbf24 !important; }

/* ──────────────────────────────────────────
   9. FORM CONTROLS
   ────────────────────────────────────────── */
.form-control,
.form-select,
select.form-select,
input.form-control,
textarea.form-control {
  background: rgba(255,255,255,0.03) !important;
  border: 1.5px solid rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
  border-radius: 8px;
}
.form-control:focus,
.form-select:focus {
  background: rgba(99,102,241,0.06) !important;
  border-color: rgba(99,102,241,0.5) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
}
.form-control::placeholder { color: #2d3d5a !important; }
.form-control[readonly],
.form-control:read-only {
  background: rgba(255,255,255,0.02) !important;
  color: #475569 !important;
}
.input-group-text {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #475569 !important;
}
.form-label { color: #94a3b8 !important; }
.form-check-input {
  background-color: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.form-check-input:checked {
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
}
.form-check-label { color: #94a3b8 !important; }
.form-switch .form-check-input { background-color: rgba(255,255,255,0.08) !important; }
.form-switch .form-check-input:checked { background-color: #6366f1 !important; }
/* Select2 dark */
.select2-container--bootstrap-5 .select2-selection {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
}
.select2-dropdown {
  background: #0d0d1c !important;
  border-color: rgba(255,255,255,0.08) !important;
}
.select2-results__option { color: #cbd5e1 !important; }
.select2-results__option--highlighted {
  background: rgba(99,102,241,0.15) !important;
  color: #e2e8f0 !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { color: #e2e8f0 !important; }
.select2-search__field {
  background: rgba(255,255,255,0.04) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.logo{
  width: 100px;
}

.filter-bar,
.filter-card {
  background: #0d0d1c !important;
  border-color: rgba(255,255,255,0.05) !important;
  box-shadow: none !important;
}
.filter-bar .form-label,
.filter-card label {
  color: #374761 !important;
}

/* ──────────────────────────────────────────
   10. BUTTONS
   ────────────────────────────────────────── */
.btn-outline-primary {
  color: #818cf8 !important;
  border-color: rgba(99,102,241,0.4) !important;
}
.btn-outline-primary:hover {
  background: rgba(99,102,241,0.12) !important;
  color: #a5b4fc !important;
  border-color: rgba(99,102,241,0.6) !important;
}
.btn-outline-secondary {
  color: #475569 !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.btn-outline-secondary:hover {
  background: rgba(255,255,255,0.04) !important;
  color: #94a3b8 !important;
  border-color: rgba(255,255,255,0.15) !important;
}
.btn-outline-success {
  color: #34d399 !important;
  border-color: rgba(52,211,153,0.4) !important;
}
.btn-outline-success:hover {
  background: rgba(52,211,153,0.1) !important;
  color: #6ee7b7 !important;
}
.btn-outline-success:disabled {
  color: #1e3a30 !important;
  border-color: rgba(52,211,153,0.1) !important;
}
.btn-outline-danger {
  color: #f87171 !important;
  border-color: rgba(248,113,113,0.3) !important;
}
.btn-outline-danger:hover {
  background: rgba(248,113,113,0.1) !important;
  color: #fca5a5 !important;
}
.btn-outline-dark {
  color: #94a3b8 !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.btn-outline-dark:hover {
  background: rgba(255,255,255,0.04) !important;
}
.btn-close-white { filter: invert(1); }

/* Primary filled button */
.btn[style*="background:var(--primary-light)"],
.btn[style*="background: var(--primary-light)"] {
  background: #6366f1 !important;
  border: none !important;
}
.btn[style*="background:var(--primary-light)"]:hover,
.btn[style*="background: var(--primary-light)"]:hover {
  background: #4f46e5 !important;
}
.btn[style*="background:var(--success)"] {
  background: rgba(52,211,153,0.15) !important;
  border: 1px solid rgba(52,211,153,0.3) !important;
}

/* ──────────────────────────────────────────
   11. MODALS
   ────────────────────────────────────────── */
.modal-content {
  background: #0d0d1c !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 25px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(99,102,241,0.1) !important;
}
.modal-header[style*="background:var(--primary)"],
.modal-header[style*="background: var(--primary)"] {
  background: linear-gradient(90deg, #0e0e22, #12122a) !important;
  border-bottom: 1px solid rgba(99,102,241,0.2) !important;
}
.modal-body { color: #e2e8f0 !important; }
.modal-footer {
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  background: rgba(255,255,255,0.01) !important;
}

/* ──────────────────────────────────────────
   12. DATATABLES
   ────────────────────────────────────────── */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info { color: #374761 !important; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
  border-radius: 6px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button { color: #374761 !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: rgba(99,102,241,0.15) !important;
  border-color: rgba(99,102,241,0.3) !important;
  color: #818cf8 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: #1e2a3a !important; }

/* ──────────────────────────────────────────
   13. TABS / PILLS
   ────────────────────────────────────────── */
.nav-tabs { border-bottom-color: rgba(255,255,255,0.06) !important; }
.nav-tabs .nav-link { color: #374761 !important; border-color: transparent !important; }
.nav-tabs .nav-link:hover { color: #64748b !important; background: rgba(255,255,255,0.02) !important; }
.nav-tabs .nav-link.active {
  background: transparent !important;
  border-bottom: 2px solid #6366f1 !important;
  color: #a5b4fc !important;
}
.nav-pills .nav-link { color: #374761 !important; }
.nav-pills .nav-link.active {
  background: rgba(99,102,241,0.15) !important;
  color: #818cf8 !important;
}
.nav-pills .nav-link:hover:not(.active) {
  background: rgba(255,255,255,0.03) !important;
  color: #64748b !important;
}

/* ──────────────────────────────────────────
   14. HARDCODED & VARIABLE COLOR FIXES
   ────────────────────────────────────────── */
/* Table headers / card sub-sections with hardcoded light backgrounds */
[style*="#f8fafc"] { background-color: rgba(255,255,255,0.025) !important; }
[style*="#fafbfc"] { background-color: rgba(255,255,255,0.01) !important; }
[style*="#f0f4f8"] { background-color: #06060e !important; }

/* --primary is now near-black; fix text that uses it as a foreground color */
[style*="color:var(--primary)"]       { color: #a5b4fc !important; }
[style*="color: var(--primary)"]      { color: #a5b4fc !important; }
/* --primary-mid also used as text in some headings */
[style*="color:var(--primary-mid)"]   { color: #818cf8 !important; }
/* --primary used as background on modal headers etc. — overridden by class rules above */

/* Inline border colors */
[style*="border:1px solid var(--border)"],
[style*="border: 1px solid var(--border)"] {
  border-color: rgba(255,255,255,0.05) !important;
}
[style*="border-top:1px solid var(--border)"] {
  border-top-color: rgba(255,255,255,0.05) !important;
}

/* Total/summary rows that use accent-light as background */
[style*="background:var(--accent-light)"],
[style*="background: var(--accent-light)"] {
  background: rgba(99,102,241,0.06) !important;
}

/* Inline color for muted text */
[style*="color:var(--text-muted)"],
[style*="color: var(--text-muted)"] {
  color: #475569 !important;
}
[style*="color:var(--text-main)"],
[style*="color: var(--text-main)"] {
  color: #e2e8f0 !important;
}

/* Dashed vendor-card add button */
[style*="border:2px dashed var(--border)"] {
  border-color: rgba(99,102,241,0.15) !important;
  background: rgba(99,102,241,0.02) !important;
}

/* ──────────────────────────────────────────
   15. MISC COMPONENTS
   ────────────────────────────────────────── */
/* Code blocks */
code {
  color: #22d3ee !important;
  background: rgba(34,211,238,0.07) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* Progress bars */
.progress { background: rgba(255,255,255,0.05) !important; }

/* Dropzone */
.drop-zone {
  border-color: rgba(99,102,241,0.25) !important;
  background: rgba(99,102,241,0.03) !important;
  color: #475569 !important;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: #6366f1 !important;
  background: rgba(99,102,241,0.08) !important;
}
.drop-zone i { color: #6366f1 !important; }

/* Alerts */
.alert-success {
  background: rgba(52,211,153,0.1) !important;
  border-color: rgba(52,211,153,0.2) !important;
  color: #34d399 !important;
}

/* Timeline */
.timeline::before { background: rgba(255,255,255,0.06) !important; }
.timeline-dot { background: #6366f1 !important; border-color: #06060e !important; box-shadow: 0 0 0 2px rgba(99,102,241,0.3) !important; }

/* Total section */
.total-section {
  background: rgba(99,102,241,0.06) !important;
  border: 1px solid rgba(99,102,241,0.12) !important;
}
.total-row { color: #94a3b8 !important; border-color: rgba(255,255,255,0.05) !important; }
.total-row strong { color: #e2e8f0 !important; }
.total-row.final { color: #e2e8f0 !important; }

/* Steppers */
.stepper .step-circle {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #374761 !important;
}
.stepper .step.done .step-circle {
  background: rgba(52,211,153,0.15) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
}
.stepper .step.active .step-circle {
  background: rgba(99,102,241,0.2) !important;
  border-color: #6366f1 !important;
  color: #818cf8 !important;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12) !important;
}
.stepper .step::before { background: rgba(255,255,255,0.05) !important; }
.step-label { color: #374761 !important; }
.step.done .step-label, .step.active .step-label { color: #94a3b8 !important; }

/* Vendor card avatar stays with its inline color */
.vendor-avatar { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }

/* Info labels in detail views */
.info-label { color: #2d3d5a !important; }
.info-value { color: #cbd5e1 !important; }

/* Section titles */
.section-title { color: #818cf8 !important; border-color: rgba(255,255,255,0.05) !important; }

/* Links */
a[style*="color:var(--accent)"],
a[style*="color: var(--accent)"] { color: #22d3ee !important; }
a[style*="color:var(--text-main)"] { color: #cbd5e1 !important; }

/* Filter pills */
.filter-pill {
  border-color: rgba(255,255,255,0.06) !important;
  background: rgba(255,255,255,0.02) !important;
  color: #374761 !important;
}
.filter-pill.active, .filter-pill:hover {
  background: rgba(99,102,241,0.12) !important;
  color: #818cf8 !important;
  border-color: rgba(99,102,241,0.3) !important;
}

/* Btn-add-line in quote form */
.btn-add-line {
  border-color: rgba(99,102,241,0.3) !important;
  color: #6366f1 !important;
  background: transparent !important;
}
.btn-add-line:hover {
  background: rgba(99,102,241,0.08) !important;
}

/* Meta input in goals */
.meta-input {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
}
.meta-input:focus {
  border-color: rgba(99,102,241,0.5) !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.1) !important;
}

/* Login page specific */
.panel-brand {
  background: linear-gradient(150deg, #07070f 0%, #0d0d22 60%, #060610 100%) !important;
  border-right: 1px solid rgba(99,102,241,0.1);
}
.panel-form { background: #06060e !important; }
.login-card { background: #0d0d1c !important; box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(99,102,241,0.1) !important; }
.login-card .card-title { color: #e2e8f0 !important; }
.login-card .card-sub { color: #475569 !important; }
.login-card .form-label { color: #94a3b8 !important; }
.input-group-text { border-radius: 8px 0 0 8px !important; }

/* Demo box */
[style*="background:#f0f4f8"] {
  background: rgba(99,102,241,0.06) !important;
  border-color: rgba(99,102,241,0.15) !important;
}

/* Feature items in login */
.feature-icon {
  background: rgba(99,102,241,0.12) !important;
  color: #818cf8 !important;
}
.feature-item h6 { color: #e2e8f0 !important; }
.feature-item p { color: rgba(148,163,184,0.6) !important; }
.version-badge { color: rgba(55,71,97,0.6) !important; }

/* Siigo export card */
.siigo-icon {
  background: linear-gradient(135deg, #0e0e22, #12122a) !important;
  color: #22d3ee !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(34,211,238,0.1);
}

/* Dashboard specific */
[style*="background:var(--accent-light)"] {
  background: rgba(99,102,241,0.06) !important;
}
[style*="background:#f8fafc;color:#0f5132"],
[style*="background:#f8fafc"] { background: rgba(255,255,255,0.015) !important; }

/* Text helpers */
.text-muted { color: #374761 !important; }
small.text-muted { color: #2d3d5a !important; }
.border-bottom { border-color: rgba(255,255,255,0.05) !important; }
.border { border-color: rgba(255,255,255,0.05) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #06060e; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* Glow effects on hover for action buttons */
.btn-action:hover { box-shadow: 0 0 10px rgba(99,102,241,0.2); }

/* Table within cards — no double borders */
.card .table { margin-bottom: 0; }

/* User avatar circles in admin */
.user-avatar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* CRM comment body */
.crm-body {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #cbd5e1 !important;
}

/* ──────────────────────────────────────────
   16. LOGIN BUTTON override
   ────────────────────────────────────────── */
.btn-login {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4) !important;
  transition: all 0.2s !important;
}
.btn-login:hover {
  background: linear-gradient(135deg, #4f46e5, #3730a3) !important;
  box-shadow: 0 4px 30px rgba(99,102,241,0.5) !important;
}

/* Toggle password button */
#togglePwd {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #475569 !important;
}
