/* ================================================================
   BOOKINGS ADMIN PAGE
   ================================================================ */

/* ── Hero ── */
.bk-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a2f55 55%, #1335de 100%);
  padding: 36px 40px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.bk-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,.3) 0%, transparent 70%);
  pointer-events: none;
}
.bk-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(19,53,222,.15) 0%, transparent 70%);
  pointer-events: none;
}
.bk-hero-content {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.bk-hero-icon {
  width: 54px; height: 54px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bk-hero-icon .material-symbols-outlined { font-size: 28px; color: #93c5fd; }
.bk-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -.5px;
}
.bk-hero-sub {
  font-size: 13.5px;
  color: #93c5fd;
  margin: 0;
  max-width: 460px;
}

/* Stats */
.bk-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  min-width: 90px;
  backdrop-filter: blur(6px);
}
.bk-stat--accent {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
}
.bk-stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.bk-stat-label {
  font-size: 11px;
  color: #93c5fd;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.bk-stat--accent .bk-stat-label { color: #fcd34d; }

/* ── Filters Panel ── */
.bk-filters-panel {
  background: white;
  border-bottom: 1px solid #e8ecf0;
  padding: 20px 40px;
}

.bk-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.bk-search-icon {
  position: absolute;
  left: 13px;
  font-size: 20px !important;
  color: #94a3b8;
  pointer-events: none;
}
.bk-search {
  width: 100%;
  padding: 10px 40px 10px 42px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: #334155;
  background: #f8fafc;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.bk-search:focus {
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.bk-search::placeholder { color: #94a3b8; }
.bk-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: color .15s;
}
.bk-search-clear:hover { color: #475569; }
.bk-search-clear .material-symbols-outlined { font-size: 18px; }

.bk-filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.bk-filter-group { display: flex; flex-direction: column; gap: 6px; }
.bk-filter-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.bk-filter-label .material-symbols-outlined { font-size: 15px; }
.bk-filter-input {
  padding: 9px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #334155;
  background: #f8fafc;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  min-width: 160px;
}
.bk-filter-input:focus {
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.bk-filter-actions { flex: 1; }

/* Quick buttons */
.bk-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  background: white;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.bk-quick-btn .material-symbols-outlined { font-size: 16px; }
.bk-quick-btn:hover { border-color: #2563eb; color: #2563eb; }
.bk-quick-btn--active {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-color: transparent;
  color: white ;
  box-shadow: 0 3px 10px rgba(37,99,235,.3);
}
.bk-tomorrow-badge {
  position: absolute;
  top: -7px; right: -7px;
  width: 18px; height: 18px;
  background: #f59e0b;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.bk-quick-btn--active .bk-tomorrow-badge { background: #fbbf24; color: #1e40af; }

.bk-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  background: white;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
}
.bk-clear-btn:hover { border-color: #dc2626; color: #dc2626; }
.bk-clear-btn .material-symbols-outlined { font-size: 16px; }

/* ── Loading ── */
.bk-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  gap: 16px;
  color: #64748b;
  font-size: 14px;
}
.bk-spinner {
  width: 40px; height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: bk-spin .7s linear infinite;
}
.bk-spinner-sm {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: bk-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

/* ── Tables section ── */
.bk-tables-wrap {
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Slot card */
.bk-slot-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #e8ecf4;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
  animation: bk-slide-in .3s ease both;
}
@keyframes bk-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slot headers */
.bk-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.bk-slot-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bk-slot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
}
.bk-slot-icon { font-size: 18px !important; color: rgba(255,255,255,.8); }
.bk-slot-time {
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -.3px;
}
.bk-slot-label {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.bk-slot-count {
  background: rgba(255,255,255,.2);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
}

/* Color variants */
.bk-slot-header--blue  { background: linear-gradient(135deg, #1335de, #0f2fb8); }
.bk-slot-header--green { background: linear-gradient(135deg, #059669, #047857); }
.bk-slot-header--amber { background: linear-gradient(135deg, #d97706, #b45309); }
.bk-slot-header--red   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.bk-slot-header--teal  { background: linear-gradient(135deg, #0891b2, #0e7490); }
.bk-slot-header--orange  { background: linear-gradient(135deg, #c2410c, #9a3412); }

/* Table */
.bk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.bk-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #e8ecf4;
}
.bk-table thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}
.bk-th-num    { width: 44px; }
.bk-th-action { width: 60px; text-align: center; }

.bk-tr { border-bottom: 1px solid #f1f5f9; transition: background .1s; }
.bk-tr:last-child { border-bottom: none; }
.bk-tr:hover { background: #f8fafc; }

.bk-table tbody td {
  padding: 12px 14px;
  color: #334155;
  vertical-align: middle;
}
.bk-td-num   { color: #94a3b8; font-weight: 600; font-size: 12px; }
.bk-td-name  { font-weight: 600; color: #0f172a; white-space: nowrap; }
.bk-td-email { color: #64748b; font-size: 13px; }
.bk-td-date  { white-space: nowrap; color: #475569; font-size: 13px; }

.bk-type-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.bk-level-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.bk-level-badge--pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.bk-level-badge--cancelled {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.bk-delete-btn {
  width: 32px; height: 32px;
  border: none;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  margin: 0 auto;
}
.bk-delete-btn:hover {
  background: #dc2626;
  color: white;
  box-shadow: 0 3px 10px rgba(220,38,38,.25);
}
.bk-delete-btn .material-symbols-outlined { font-size: 16px; }

/* ── Empty state ── */
.bk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  gap: 10px;
  color: #94a3b8;
  background: white;
  border-radius: 14px;
  border: 1px solid #e8ecf4;
}
.bk-empty-icon { font-size: 56px !important; color: #cbd5e1; }
.bk-empty-title { font-size: 16px; font-weight: 600; color: #475569; margin: 0; }
.bk-empty-sub   { font-size: 13px; color: #94a3b8; margin: 0; }
.bk-empty-btn {
  margin-top: 8px;
  padding: 9px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  background: white;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
}
.bk-empty-btn:hover { border-color: #2563eb; color: #2563eb; }

/* ================================================================
   DELETE MODAL
   ================================================================ */

.bk-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: bk-fade-in .2s ease;
}
@keyframes bk-fade-in { from { opacity: 0; } to { opacity: 1; } }

.bk-modal {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(15,23,42,.2);
  overflow: hidden;
  animation: bk-modal-up .25s cubic-bezier(.34,1.56,.64,1);

  max-height: 80vh;       /* limit height to screen */
  overflow-y: auto;  
  display: flex;
  flex-direction: column;


   /* enable vertical scroll */
}
.bk-form-grid {
  overflow-y: auto;
  flex: 1;
}  
@keyframes bk-modal-up {
  from { opacity: 0; transform: scale(.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.bk-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.bk-modal-icon-wrap {
  width: 40px; height: 40px;
  background: #fef2f2;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bk-modal-icon-wrap .material-symbols-outlined { font-size: 20px; color: #dc2626; }
.bk-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}
.bk-modal-sub { font-size: 12px; color: #94a3b8; margin: 0; }
.bk-modal-close {
  margin-left: auto;
  width: 30px; height: 30px;
  border: none; background: #f1f5f9;
  border-radius: 8px; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.bk-modal-close:hover { background: #e2e8f0; }
.bk-modal-close .material-symbols-outlined { font-size: 16px; }

.bk-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bk-modal-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
}
.bk-modal-info-row .material-symbols-outlined { font-size: 17px; color: #64748b; flex-shrink: 0; }

.bk-modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f5f9;
}
.bk-modal-btn-cancel {
  padding: 9px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  background: white;
  color: #64748b;
  font-size: 13px; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer; transition: all .2s;
}
.bk-modal-btn-cancel:hover { background: #f8fafc; border-color: #cbd5e1; }
.bk-modal-btn-delete {
  padding: 9px 20px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  font-size: 13px; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center;
}
.bk-modal-btn-delete:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(220,38,38,.35);
  transform: translateY(-1px);
}
.bk-modal-btn-delete:disabled { opacity: .65; cursor: not-allowed; }

/* ================================================================
   TOASTS
   ================================================================ */

.bk-toast-stack {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.bk-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(15,23,42,.15);
  animation: bk-toast-in .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
}
@keyframes bk-toast-in {
  from { opacity: 0; transform: translateX(40px) scale(.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.bk-toast-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bk-toast-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bk-toast-icon    { font-size: 18px !important; flex-shrink: 0; }
.bk-toast-success .bk-toast-icon { color: #10b981; }
.bk-toast-error   .bk-toast-icon { color: #ef4444; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .bk-hero          { padding: 28px 24px; }
  .bk-filters-panel { padding: 16px 24px; }
  .bk-tables-wrap   { padding: 20px 24px; }
}

@media (max-width: 768px) {
  .bk-hero          { padding: 24px 16px; }
  .bk-hero-title    { font-size: 1.5rem; }
  .bk-filters-panel { padding: 14px 16px; }
  .bk-filters-row   { flex-direction: column; gap: 10px; }
  .bk-filter-input  { min-width: 0; width: 100%; }
  .bk-tables-wrap   { padding: 16px; gap: 14px; }
  .bk-modal {
    max-height: 85vh;
    margin: 20px;
    border-radius: 16px;
  }

  /* .bk-table thead th:nth-child(4),.bk-table tbody td:nth-child(4) { display: none; } */
}

@media (max-width: 480px) {
  .bk-table thead th:nth-child(6),
  .bk-table tbody td:nth-child(6) { } /* Hide date */
  .bk-slot-label {color:rgba(33, 100, 255, 0.42) }
}

/* ================================================================
   ADD / EDIT SESSION MODAL
   ================================================================ */

/* Add button in filter bar */
.bk-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #1335de, #0f2fb8);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.bk-add-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1335de);
  box-shadow: 0 4px 14px rgba(19,53,222,.35);
  transform: translateY(-1px);
}
.bk-add-btn .material-symbols-outlined { font-size: 17px; }

/* Edit button in table */
.bk-edit-btn {
  width: 32px; height: 32px;
  border: none;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.bk-edit-btn:hover {
  background: #2563eb;
  color: white;
  box-shadow: 0 3px 10px rgba(37,99,235,.25);
}
.bk-edit-btn .material-symbols-outlined { font-size: 16px; }

/* Wider modal for add/edit */
.bk-modal--wide { max-width: 560px; }

.bk-modal-icon-wrap--blue { background: #eff6ff; }
.bk-modal-icon-wrap--blue .material-symbols-outlined { color: #2563eb; }

/* Form grid */
.bk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 24px;
}
.bk-form-grid--full { grid-column: 1 / -1; }

.bk-form-group { display: flex; flex-direction: column; gap: 5px; }
.bk-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.bk-form-input,
.bk-form-select {
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: 'Poppins', sans-serif;
  color: #0f172a;
  background: white;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.bk-form-input:focus,
.bk-form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.bk-form-input.is-filled { border-color: #059669; background: #f0fdf4; }

/* Profile search autocomplete */
.bk-autocomplete-wrap { position: relative; }
.bk-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  z-index: 3000;
  max-height: 220px;
  overflow-y: auto;
  animation: bk-fade-in .15s ease;
}
.bk-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid #f1f5f9;
}
.bk-autocomplete-item:last-child { border-bottom: none; }
.bk-autocomplete-item:hover { background: #f0f7ff; }

.bk-ac-avatar {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.bk-ac-info { display: flex; flex-direction: column; min-width: 0; }
.bk-ac-name  { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-ac-email { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-ac-level {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  background: #f0fdf4;
  color: #15803d;
  white-space: nowrap;
  flex-shrink: 0;
}

.bk-ac-searching {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bk-ac-empty {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

/* Avatar colors (reuse from customers) */
.avatar-color-0 { background: #2563eb; }
.avatar-color-1 { background: #7c3aed; }
.avatar-color-2 { background: #059669; }
.avatar-color-3 { background: #d97706; }
.avatar-color-4 { background: #dc2626; }
.avatar-color-5 { background: #0891b2; }

@media (max-width: 540px) {
  .bk-form-grid { grid-template-columns: 1fr; }
  .bk-form-grid--full { grid-column: auto; }
}

/* ================================================================
   ADD / EDIT SESSION MODAL — additional styles
   ================================================================ */
.bk-add-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #1335de, #0f2fb8);
  color: white; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 600; font-family: 'Poppins', sans-serif;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.bk-add-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1335de);
  box-shadow: 0 4px 14px rgba(19,53,222,.35);
  transform: translateY(-1px);
}
.bk-add-btn .material-symbols-outlined { font-size: 17px; }

.bk-edit-btn {
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: #eff6ff; color: #2563eb;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.bk-edit-btn:hover {
  background: #2563eb; color: white;
  box-shadow: 0 3px 10px rgba(37,99,235,.25);
}
.bk-edit-btn .material-symbols-outlined { font-size: 16px; }

/* action buttons cell — keep delete + edit side by side */
.bk-td-actions { display: flex; gap: 6px; justify-content: center; align-items: center; }

.bk-modal--wide { max-width: 560px; }
.bk-modal-icon-wrap--blue { background: #eff6ff; }
.bk-modal-icon-wrap--blue .material-symbols-outlined { color: #2563eb; }

/* Form grid inside modal */
.bk-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding: 20px 24px;
}
.bk-form-grid--full { grid-column: 1 / -1; }
.bk-form-group { display: flex; flex-direction: column; gap: 5px; }
.bk-form-label {
  font-size: 11px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .5px;
}
.bk-form-input, .bk-form-select {
  height: 42px; padding: 0 12px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 13.5px; font-family: 'Poppins', sans-serif;
  color: #0f172a; background: white;
  transition: border-color .2s, box-shadow .2s;
  outline: none; width: 100%;
}
.bk-form-input:focus, .bk-form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.bk-form-input.is-filled { border-color: #059669; background: #f0fdf4; }

/* Autocomplete */
.bk-autocomplete-wrap { position: relative; }
.bk-autocomplete-dropdown {
  position: absolute; top: calc(100% + 4px);
  left: 0; right: 0; background: white;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  z-index: 3000; max-height: 220px; overflow-y: auto;
  animation: bk-fade-in .15s ease;
}
.bk-autocomplete-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background .1s;
  border-bottom: 1px solid #f1f5f9;
}
.bk-autocomplete-item:last-child { border-bottom: none; }
.bk-autocomplete-item:hover { background: #f0f7ff; }
.bk-ac-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; flex-shrink: 0;
}
.bk-ac-info { display: flex; flex-direction: column; min-width: 0; }
.bk-ac-name  { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-ac-email { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-ac-level {
  margin-left: auto; padding: 2px 8px; border-radius: 50px;
  font-size: 10px; font-weight: 700;
  background: #f0fdf4; color: #15803d;
  white-space: nowrap; flex-shrink: 0;
}
.bk-ac-searching, .bk-ac-empty {
  padding: 14px; text-align: center; font-size: 12px; color: #94a3b8;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* Avatar colors */
.av-c0{background:#2563eb} .av-c1{background:#7c3aed}
.av-c2{background:#059669} .av-c3{background:#d97706}
.av-c4{background:#dc2626} .av-c5{background:#0891b2}

@media (max-width: 540px) {
  .bk-form-grid { grid-template-columns: 1fr; }
  .bk-form-grid--full { grid-column: auto; }
}
.bk-screenshot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(19, 53, 222, 0.08);
    color: #1335de;
    cursor: pointer;
    transition: background 0.2s;
}

.bk-screenshot-btn:hover {
    background: rgba(19, 53, 222, 0.18);
}