/* ============================================================
   REMCOM THEME v4 — Premium light theme
   ============================================================ */

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

:root {
  /* Backgrounds */
  --bg:            #EEF2FF;
  --bg2:           #FFFFFF;
  --bg3:           #F1F5F9;
  --bg4:           #E8EEF8;

  /* Borders */
  --border:        #D1DCF0;
  --border-hover:  rgba(0, 82, 255, 0.3);

  /* Text */
  --text:          #0F172A;
  --text2:         #475569;
  --text3:         #94A3B8;

  /* Brand */
  --accent:        #0052FF;
  --accent-dark:   #003ECC;
  --accent-hover:  #0047E0;
  --accent-light:  rgba(0, 82, 255, 0.08);
  --accent-glow:   rgba(0, 82, 255, 0.18);

  --cyan:          #00AAFF;
  --cyan-light:    rgba(0, 170, 255, 0.1);

  --green:         #10B981;
  --green-light:   rgba(16, 185, 129, 0.1);
  --red:           #EF4444;
  --red-light:     rgba(239, 68, 68, 0.1);
  --yellow:        #F59E0B;
  --yellow-light:  rgba(245, 158, 11, 0.1);
  --purple:        #8B5CF6;
  --purple-light:  rgba(139, 92, 246, 0.1);

  /* Shadows */
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.05);
  --shadow:        0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,82,255,0.07);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.07), 0 8px 24px rgba(0,82,255,0.1);
  --shadow-float:  0 8px 32px rgba(0,82,255,0.14), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-glow:   0 0 0 3px rgba(0,82,255,0.15);

  --transition:    0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sidebar */
  --sidebar-w: 230px;
}

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

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 5% 0%, rgba(0,82,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 95% 100%, rgba(0,170,255,0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-w) !important;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  box-shadow: 2px 0 20px rgba(0,82,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top gradient bar */
.sidebar::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #0052FF 0%, #00AAFF 50%, #0052FF 100%);
  background-size: 200% 100%;
  animation: gradientShift 4s linear infinite;
  flex-shrink: 0;
}

@keyframes gradientShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Logo ────────────────────────────────────────────── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 16px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,82,255,0.3));
}

.logo-icon svg { width: 36px; height: 36px; }

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #0052FF 20%, #00AAFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Nav ─────────────────────────────────────────────── */
.sidebar-nav {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-bottom {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-item:hover {
  background: var(--accent-light);
  color: var(--accent);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0,82,255,0.11) 0%, rgba(0,170,255,0.07) 100%);
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  margin-left: -10px;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-icon svg { width: 18px; height: 18px; }

/* ── Sidebar Footer / User ───────────────────────────── */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  border-radius: 9px;
  background: var(--bg3);
  transition: background var(--transition);
}

.sidebar-user:hover {
  background: var(--accent-light);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0052FF, #00AAFF);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,82,255,0.3);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-logout-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  padding: 4px;
}

.sidebar-logout-btn:hover {
  background: var(--red-light);
  color: var(--red);
}

.sidebar-logout-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════ */

.topbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,82,255,0.05);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.page-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.current-time {
  font-size: 13px;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   CONTENT
   ══════════════════════════════════════════════════════ */

.content {
  padding: 24px 28px;
  overflow-y: auto;
}

/* ══════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════ */

.card, .stat-card, .ticket-card, .client-card, .deal-card,
.settings-section, .table-container, .report-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover, .stat-card:hover, .ticket-card:hover, .client-card:hover {
  box-shadow: var(--shadow-float);
  border-color: rgba(0,82,255,0.18);
  transform: translateY(-2px);
}

/* Stat card accents */
.stat-card {
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,82,255,0.04) 0%, transparent 70%);
  transform: translate(25%, -25%);
}

/* ── Ticket search dropdowns ── */
#tkt-client-results,
#tkt-company-results {
  background: #fff !important;
  color: var(--text) !important;
}
#tkt-client-results > div,
#tkt-company-results > div {
  color: var(--text) !important;
  background: #fff;
}
#tkt-client-results > div:hover,
#tkt-company-results > div:hover {
  background: rgba(0,82,255,0.06) !important;
}


.stat-card-link {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}
.stat-card-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,82,255,0.13) !important;
  border-color: rgba(0,82,255,0.25) !important;
}
.stat-card-link:active {
  transform: translateY(0) !important;
}


.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0052FF 0%, #00AAFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */

.btn {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  padding: 8px 16px;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #0052FF 0%, #0070FF 100%);
  border: none;
  box-shadow: 0 3px 12px rgba(0,82,255,0.32), 0 1px 3px rgba(0,0,0,0.08);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #003ECC 0%, #0052FF 100%);
  box-shadow: 0 5px 18px rgba(0,82,255,0.42), 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,82,255,0.25);
}

.btn:not(.btn-primary):hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 7px;
}

/* ══════════════════════════════════════════════════════
   INPUTS
   ══════════════════════════════════════════════════════ */

.form-control, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea {
  font-family: var(--font);
  font-size: 13.5px;
  background: #F8FAFF;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 12px;
  transition: all var(--transition);
  outline: none;
}

.form-control:focus, input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, input[type="number"]:focus,
input[type="tel"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,82,255,0.1);
}

label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.1px;
}

/* ══════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════ */

table {
  font-size: 13.5px;
}

table thead th {
  background: #F4F8FF;
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

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

table tbody tr:hover td {
  background: rgba(0,82,255,0.025);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* ══════════════════════════════════════════════════════
   BADGES & STATUS
   ══════════════════════════════════════════════════════ */

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  min-width: 18px;
  text-align: center;
}

.badge-primary, .status-new {
  background: rgba(0,82,255,0.1);
  color: #0052FF;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-active, .status-open {
  background: var(--green-light);
  color: var(--green);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-closed, .status-done {
  background: var(--bg3);
  color: var(--text3);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-pending, .status-in-progress {
  background: var(--yellow-light);
  color: var(--yellow);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════ */

.modal-overlay {
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
}

.modal {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,82,255,0.14), 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 22px 16px;
  background: #FAFCFF;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.modal-body {
  padding: 22px;
}

.modal-close {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: none;
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--red-light);
  color: var(--red);
}

/* ══════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--font);
  letter-spacing: -0.3px;
  color: var(--text);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════
   LOADING / SPINNER
   ══════════════════════════════════════════════════════ */

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 14px;
  color: var(--text3);
  font-size: 13.5px;
}

/* ══════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════ */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 360px;
  animation: toastIn 0.3s var(--transition-spring) both;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ══════════════════════════════════════════════════════
   EMPTY STATES
   ══════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--text3);
}

/* ══════════════════════════════════════════════════════
   PIPELINE / KANBAN
   ══════════════════════════════════════════════════════ */

.pipeline-column {
  background: var(--bg3);
  border-radius: 12px;
  padding: 14px;
  min-width: 240px;
}

.pipeline-column-header {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ══════════════════════════════════════════════════════
   SETTINGS SECTION HEADERS
   ══════════════════════════════════════════════════════ */

.settings-section {
  padding: 22px 24px;
  margin-bottom: 16px;
}

.settings-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}

/* ══════════════════════════════════════════════════════
   SEARCH / FILTER BAR
   ══════════════════════════════════════════════════════ */

.search-bar {
  position: relative;
}

.search-bar input {
  padding-left: 36px;
}

.search-bar::before {
  content: '';
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5'/%3E%3Cpath d='M15 15l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
@keyframes pulseBlue {
  0%, 100% { box-shadow: 0 3px 12px rgba(0,82,255,0.32); }
  50%       { box-shadow: 0 3px 12px rgba(0,82,255,0.32), 0 0 0 6px rgba(0,82,255,0.1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Page entrance */
#content > * {
  animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Card stagger */
.card, .stat-card {
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

.cards-grid > *:nth-child(1), .stats-row > *:nth-child(1) { animation-delay: 0.04s; }
.cards-grid > *:nth-child(2), .stats-row > *:nth-child(2) { animation-delay: 0.09s; }
.cards-grid > *:nth-child(3), .stats-row > *:nth-child(3) { animation-delay: 0.14s; }
.cards-grid > *:nth-child(4), .stats-row > *:nth-child(4) { animation-delay: 0.19s; }

/* Sidebar nav */
.nav-item { animation: fadeInLeft 0.25s ease both; }
.nav-item:nth-child(1) { animation-delay: 0.04s; }
.nav-item:nth-child(2) { animation-delay: 0.08s; }
.nav-item:nth-child(3) { animation-delay: 0.11s; }
.nav-item:nth-child(4) { animation-delay: 0.14s; }
.nav-item:nth-child(5) { animation-delay: 0.17s; }
.nav-item:nth-child(6) { animation-delay: 0.20s; }
.nav-item:nth-child(7) { animation-delay: 0.23s; }

/* Modal */
.modal.active {
  animation: scaleIn 0.22s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #edf2ff 25%, #dae4ff 50%, #edf2ff 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 6px;
}

/* Pulse on primary CTA */
.btn-primary.pulse { animation: pulseBlue 2s infinite; }

/* Float utility */
.icon-float { animation: float 3s ease-in-out infinite; }

/* Table rows */
tbody tr { transition: background var(--transition); }

/* Brand gradient text utility */
.brand-text {
  background: linear-gradient(135deg, #0052FF 20%, #00AAFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* Chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}

/* KPI value */
.kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0052FF, #00AAFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  :root { --sidebar-w: 60px !important; }
  .logo-text-wrap, .nav-item > span:not(.nav-icon), .sidebar-user-info, .logo-sub { display: none; }
  .nav-item { justify-content: center; padding: 10px; }
  .nav-item.active::after { display: none; }
  .sidebar-user { justify-content: center; }
  .sidebar-logout-btn { margin: 0 auto; }
}

/* ══════════════════════════════════════════════════════
   BUTTON OVERRIDES — light theme
   ══════════════════════════════════════════════════════ */

.btn-secondary {
  background: #FFFFFF !important;
  color: var(--text2) !important;
  border: 1.5px solid var(--border) !important;
  font-weight: 500 !important;
}

.btn-secondary:hover {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  border-color: rgba(0, 82, 255, 0.3) !important;
}

/* Active/selected secondary — used for filter tabs */
.btn-secondary.active,
.btn-secondary[aria-pressed="true"] {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  border-color: rgba(0, 82, 255, 0.3) !important;
  font-weight: 600 !important;
}

.btn-danger {
  background: var(--red-light) !important;
  color: var(--red) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.2) !important;
}

.btn-danger:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}

.btn-success {
  background: var(--green-light) !important;
  color: var(--green) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.2) !important;
}

.btn-success:hover {
  background: var(--green) !important;
  color: #fff !important;
}

.btn-warning {
  background: var(--yellow-light) !important;
  color: var(--yellow) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.2) !important;
}

.btn-warning:hover {
  background: var(--yellow) !important;
  color: #fff !important;
}

/* Filter button group — tickets / clients page */
.filter-tabs .btn,
.status-filter .btn {
  border-radius: 8px !important;
}

/* Period switcher in dashboard */
#dp-day, #dp-week, #dp-month {
  min-width: 80px;
}

/* ══════════════════════════════════════════════════════
   SEARCH TRIGGER BUTTON (topbar)
   ══════════════════════════════════════════════════════ */

.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 140px;
}

.search-trigger-btn:hover {
  border-color: rgba(0, 82, 255, 0.3);
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.08);
}

.search-trigger-btn kbd {
  margin-left: auto;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text3);
  font-family: var(--font);
  letter-spacing: 0.2px;
}

.search-trigger-btn:hover kbd {
  border-color: rgba(0, 82, 255, 0.2);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════
   NOTIFICATION SETTINGS WIDGET
   ══════════════════════════════════════════════════════ */

.notif-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.notif-ok   { background: var(--green-light);  color: var(--green); }
.notif-err  { background: var(--red-light);    color: var(--red); }
.notif-warn { background: var(--yellow-light); color: var(--yellow); }

.notif-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.notif-toggle-row:last-of-type { border-bottom: none; }

.notif-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.notif-toggle-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
  max-width: 380px;
}

/* Toggle switch */
.notif-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.notif-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.notif-thumb {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #CBD5E1;
  transition: background var(--transition);
  cursor: pointer;
}
.notif-thumb::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.notif-switch input:checked + .notif-thumb { background: var(--accent); }
.notif-switch input:checked + .notif-thumb::before { transform: translateX(18px); }
.notif-switch input:disabled + .notif-thumb { opacity: 0.45; cursor: not-allowed; }
