/* ============================================================
   LBWO — Frontend CSS
   Design system: clean, mobile-first, WhatsApp green accent
   ============================================================ */

:root {
  --lbwo-green:      #25D366;
  --lbwo-green-dark: #128C7E;
  --lbwo-green-light:#DCF8C6;
  --lbwo-text:       #1a1a2e;
  --lbwo-muted:      #6b7280;
  --lbwo-border:     #e5e7eb;
  --lbwo-bg:         #f9fafb;
  --lbwo-white:      #ffffff;
  --lbwo-danger:     #ef4444;
  --lbwo-warning:    #f59e0b;
  --lbwo-info:       #3b82f6;
  --lbwo-radius:     12px;
  --lbwo-radius-sm:  6px;
  --lbwo-shadow:     0 2px 12px rgba(0,0,0,.08);
  --lbwo-shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --lbwo-font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --lbwo-transition: .18s ease;
}

/* ── Base ── */
.lbwo-directory,
.lbwo-profile,
.lbwo-order-wrap,
.lbwo-dashboard,
.lbwo-order-success {
  font-family: var(--lbwo-font);
  color: var(--lbwo-text);
  line-height: 1.6;
  box-sizing: border-box;
}
.lbwo-directory *,
.lbwo-profile *,
.lbwo-order-wrap *,
.lbwo-dashboard *,
.lbwo-order-success * { box-sizing: inherit; }

/* ── Buttons ── */
.lbwo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--lbwo-radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--lbwo-transition), transform var(--lbwo-transition), box-shadow var(--lbwo-transition);
  white-space: nowrap;
}
.lbwo-btn:hover  { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.lbwo-btn:active { transform: translateY(0); }

.lbwo-btn--primary  { background: var(--lbwo-green); color: #fff; }
.lbwo-btn--primary:hover { background: var(--lbwo-green-dark); color: #fff; }
.lbwo-btn--ghost    { background: transparent; color: var(--lbwo-text); border: 2px solid var(--lbwo-border); }
.lbwo-btn--ghost:hover { border-color: var(--lbwo-green); color: var(--lbwo-green); }
.lbwo-btn--danger   { background: var(--lbwo-danger); color: #fff; }
.lbwo-btn--danger:hover { background: #dc2626; color: #fff; }
.lbwo-btn--sm       { padding: 6px 12px; font-size: .8rem; }
.lbwo-btn--lg       { padding: 14px 28px; font-size: 1rem; }
.lbwo-btn--full     { width: 100%; justify-content: center; }
.lbwo-btn--loading  { opacity: .7; pointer-events: none; }

.lbwo-whatsapp-btn {
  background: #25D366;
  color: #fff !important;
  border-radius: var(--lbwo-radius-sm);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--lbwo-transition);
}
.lbwo-whatsapp-btn:hover { background: var(--lbwo-green-dark); }

/* ── Notices ── */
.lbwo-notice {
  padding: 12px 16px;
  border-radius: var(--lbwo-radius-sm);
  margin: 12px 0;
  font-size: .9rem;
}
.lbwo-notice--error   { background: #fef2f2; color: #b91c1c; border-left: 4px solid var(--lbwo-danger); }
.lbwo-notice--success { background: #f0fdf4; color: #166534; border-left: 4px solid var(--lbwo-green); }
.lbwo-notice--warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--lbwo-warning); }
.lbwo-notice--info    { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--lbwo-info); }

/* ── Empty states ── */
.lbwo-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--lbwo-muted);
}
.lbwo-empty__icon { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ── Muted ── */
.lbwo-muted { color: var(--lbwo-muted); font-size: .85rem; }
.lbwo-required { color: var(--lbwo-danger); }

/* ── Status pills ── */
.lbwo-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.lbwo-status--active    { background: #d1fae5; color: #065f46; }
.lbwo-status--pending   { background: #fef3c7; color: #92400e; }
.lbwo-status--suspended { background: #fee2e2; color: #991b1b; }

/* ── Order status ── */
.lbwo-order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.lbwo-order-status--new       { background: #dbeafe; color: #1e40af; }
.lbwo-order-status--seen      { background: #e5e7eb; color: #374151; }
.lbwo-order-status--confirmed { background: #d1fae5; color: #065f46; }
.lbwo-order-status--cancelled { background: #fee2e2; color: #991b1b; }

/* ── Table ── */
.lbwo-table-wrap { overflow-x: auto; }
.lbwo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.lbwo-table th,
.lbwo-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--lbwo-border);
  text-align: left;
  vertical-align: middle;
}
.lbwo-table th { background: var(--lbwo-bg); font-weight: 600; color: var(--lbwo-muted); }
.lbwo-table tbody tr:hover { background: var(--lbwo-bg); }
.lbwo-order-row--new { background: #eff6ff !important; }

/* ── Tags ── */
.lbwo-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  margin-left: 4px;
}
.lbwo-tag--daily  { background: #fef3c7; color: #92400e; }
.lbwo-tag--unavail{ background: #fee2e2; color: #991b1b; }

/* ── Phone link ── */
.lbwo-phone-link { color: var(--lbwo-green-dark); font-size: .85rem; }

/* ── Auth pages (inscription / connexion) ── */
.lbwo-auth-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px;
}
.lbwo-auth-card {
  background: var(--lbwo-white);
  border: 1px solid var(--lbwo-border);
  border-radius: var(--lbwo-radius);
  padding: 32px;
  box-shadow: var(--lbwo-shadow-lg);
}
.lbwo-auth-card__header { text-align: center; margin-bottom: 28px; }
.lbwo-auth-card__icon   { font-size: 3rem; display: block; margin-bottom: 8px; }
.lbwo-auth-card__title  { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.lbwo-auth-card__subtitle { color: var(--lbwo-muted); font-size: .9rem; margin: 0; }
.lbwo-auth-card__footer-link { text-align: center; margin-top: 20px; font-size: .88rem; }
.lbwo-auth-card__links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: .85rem;
}
.lbwo-auth-card__links a { color: var(--lbwo-green-dark); text-decoration: none; }
.lbwo-auth-card__links a:hover { text-decoration: underline; }

/* Password toggle */
.lbwo-password-wrap { position: relative; }
.lbwo-password-wrap .lbwo-form__input { padding-right: 44px; }
.lbwo-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--lbwo-muted);
  padding: 4px;
  line-height: 1;
}
.lbwo-password-toggle:hover { color: var(--lbwo-text); }

/* Slug preview */
.lbwo-form__slug-preview {
  display: block;
  font-size: .8rem;
  margin-top: 4px;
}
