/* tzhm-frontend.css — TZ Hotel Manager frontend styles v1.0.0
 * Uses Tripzao design tokens injected by TZHM_Frontend::inject_design_tokens(). */

/* ── Reset / base ───────────────────────────────────────────────────────── */
.tzhm-page { background: var(--tzhm-bg); color: var(--tzhm-ink-900); }
.tzhm-page * { box-sizing: border-box; }

/* ── Owner auth (register / login) ─────────────────────────────────────── */
.tzhm-owner-auth { min-height: 70vh; display:flex; align-items:flex-start; justify-content:center; padding: 32px 16px; }
.tzhm-auth-card { width: 100%; max-width: 540px; background: var(--tzhm-white); border-radius: var(--tzhm-radius-lg); padding: 28px; box-shadow: var(--tzhm-shadow-md); }
.tzhm-auth-head h1 { margin: 0 0 6px 0; font-size: 26px; color: var(--tzhm-blue-700); }
.tzhm-auth-head .lead { color: var(--tzhm-ink-500); margin: 0 0 18px 0; line-height: 1.6; }
.tzhm-auth-foot { margin: 14px 0 0 0; font-size: 13px; color: var(--tzhm-ink-500); text-align: center; }
.tzhm-auth-foot a { color: var(--tzhm-blue-700); font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.tzhm-form label { display: block; margin: 10px 0 4px 0; color: var(--tzhm-ink-700); font-weight: 500; font-size: 14px; }
.tzhm-form .hint { color: var(--tzhm-ink-400); font-weight: 400; font-size: 12px; }
.tzhm-form input[type=text],
.tzhm-form input[type=email],
.tzhm-form input[type=tel],
.tzhm-form input[type=password],
.tzhm-form input[type=number],
.tzhm-form input[type=date],
.tzhm-form input[type=file],
.tzhm-form select,
.tzhm-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--tzhm-ink-200); background: var(--tzhm-white);
  border-radius: var(--tzhm-radius-sm); font: inherit; color: var(--tzhm-ink-900); outline: none; transition: border-color .15s;
}
.tzhm-form input:focus, .tzhm-form select:focus, .tzhm-form textarea:focus { border-color: var(--tzhm-blue-700); }
.tzhm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .tzhm-row { grid-template-columns: 1fr; } }
.tzhm-check { display:flex; align-items:flex-start; gap: 10px; margin: 14px 0; }
.tzhm-check input[type=checkbox] { margin-top: 4px; }
.tzhm-check span { line-height: 1.6; color: var(--tzhm-ink-700); font-size: 14px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.tzhm-btn { display:inline-block; padding: 11px 22px; border: 0; border-radius: var(--tzhm-radius-sm); cursor: pointer; font: inherit; font-weight: 600; transition: transform .1s, background .15s; }
.tzhm-btn-primary { background: var(--tzhm-blue-700); color: var(--tzhm-white); }
.tzhm-btn-primary:hover { background: var(--tzhm-blue-800); }
.tzhm-btn-accent  { background: var(--tzhm-yellow-400); color: var(--tzhm-ink-900); }
.tzhm-btn-ghost   { background: transparent; color: var(--tzhm-blue-700); border: 1px solid var(--tzhm-ink-200); }
.tzhm-btn-block   { width: 100%; }
.tzhm-btn:active { transform: translateY(1px); }

/* ── Messages ───────────────────────────────────────────────────────────── */
.tzhm-msg { margin: 12px 0 0 0; padding: 12px 14px; border-radius: var(--tzhm-radius-sm); font-size: 14px; line-height: 1.6; }
.tzhm-msg.ok  { background: #d6f5e7; color: #0e7d4d; display:block; }
.tzhm-msg.err { background: #fde0dc; color: #a02b1c; display:block; }

/* ── Owner Dashboard ────────────────────────────────────────────────────── */
.tzhm-dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: 90vh; gap: 0; background: var(--tzhm-bg); }
@media (max-width: 900px) { .tzhm-dashboard { grid-template-columns: 1fr; } }
.tzhm-side { background: var(--tzhm-blue-950); color: #c7d4f1; padding: 22px 14px 18px 14px; display:flex; flex-direction:column; }
.tzhm-brand { padding: 0 8px 18px 8px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.tzhm-brand .logo { font-family: var(--tzhm-font-display); color: #fff; font-size: 22px; font-weight: 700; display:block; }
.tzhm-brand .tag { color: var(--tzhm-yellow-400); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.tzhm-nav { display:flex; flex-direction:column; gap: 2px; }
.tzhm-nav-item { padding: 10px 12px; border-radius: 10px; color:#c7d4f1; text-decoration:none; font-size: 14px; }
.tzhm-nav-item:hover { background: rgba(255,255,255,.06); color:#fff; }
.tzhm-nav-item.active { background: var(--tzhm-blue-700); color: #fff; }
.tzhm-nav-item.tzhm-logout { margin-top: auto; color:#ffb3a5; }
.tzhm-side-foot { font-size: 12px; color: #9aa6c4; padding: 16px 8px 0 8px; }
.tzhm-side-foot a { color: var(--tzhm-yellow-400); }

.tzhm-main { padding: 22px 26px; }
.tzhm-topbar { display:flex; justify-content:space-between; align-items:baseline; margin-bottom: 16px; }
.tzhm-topbar h1 { margin: 0; font-size: 24px; color: var(--tzhm-ink-900); }
.tzhm-greet { color: var(--tzhm-ink-500); font-size: 14px; }
.tzhm-greet .tzhm-pill.ok { background: #d6f5e7; color: #0e7d4d; margin-left: 8px; }

.tzhm-stats-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-bottom: 18px; }
.tzhm-stat { background: var(--tzhm-white); border-radius: var(--tzhm-radius-md); padding: 14px 16px; box-shadow: var(--tzhm-shadow-sm); }
.tzhm-stat.wide { grid-column: 1 / -1; background: linear-gradient(135deg, var(--tzhm-blue-700) 0%, var(--tzhm-blue-600) 100%); color:#fff; }
.tzhm-stat.wide .lbl { color: #cfd9f3; } .tzhm-stat.wide .val { color: #fff; }
.tzhm-stat .lbl { display:block; color: var(--tzhm-ink-500); font-size: 12px; }
.tzhm-stat .val { display:block; font-weight: 700; font-size: 26px; margin-top: 4px; color: var(--tzhm-ink-900); }
.tzhm-stat .val.ok { color: var(--tzhm-mint); }
.tzhm-stat .val.warn { color: var(--tzhm-coral); }

.tzhm-card { background: var(--tzhm-white); border-radius: var(--tzhm-radius-md); padding: 18px 20px; box-shadow: var(--tzhm-shadow-sm); margin: 0 0 16px 0; }
.tzhm-card h2 { margin: 0 0 10px 0; font-size: 18px; }
.tzhm-checklist { padding-left: 18px; line-height: 1.8; color: var(--tzhm-ink-700); }

/* ── Pills (status) frontend version ───────────────────────────────────── */
.tzhm-pill { display:inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tzhm-ink-100); color: var(--tzhm-ink-500); }
.tzhm-pill.ok   { background: #d6f5e7; color: #0e7d4d; }
.tzhm-pill.warn { background: #fff1c8; color: #9a6b00; }
.tzhm-pill.err  { background: #fde0dc; color: #a02b1c; }
