/* ============================================================
   CleanOps "Warm Precision" Design System
   ============================================================ */

/* ========== DESIGN TOKENS ========== */
:root {
  /* Colors */
  --ink: #1a1a2e;
  --ink-light: #2d2d44;
  --ink-muted: #5a5a72;
  --brass: #e8c872;
  --brass-dark: #c9a94e;
  --brass-glow: rgba(232,200,114,0.15);
  --linen: #faf8f5;
  --paper: #fffefa;
  --stone: #e8e4dc;
  --stone-light: #f2efea;
  --sage: #7a9e7e;
  --terracotta: #c4715b;
  --slate: #6b7f99;
  --rose: #b5636a;
  --charcoal: #4a4a5a;

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing Scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(26,26,46,0.04);
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 12px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 30px rgba(26,26,46,0.10);
  --shadow-xl: 0 16px 50px rgba(26,26,46,0.14);

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

a {
  color: var(--brass-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--brass);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.fade-up {
  animation: fadeUp 0.6s var(--ease-out) both;
}

.stagger-1, .fade-up-1 { animation-delay: 0.1s; }
.stagger-2, .fade-up-2 { animation-delay: 0.2s; }
.stagger-3, .fade-up-3 { animation-delay: 0.3s; }
.stagger-4, .fade-up-4 { animation-delay: 0.4s; }
.stagger-5, .fade-up-5 { animation-delay: 0.5s; }
.stagger-6, .fade-up-6 { animation-delay: 0.6s; }

/* ========== LAYOUT ========== */
.co-layout {
  display: flex;
  min-height: 100vh;
}

.co-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  padding: var(--sp-7) var(--sp-7) var(--sp-9);
  max-width: calc(100% - 260px);
}

.co-main-inner {
  max-width: 1200px;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s var(--ease-out);
}

.sidebar-brand {
  padding: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand .logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: block;
}

.sidebar-brand .logo span {
  color: var(--brass);
}

.sidebar-brand .subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-muted);
  margin-top: var(--sp-1);
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: var(--sp-4) 0;
}

.nav-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
  padding: var(--sp-4) var(--sp-5) var(--sp-2);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
}

.nav-item.active {
  color: #fff;
  background: var(--brass-glow);
  border-left-color: var(--brass);
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
}

/* Also support Bootstrap .badge inside nav-item */
.nav-item .badge {
  margin-left: auto;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
}

.sidebar-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sidebar-footer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass), var(--brass-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-footer .user-info {
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.sidebar-footer .user-name {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .user-role {
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.sidebar-footer .logout-btn {
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: var(--sp-1);
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.sidebar-footer .logout-btn:hover {
  color: var(--rose);
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 101;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
}

.page-header {
  margin-bottom: var(--sp-6);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 400;
}

.page-header .page-date,
.date-display {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: var(--sp-1);
}

.page-header .page-date::before,
.date-display::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

/* ========== STAT CARDS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 10px;
  padding: var(--sp-5);
  position: relative;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  cursor: default;
  /* Override Bootstrap card border-left if needed */
  border-left: 1px solid var(--stone);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

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

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card:hover .stat-icon {
  color: var(--brass);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
  margin: var(--sp-2) 0;
  line-height: 1.2;
}

.stat-icon {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-size: 1.3rem;
  color: var(--stone);
  transition: color 0.25s ease;
}

/* ========== PILLS / STATUS BADGES ========== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

.pill-sage { background: rgba(122,158,126,0.12); color: var(--sage); }
.pill-brass { background: var(--brass-glow); color: var(--brass-dark); }
.pill-slate { background: rgba(107,127,153,0.12); color: var(--slate); }
.pill-terracotta { background: rgba(196,113,91,0.12); color: var(--terracotta); }
.pill-rose { background: rgba(181,99,106,0.12); color: var(--rose); }

.status-completed {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(122,158,126,0.12);
  color: var(--sage);
}

.status-pending {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(196,113,91,0.12);
  color: var(--terracotta);
}

.status-confirmed {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(107,127,153,0.12);
  color: var(--slate);
}

.status-progress {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--brass-glow);
  color: var(--brass-dark);
}

.status-cancelled {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(181,99,106,0.12);
  color: var(--rose);
}

/* ========== CARDS (co- prefixed to avoid Bootstrap conflicts) ========== */
.co-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.3s ease;
}

.co-card:hover {
  box-shadow: var(--shadow-sm);
}

.co-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--stone-light);
}

.co-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}

.co-card-header .view-all {
  color: var(--brass-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  transition: gap 0.25s ease;
  cursor: pointer;
}

.co-card-header .view-all:hover {
  gap: var(--sp-2);
}

.co-card-body {
  padding: var(--sp-5);
}

.co-card-body.no-padding {
  padding: 0;
}

/* ========== BOOTSTRAP CARD OVERRIDES ========== */
.card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--stone-light);
  padding: var(--sp-5);
}

.card-header h5, .card-header h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}

.card-body {
  padding: var(--sp-5);
}

/* ========== TABLES ========== */
.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: var(--stone-light);
  color: var(--charcoal);
  margin-bottom: 0;
}

.table > thead > tr > th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--stone);
  padding: var(--sp-3) var(--sp-4);
  background: var(--stone-light);
}

.table > tbody > tr > td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--stone-light);
  vertical-align: middle;
  font-size: 0.9rem;
}

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

.table-hover > tbody > tr:hover {
  background-color: var(--stone-light);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(242,239,234,0.5);
}

/* ========== FORMS ========== */
.co-form-group {
  margin-bottom: var(--sp-4);
}

.co-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.co-form-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  background: var(--linen);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.co-form-input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-glow);
}

.co-form-input::placeholder {
  color: var(--ink-muted);
}

/* Bootstrap form control overrides */
.form-control,
.form-select {
  background-color: var(--linen);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: var(--sp-3) var(--sp-4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--linen);
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-glow);
  color: var(--ink);
}

.form-control::placeholder {
  color: var(--ink-muted);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

/* ========== BUTTONS ========== */
.btn-co-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-co-primary:hover {
  background: var(--ink-light);
  color: #fff;
}

.btn-co-brass {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--brass);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-co-brass:hover {
  background: var(--brass-dark);
  color: var(--ink);
}

.btn-co-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-co-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-dark);
}

/* Bootstrap button overrides */
.btn-primary {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--ink-light);
  border-color: var(--ink-light);
  color: #fff;
  box-shadow: none;
}

.btn-success {
  background-color: var(--sage);
  border-color: var(--sage);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: #6a8e6e;
  border-color: #6a8e6e;
  color: #fff;
  box-shadow: none;
}

.btn-danger {
  background-color: var(--rose);
  border-color: var(--rose);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: #a5535a;
  border-color: #a5535a;
  color: #fff;
  box-shadow: none;
}

.btn-warning {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #b4614b;
  border-color: #b4614b;
  color: #fff;
  box-shadow: none;
}

.btn-outline-primary {
  color: var(--ink);
  border-color: var(--stone);
  border-radius: var(--radius-md);
  font-weight: 600;
}

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

.btn-outline-secondary {
  color: var(--ink-muted);
  border-color: var(--stone);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.btn-outline-secondary:hover {
  background-color: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}

.btn-outline-success {
  color: var(--sage);
  border-color: var(--sage);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.btn-outline-success:hover {
  background-color: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.btn-outline-info {
  color: var(--slate);
  border-color: var(--slate);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.btn-outline-info:hover {
  background-color: var(--slate);
  border-color: var(--slate);
  color: #fff;
}

.btn-outline-danger {
  color: var(--rose);
  border-color: var(--rose);
  border-radius: var(--radius-md);
  font-weight: 600;
}

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

/* ========== BOOTSTRAP ALERT OVERRIDES ========== */
.alert-success {
  background-color: rgba(122,158,126,0.12);
  border-color: rgba(122,158,126,0.25);
  color: var(--sage);
  border-radius: var(--radius-md);
}

.alert-danger {
  background-color: rgba(181,99,106,0.12);
  border-color: rgba(181,99,106,0.25);
  color: var(--rose);
  border-radius: var(--radius-md);
}

.alert-warning {
  background-color: rgba(196,113,91,0.12);
  border-color: rgba(196,113,91,0.25);
  color: var(--terracotta);
  border-radius: var(--radius-md);
}

.alert-info {
  background-color: rgba(107,127,153,0.12);
  border-color: rgba(107,127,153,0.25);
  color: var(--slate);
  border-radius: var(--radius-md);
}

.alert-primary {
  background-color: var(--brass-glow);
  border-color: rgba(232,200,114,0.25);
  color: var(--brass-dark);
  border-radius: var(--radius-md);
}

/* ========== BOOTSTRAP BADGE OVERRIDES ========== */
.badge.bg-success {
  background-color: var(--sage) !important;
}

.badge.bg-warning {
  background-color: var(--terracotta) !important;
  color: #fff !important;
}

.badge.bg-info {
  background-color: var(--slate) !important;
  color: #fff !important;
}

.badge.bg-primary {
  background-color: var(--brass) !important;
  color: var(--ink) !important;
}

.badge.bg-danger {
  background-color: var(--rose) !important;
}

.badge.bg-secondary {
  background-color: var(--ink-muted) !important;
}

/* ========== APPOINTMENT ROWS ========== */
.apt-row,
.appointment-row {
  display: flex;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--stone-light);
  transition: background 0.25s ease;
}

.apt-row:last-child,
.appointment-row:last-child {
  border-bottom: none;
}

.apt-row:hover,
.appointment-row:hover {
  background: var(--stone-light);
}

.apt-time,
.appt-time {
  width: 80px;
  flex-shrink: 0;
}

.apt-time .time,
.appt-time .time {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.apt-time .duration,
.appt-time .duration {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.apt-divider,
.appt-divider {
  width: 3px;
  height: 36px;
  border-radius: 3px;
  margin: 0 var(--sp-4);
  flex-shrink: 0;
}

.apt-divider.sage,
.appt-divider.sage { background: var(--sage); }
.apt-divider.brass,
.appt-divider.brass { background: var(--brass); }
.apt-divider.slate,
.appt-divider.slate { background: var(--slate); }
.apt-divider.terracotta,
.appt-divider.terracotta { background: var(--terracotta); }
.apt-divider.rose,
.appt-divider.rose { background: var(--rose); }

.apt-details,
.appt-details {
  flex: 1;
  min-width: 0;
}

.apt-details .customer,
.appt-details .customer {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.apt-details .service,
.appt-details .service {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.apt-status,
.appt-status {
  flex-shrink: 0;
  margin-left: var(--sp-4);
}

/* ========== ACTIVITY FEED ========== */
.activity-list {
  padding: var(--sp-3) 0;
}

.activity-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  transition: background 0.25s ease;
}

.activity-item:hover {
  background: var(--stone-light);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.activity-dot.sage { background: var(--sage); }
.activity-dot.brass { background: var(--brass); }
.activity-dot.slate { background: var(--slate); }
.activity-dot.terracotta { background: var(--terracotta); }
.activity-dot.rose { background: var(--rose); }

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 0.85rem;
  color: var(--charcoal);
  line-height: 1.4;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ========== SECTION DIVIDERS ========== */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-8) 0 var(--sp-6);
}

.section-divider .label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  white-space: nowrap;
}

.section-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

/* ========== CONTENT GRID ========== */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

/* ========== UTILITY CLASSES ========== */
/* Text Colors */
.text-ink { color: var(--ink) !important; }
.text-ink-light { color: var(--ink-light) !important; }
.text-ink-muted { color: var(--ink-muted) !important; }
.text-brass { color: var(--brass) !important; }
.text-brass-dark { color: var(--brass-dark) !important; }
.text-sage { color: var(--sage) !important; }
.text-terracotta { color: var(--terracotta) !important; }
.text-slate { color: var(--slate) !important; }
.text-rose { color: var(--rose) !important; }
.text-charcoal { color: var(--charcoal) !important; }

/* Background Colors */
.bg-linen { background-color: var(--linen) !important; }
.bg-paper { background-color: var(--paper) !important; }
.bg-stone { background-color: var(--stone) !important; }
.bg-stone-light { background-color: var(--stone-light) !important; }
.bg-ink { background-color: var(--ink) !important; }
.bg-brass { background-color: var(--brass) !important; }
.bg-sage { background-color: var(--sage) !important; }
.bg-terracotta { background-color: var(--terracotta) !important; }
.bg-slate { background-color: var(--slate) !important; }
.bg-rose { background-color: var(--rose) !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .co-main {
    margin-left: 0;
    max-width: 100%;
    padding: var(--sp-5) var(--sp-4) var(--sp-7);
    padding-top: calc(var(--sp-5) + 56px); /* Account for toggle button */
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CHAT WIDGET WARM OVERRIDES ========== */
.chat-widget .chat-toggle {
  background: var(--ink);
}

.chat-widget .chat-toggle:hover {
  background: var(--ink-light);
}

.chat-widget .chat-header {
  background: var(--ink);
}

.chat-widget .chat-container {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.chat-widget .chat-message.user {
  background: var(--ink);
}

.chat-widget .chat-message.assistant {
  background: var(--stone-light);
  color: var(--charcoal);
}

.chat-widget .chat-input:focus {
  border-color: var(--brass);
}

.chat-widget .chat-send {
  background: var(--ink);
}

.chat-widget .chat-send:hover {
  background: var(--ink-light);
}

/* ========== FOOTER WARM OVERRIDES ========== */
.site-footer {
  background-color: var(--stone-light) !important;
  border-top: 1px solid var(--stone) !important;
}

.site-footer a {
  color: var(--ink-muted) !important;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--brass-dark) !important;
}

/* ========== DROPDOWN OVERRIDES ========== */
.dropdown-menu {
  background-color: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: var(--charcoal);
  font-size: 0.9rem;
  padding: var(--sp-2) var(--sp-4);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--stone-light);
  color: var(--ink);
}

/* ========== PAGINATION OVERRIDES ========== */
.page-link {
  color: var(--ink);
  border-color: var(--stone);
  background-color: var(--paper);
}

.page-link:hover {
  color: var(--brass-dark);
  background-color: var(--stone-light);
  border-color: var(--stone);
}

.page-item.active .page-link {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ========== MODAL OVERRIDES ========== */
.modal-content {
  background-color: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
}

.modal-header {
  border-bottom: 1px solid var(--stone-light);
}

.modal-footer {
  border-top: 1px solid var(--stone-light);
}
