:root {
  --wv-primary: #4f46e5;
  --wv-sidebar: #1e1b4b;
  --wv-bg: #f5f6fb;
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4f46e5;
  --bs-link-color-rgb: 79, 70, 229;
}
body { background: var(--wv-bg); font-size: .925rem; }
.btn-primary { --bs-btn-bg: var(--wv-primary); --bs-btn-border-color: var(--wv-primary); --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca; --bs-btn-active-bg: #3730a3; }
.btn-outline-primary { --bs-btn-color: var(--wv-primary); --bs-btn-border-color: var(--wv-primary); --bs-btn-hover-bg: var(--wv-primary); --bs-btn-hover-border-color: var(--wv-primary); }
.text-bg-primary { background-color: var(--wv-primary) !important; }

.app { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex-shrink: 0; background: var(--wv-sidebar); color: #c7d2fe; display: flex; flex-direction: column; padding: 1.25rem .75rem; position: sticky; top: 0; height: 100vh; }
.brand { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .08em; text-decoration: none; padding: 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #818cf8, #c084fc); color: #fff; }
.sidebar-org { font-size: .8rem; color: #a5b4fc; padding: .25rem .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .75rem; }
.sidebar nav a { display: flex; align-items: center; gap: .65rem; color: #c7d2fe; text-decoration: none; padding: .55rem .75rem; border-radius: .5rem; margin-bottom: 2px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: var(--wv-primary); color: #fff; }
.sidebar-foot { margin-top: auto; padding: .75rem .5rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.content { flex: 1; min-width: 0; }
.topbar { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid #e5e7eb; }

@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .2s; }
  .sidebar.open { left: 0; }
}

.card { border: 1px solid #e7e8f0; border-radius: .75rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; border-bottom: 1px solid #eef0f5; font-weight: 600; border-radius: .75rem .75rem 0 0 !important; }
.stat { padding: 1rem 1.25rem; }
.stat .stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.stat .stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat .stat-sub { font-size: .8rem; color: #6b7280; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; }

.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .6rem .75rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; font-weight: 600; background: #fafbff; }
.table-card { margin-bottom: 0; }
.event-tabs .nav-link { color: #4b5563; }
.event-tabs .nav-link.active { color: var(--wv-primary); font-weight: 600; }
.progress { height: .5rem; }
.form-label { font-weight: 500; font-size: .85rem; margin-bottom: .25rem; }
.empty { text-align: center; color: #9ca3af; padding: 2rem 1rem; }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; }
.booth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.booth { border-radius: .5rem; padding: .5rem; text-align: center; font-size: .75rem; border: 1px solid; line-height: 1.2; }
.booth strong { display: block; font-size: .9rem; }
.booth.available { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.booth.reserved  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.booth.booked    { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.booth.blocked   { background: #f3f4f6; border-color: #d1d5db; color: #4b5563; }
.pipeline { display: flex; gap: .25rem; flex-wrap: wrap; }
.pipeline .step { flex: 1; min-width: 90px; text-align: center; background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; padding: .5rem; }
.pipeline .step b { display: block; font-size: 1.2rem; }
.auth-bg { background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 60%, #a855f7 100%); }
.auth-card { max-width: 440px; width: 100%; }
.money-pos { color: #047857; }
.money-neg { color: #b91c1c; }

/* Event categories */
.cat-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 500; padding: .15rem .55rem; border-radius: 999px;
  color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, #fff); border: 1px solid color-mix(in srgb, var(--cat) 30%, #fff); white-space: nowrap; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.cat-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-pick input { display: none; }
.cat-pick label { cursor: pointer; opacity: .55; transition: opacity .1s; }
.cat-pick label .cat-chip { font-size: .8rem; padding: .3rem .7rem; }
.cat-pick input:checked + label { opacity: 1; }
.cat-pick input:checked + label .cat-chip { background: var(--cat); color: #fff; border-color: var(--cat); }
.color-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: middle; }
