/* ── GILBEYPINK APP — BASE STYLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pink:        #FF96B6;
  --pink-hover:  #ff7aa0;
  --pink-light:  #FFE8F0;
  --pink-mid:    #ffd5e8;
  --charcoal:    #262626;
  --dark:        #262626;
  --text:        #262626;
  --muted:       #717171;
  --border:      #E8E8E8;
  --bg:          #FAFAFA;
  --white:       #FFFFFF;
  --danger:      #EF4444;
  --success:     #10B981;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(38,38,38,0.07);
  --shadow-lg:   0 8px 32px rgba(38,38,38,0.11);
}
html, body { height: 100%; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D1D1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 0.875rem;
  font-weight: 700; border: none; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--pink); color: var(--charcoal); }
.btn-primary:hover { background: var(--pink-hover); }
.btn-secondary { background: var(--white); color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: white; }
.btn-danger { background: #FEF2F2; color: var(--danger); border: 1.5px solid #FECACA; }
.btn-danger:hover { background: var(--danger); color: white; border-color: var(--danger); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 11px; font-size: 0.78rem; }
.btn-lg { padding: 11px 22px; font-size: 0.95rem; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 700; color: var(--text); letter-spacing: 0.02em; text-transform: uppercase; }
.form-input, .form-select {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--pink); }
.form-hint { font-size: 0.72rem; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── TOGGLE ── */
.toggle-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-wrap label { font-size: 0.875rem; font-weight: 600; }
.toggle {
  position: relative; width: 42px; height: 24px;
  background: var(--border); border-radius: 12px; cursor: pointer;
  transition: background 0.2s; flex-shrink: 0;
}
.toggle.on { background: var(--pink); }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left 0.2s;
}
.toggle.on::after { left: 21px; }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(38,38,38,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; backdrop-filter: blur(4px);
}
.modal-backdrop.hidden { display: none; }
.modal {
  background: white; border-radius: 14px; padding: 28px;
  width: 100%; max-width: 480px; box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
  border: 1px solid var(--border);
}
@keyframes modalIn { from { opacity:0; transform:translateY(10px) scale(0.98); } to { opacity:1; transform:none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.modal-close { background: none; border: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  background: var(--charcoal); color: white;
  padding: 11px 18px; border-radius: 10px;
  font-size: 0.825rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.25s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.hidden  { display: none; }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state-icon { font-size: 2.8rem; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 0.975rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; }
.badge-blue  { background: var(--pink-light); color: var(--charcoal); }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-red   { background: #FEF2F2; color: var(--danger); }
.badge-gray  { background: var(--bg); color: var(--muted); }
