/* ══════════════════════════════════════════════════════════════
 * Maison Papillon — Shared Layout v1
 * shared-core/ui/layout.css
 *
 * Include vanuit elke module:
 *   <link rel="stylesheet" href="../../../shared-core/ui/layout.css" />
 *
 * Vereist:
 *   - Montserrat font (via Google Fonts)
 *   - Logo op https://maisonpapillon.be/wp-content/uploads/2025/10/logo_tussen.png
 *     of lokaal: /assets/logo_tussen.png
 * ══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --accent: #DB9A71;
  --accent-dark: #c4845a;
  --accent-light: #f6e9e0;
  --text: #454748;
  --text-light: #888;
  --text-faint: #a8aaab;
  --bg: #f8f6f3;
  --surface: #fff;
  --border: #e8e0d8;
  --success: #4a9e6e;
  --danger: #e53e3e;
  --warning: #d97706;
  --shadow: 0 2px 8px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.06);
  --radius: 12px;
  --font: 'Montserrat', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ─── */
.mp-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.mp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mp-header-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  opacity: .85;
  transition: opacity .15s;
}
.mp-header-logo:hover { opacity: 1; }

.mp-header-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.mp-header-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all .15s;
  white-space: nowrap;
}
.mp-header-back:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.mp-header-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Connection dot */
.mp-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background .3s;
  flex-shrink: 0;
}
.mp-conn-dot.ok { background: var(--success); }
.mp-conn-dot.fail { background: var(--danger); }

/* Settings button */
.mp-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: 1.5px solid var(--border);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  color: var(--text);
}
.mp-btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.mp-btn-icon.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── SETTINGS PANEL ─── */
.mp-settings {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.mp-settings-inner {
  max-width: 760px;
  margin: 0 auto;
}
.mp-settings-inner h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}
.mp-settings-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-settings-row input {
  flex: 1;
  min-width: 260px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
}
.mp-settings-row input:focus { outline: none; border-color: var(--accent); }
.mp-settings-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.6;
}

/* ─── MAIN ─── */
.mp-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  flex: 1;
  width: 100%;
}

/* ─── PAGE HEAD ─── */
.mp-page-head {
  margin-bottom: 20px;
}
.mp-page-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.mp-page-desc {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  max-width: 800px;
}

/* ─── FOOTER ─── */
.mp-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
}
.mp-footer-logo {
  height: 20px;
  width: auto;
  opacity: .4;
}
.mp-footer-text {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: .2px;
}
.mp-footer-text a {
  color: var(--text-light);
  text-decoration: none;
}
.mp-footer-text a:hover { color: var(--accent); }

/* ─── CARDS ─── */
.mp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mp-card-inner { padding: 22px; }
.mp-card-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* ─── COMMON BOXES ─── */
.mp-info-box {
  background: #fef9f5;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.mp-note-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: #8a5b09;
  line-height: 1.7;
  margin-bottom: 16px;
}
.mp-ok-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #166534;
  line-height: 1.6;
}
.mp-error-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #b91c1c;
  line-height: 1.6;
}

/* ─── BUTTONS ─── */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .15s;
}
.mp-btn:disabled { opacity: .55; cursor: not-allowed; }
.mp-btn-primary { background: var(--accent); color: #fff; }
.mp-btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.mp-btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.mp-btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── FORMS ─── */
.mp-form-row { margin-bottom: 14px; }
.mp-form-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.mp-form-row input,
.mp-form-row select,
.mp-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s;
}
.mp-form-row input:focus,
.mp-form-row select:focus,
.mp-form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ─── UTILITY ─── */
.mp-hidden { display: none !important; }
.mp-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.mp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .mp-grid-2, .mp-grid-3 { grid-template-columns: 1fr; }
  .mp-header { padding: 0 12px; }
  .mp-header-title { font-size: 13px; }
  .mp-main { padding: 16px 12px 32px; }
}
