/* BookMeet — small layer on top of Tailwind for components Tailwind's CDN can't express succinctly. */
@layer base {
  *, ::before, ::after { border-color: #EAECF0; }
  button, [role=button] { cursor: pointer; }
}

@layer components {
:root { --bm-primary: #6C70DC; --bm-side: #23272E; }

.bm-logo { width: 34px; height: 34px; border-radius: 10px; position: relative; display: inline-block;
  background: linear-gradient(135deg, #8B8EF0 0%, #6C70DC 55%, #5458C8 100%); box-shadow: 0 4px 12px rgba(108,112,220,.35); }
.bm-logo::before { content: ''; position: absolute; left: 7px; right: 7px; top: 9px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); }
.bm-logo::after { content: ''; position: absolute; left: 11px; top: 15px; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg); border-radius: 1px; }

.bm-scroll::-webkit-scrollbar { width: 6px; } .bm-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }

/* form controls */
.bm-input, .bm-select, .bm-textarea { width: 100%; height: 48px; border: 1px solid #E4E7EC; border-radius: 4px; background: #fff; padding: 0 14px;
  font-size: 14px; color: #344054; outline: none; transition: border-color .15s, box-shadow .15s; }
.bm-textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.bm-input:focus, .bm-select:focus, .bm-textarea:focus { border-color: var(--bm-primary); box-shadow: 0 0 0 3px rgba(108,112,220,.12); }
.bm-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.bm-label { display: block; font-size: 14px; color: #344054; margin-bottom: 8px; }
.bm-label .req { color: #F04438; margin-left: 2px; }
.bm-help { font-size: 12px; color: #98A2B3; margin-top: 6px; }
.bm-error { font-size: 12px; color: #F04438; margin-top: 6px; }
.has-error .bm-input, .has-error .bm-select, .has-error .bm-textarea { border-color: #F04438; }

.bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 4px;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; transition: background .15s, opacity .15s; white-space: nowrap; }
.bm-btn-primary { background: var(--bm-primary); color: #fff; } .bm-btn-primary:hover { background: #5A5ECB; }
.bm-btn-light { background: #F2F4F7; color: #667085; border: 1px solid #EAECF0; } .bm-btn-light:hover { background: #EAECF0; }
.bm-btn-danger { background: #FEE4E2; color: #D92D20; } .bm-btn-danger:hover { background: #FECDCA; }
.bm-btn-ai { background: linear-gradient(90deg, #6C70DC, #9B51E0); color: #fff; } .bm-btn-ai:hover { opacity: .92; }
.bm-btn[disabled] { opacity: .55; pointer-events: none; }
.bm-btn-sm { height: 34px; padding: 0 12px; font-size: 12px; }

.bm-card { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.05); }

/* toggle */
.bm-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.bm-toggle input { opacity: 0; width: 0; height: 0; }
.bm-toggle span { position: absolute; inset: 0; background: #D0D5DD; border-radius: 24px; transition: .2s; cursor: pointer; }
.bm-toggle span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.bm-toggle input:checked + span { background: var(--bm-primary); }
.bm-toggle input:checked + span::before { transform: translateX(18px); }

/* table rows as cards (reference style) */
.bm-table { border-collapse: separate; border-spacing: 0 8px; width: 100%; }
.bm-table thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; color: #344054; text-align: left; padding: 6px 14px; white-space: nowrap; }
.bm-table tbody tr { background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.bm-table tbody td { padding: 14px; font-size: 14px; color: #344054; vertical-align: middle; }
.bm-table tbody td:first-child { border-radius: 4px 0 0 4px; } .bm-table tbody td:last-child { border-radius: 0 4px 4px 0; }
.bm-table tbody tr:hover { box-shadow: 0 2px 8px rgba(16,24,40,.08); }
.bm-sort { cursor: pointer; user-select: none; } .bm-sort:hover { color: var(--bm-primary); }

/* status icon badges */
.bm-status { width: 30px; height: 30px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.bm-status-approved, .bm-status-completed { background: #E7F8EC; color: #2EB84B; }
.bm-status-pending { background: #FFF1E6; color: #F2994A; }
.bm-status-canceled, .bm-status-rejected { background: #FEECEC; color: #EB5757; }
.bm-status-no_show { background: #EEF0F4; color: #667085; }
.bm-risk { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bm-risk-low { background: #ECFDF3; color: #027A48; } .bm-risk-medium { background: #FFFAEB; color: #B54708; } .bm-risk-high { background: #FEF3F2; color: #B42318; }
.bm-risk::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* drawer */
.bm-drawer-backdrop { position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: 60; opacity: 0; transition: opacity .2s; }
.bm-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(880px, 100vw); background: #fff; z-index: 61; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(16,24,40,.08); }
.bm-drawer.open { transform: translateX(0); } .bm-drawer-backdrop.open { opacity: 1; }
.bm-drawer-head { height: 84px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid #EEF0F4; flex-shrink: 0; }
.bm-drawer-body { flex: 1; overflow-y: auto; padding: 24px 44px; }
.bm-drawer-foot { flex-shrink: 0; border-top: 1px solid #EEF0F4; padding: 16px 28px; display: flex; align-items: center; gap: 12px; }
.bm-icon-badge { width: 44px; height: 44px; border-radius: 10px; background: var(--bm-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* multiselect */
.bm-ms { position: relative; }
.bm-ms-box { min-height: 48px; border: 1px solid #E4E7EC; border-radius: 4px; padding: 6px 36px 6px 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: pointer; background: #fff; }
.bm-ms-chip { background: #F0F0FC; color: #4A4EB5; font-size: 12px; padding: 4px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; }
.bm-ms-pop { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #E4E7EC; border-radius: 6px; box-shadow: 0 12px 24px rgba(16,24,40,.12); max-height: 260px; overflow: auto; }
.bm-ms-pop label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: 14px; cursor: pointer; } .bm-ms-pop label:hover { background: #F9FAFB; }

/* stepper */
.bm-qty { display: inline-flex; align-items: center; border: 1px solid #E4E7EC; border-radius: 4px; overflow: hidden; }
.bm-qty button { width: 34px; height: 34px; font-size: 18px; color: #667085; } .bm-qty button:hover { background: #F2F4F7; }
.bm-qty span { min-width: 34px; text-align: center; font-size: 14px; }

/* toasts */
.bm-toast { min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 6px; color: #fff; font-size: 14px; box-shadow: 0 8px 20px rgba(16,24,40,.18); animation: bmIn .2s ease; }

.bm-skel { background: linear-gradient(90deg, #EEF0F4 25%, #F5F7FA 50%, #EEF0F4 75%); background-size: 200% 100%; animation: bmSk 1.2s infinite; border-radius: 4px; }


/* calendar */
.bm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bm-ev { border-radius: 4px; font-size: 11.5px; line-height: 1.25; padding: 3px 6px; color: #fff; overflow: hidden; cursor: grab; }
.bm-ev:active { cursor: grabbing; }
.bm-slot-drop { transition: background .1s; } .bm-slot-drop.drag-over { background: #F0F0FC; }

/* AI shimmer */
.bm-ai-glow { position: relative; } .bm-ai-glow::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(90deg, #6C70DC, #9B51E0, #2D9CDB); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.bm-typing span { width: 6px; height: 6px; border-radius: 50%; background: #98A2B3; display: inline-block; animation: bmDot 1s infinite; }
.bm-typing span:nth-child(2) { animation-delay: .15s } .bm-typing span:nth-child(3) { animation-delay: .3s }
}

@keyframes bmIn { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes bmSk { to { background-position: -200% 0 } }
@keyframes bmDot { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }
@media print { .no-print { display: none !important } body { background: #fff !important } }
