@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* BIMCHIK Signature Sky-Blue Brand Palette */
  --sky-50: #f3faff;
  --sky-100: #e3f4fe;
  --sky-200: #bce5fd;
  --sky-300: #8bd2fa;
  --sky-400: #4dbbf0;
  --sky-500: #1fa2df;
  --sky-600: #0f85be;
  --sky-700: #0a6897;

  --ink-900: #142736;
  --ink-700: #2b4356;
  --ink-500: #5a7387;
  --ink-400: #7f98ab;
  --ink-300: #aac0d1;

  --surface: #ffffff;
  --surface-tint: #f8fcff;
  --line: #d6ebf8;
  --line-strong: #b8ddf4;

  --mint-600: #0f9d68;
  --mint-100: #e5f9f0;
  --amber-600: #c87b08;
  --amber-100: #fff6e5;
  --rose-600: #d9385a;
  --rose-100: #fff0f4;
  --indigo-600: #4663d8;
  --indigo-100: #eef2ff;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(17, 74, 112, 0.05);
  --shadow-sm: 0 6px 20px rgba(17, 74, 112, 0.07);
  --shadow-md: 0 14px 36px rgba(17, 74, 112, 0.1);
  --shadow-lg: 0 24px 56px rgba(15, 62, 96, 0.16);
  --shadow-cta: 0 10px 24px rgba(31, 162, 223, 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabbar-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--sky-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Reusable buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: scale(0.975);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--sky-500);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover:not(:disabled) {
  background: var(--sky-600);
  box-shadow: 0 12px 28px rgba(15, 133, 190, 0.38);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-900);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--sky-100);
  border-color: var(--sky-400);
}

.btn-soft {
  background: var(--sky-100);
  color: var(--sky-700);
}

.btn-soft:hover:not(:disabled) {
  background: var(--sky-200);
}

.btn-danger {
  background: var(--rose-100);
  color: var(--rose-600);
}

.btn-danger:hover:not(:disabled) {
  background: #ffe0e8;
}

.btn-success {
  background: var(--mint-600);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: #0b8758;
}

.btn-sm {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.85rem;
}

.btn-xs {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

/* Shared Segmented Filter Group */
.segment-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  box-shadow: var(--shadow-xs);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.segment-group::-webkit-scrollbar {
  display: none;
}

.segment-btn {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-700);
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.segment-btn:hover:not(.active) {
  background: var(--sky-50);
  color: var(--sky-700);
}

.segment-btn.active {
  background: var(--sky-500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 162, 223, 0.28);
}

@media (min-width: 480px) {
  .segment-btn {
    padding: 7px 16px;
    font-size: 0.83rem;
  }
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending { background: var(--amber-100); color: var(--amber-600); }
.status-confirmed { background: var(--sky-100); color: var(--sky-700); }
.status-in_progress { background: var(--indigo-100); color: var(--indigo-600); }
.status-completed { background: var(--mint-100); color: var(--mint-600); }
.status-cancelled { background: var(--rose-100); color: var(--rose-600); }
.status-no_show { background: #f1f5f9; color: var(--ink-500); }

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tier-top { background: var(--ink-900); color: #fff; }
.tier-senior { background: var(--sky-200); color: var(--ink-900); }
.tier-master { background: var(--sky-100); color: var(--sky-700); }

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-700);
}

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-900);
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.textarea {
  min-height: 82px;
  resize: vertical;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3.5px rgba(31, 162, 223, 0.16);
}

/* Toast notifications */
.toast-stack {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 380px);
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-stack {
    top: auto;
    bottom: 24px;
    left: auto;
    right: 24px;
    transform: none;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s var(--ease);
}

.toast-success { background: #0f7653; }
.toast-error { background: #be1f41; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Brand SVG Logo */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--sky-200);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-wordmark .bim { color: var(--sky-500); }
.brand-wordmark .ch, .brand-wordmark .k { color: var(--ink-900); }
.brand-wordmark .scissors-i {
  display: inline-flex;
  align-items: center;
  margin: 0 -1px;
  color: var(--sky-500);
}

.brand-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.01em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

@media (min-width: 480px) {
  .brand-sub {
    max-width: none;
  }
}

/* Scrollbars hidden helper */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink-500);
}

.empty-state h4 {
  margin: 8px 0 4px;
  color: var(--ink-900);
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
