/* Base styles for CRM */
:root { --bs-primary: #ca1995; --bs-primary-rgb: 202, 25, 149; --bs-link-color: #ca1995; }

/* Ensure buttons reflect brand primary */
.btn-primary {
  --bs-btn-bg: #ca1995;
  --bs-btn-border-color: #ca1995;
  --bs-btn-hover-bg: #b01785;
  --bs-btn-hover-border-color: #b01785;
  --bs-btn-active-bg: #9f1377;
  --bs-btn-active-border-color: #9f1377;
  --bs-btn-focus-shadow-rgb: 202, 25, 149;
}

.btn-outline-primary {
  --bs-btn-color: #ca1995;
  --bs-btn-border-color: #ca1995;
  --bs-btn-hover-bg: #ca1995;
  --bs-btn-hover-border-color: #ca1995;
  --bs-btn-active-bg: #9f1377;
  --bs-btn-active-border-color: #9f1377;
  --bs-btn-focus-shadow-rgb: 202, 25, 149;
}
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; }
.navbar-brand { font-weight: 600; }
.container-narrow { max-width: 880px; }
.brand-logo { height: 50px; width: auto; display: inline-block; }
.brand-title { font-weight: 600; }
/* Ensure logo sizing overrides Bootstrap defaults */
.navbar-brand .brand-logo { width: 50px !important; height: auto !important; max-height: none !important; object-fit: contain; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.quick-tile { display: flex; align-items: center; justify-content: center; flex-direction: column; text-decoration: none; border: 1px solid var(--bs-primary); border-radius: .75rem; height: 140px; background: #fff; color: #212529; }
.quick-tile .bi { font-size: 28px; color: var(--bs-primary); margin-bottom: 8px; }
.quick-tile span { font-weight: 500; text-align: center; }
.quick-tile:hover { background: rgba(202, 25, 149, .06); border-color: #ca1995; }
@media (max-width: 576px) { .quick-tile { height: 120px; } }

[data-bs-theme="dark"] .quick-tile {
  background: rgba(255,255,255,.04);
  color: var(--bs-body-color);
  border-color: rgba(202, 25, 149, .6);
}

[data-bs-theme="dark"] .quick-card {
  background: rgba(255,255,255,.04);
  color: var(--bs-body-color);
  border-color: rgba(202, 25, 149, .6);
}

/* Card-style quick links inside the Quick Links card */
.quick-card { display: flex; align-items: center; justify-content: center; text-align: center; height: 140px; border: 1px solid var(--bs-primary); border-radius: .75rem; }
.quick-card .bi { font-size: 28px; color: var(--bs-primary); margin-bottom: 6px; display: block; }
.quick-card span { font-weight: 500; }
.quick-card:hover { background: rgba(202, 25, 149, .06); border-color: #ca1995; }
@media (max-width: 576px) { .quick-card { height: 120px; } }
