/* u4m-panamera — Stylesheet v2 (2026-05-07)
   Design DNA afgeleid van restaurantepanamera.es:
   goud accent + charcoal tekst + serif-display headings + Lato body. */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@200;300;400;600&family=Playfair+Display:wght@400;500;700&display=swap');

:root {
    /* Brand-palette uit Panamera-website */
    --c-gold:        #D69F00;
    --c-gold-soft:   #E6B833;
    --c-gold-deep:   #A87C00;
    --c-gold-tint:   #FBF3DD;
    --c-charcoal:    #32323A;
    --c-charcoal-2:  #1F1F26;
    --c-text:        #32323A;
    --c-muted:       #6B6B72;
    --c-line:        #E5E2DA;
    --c-bg:          #FAF8F4;
    --c-surface:     #FFFFFF;
    --c-cream:       #F4F1EA;

    /* Functioneel */
    --c-danger:      #B23A2B;
    --c-warning:     #C08000;
    --c-ok:          #2D7A4D;
    --c-info:        #2A5B9A;

    /* Typografie */
    --f-display: 'Playfair Display', Georgia, serif;
    --f-sans:    'Montserrat', -apple-system, sans-serif;
    --f-body:    'Lato', -apple-system, sans-serif;

    /* Spacing/Vorm */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(31, 31, 38, 0.05);
    --shadow-md: 0 4px 14px rgba(31, 31, 38, 0.08);
    --shadow-lg: 0 12px 40px rgba(31, 31, 38, 0.14);
    --gap: 16px;
    --gap-lg: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--f-body);
    background: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

[x-cloak] { display: none !important; }
.inline { display: inline; }
.muted { color: var(--c-muted); }
.small { font-size: 0.85em; }

a { color: var(--c-gold-deep); text-decoration: none; }
a:hover { color: var(--c-gold); }

h1, h2, h3, h4 { font-family: var(--f-sans); color: var(--c-charcoal); margin: 0 0 8px; font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; font-weight: 300; }
h2 { font-size: 1.4rem; font-weight: 400; }
h3 { font-size: 1.05rem; font-weight: 600; }
h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }

.serif { font-family: var(--f-display); font-weight: 500; color: var(--c-gold-deep); }

/* === NAVBAR === */
.navbar {
    background: var(--c-charcoal-2);
    color: #FFF;
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(214, 159, 0, 0.18);
}
.navbar-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 60px;
}
.navbar-brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--f-sans); font-weight: 300; font-size: 1.1rem;
    color: #FFF; letter-spacing: 0.02em;
}
.navbar-brand img { height: 32px; width: auto; }
.navbar-brand .brand-accent { color: var(--c-gold); font-weight: 600; }
.navbar-tag {
    background: var(--c-gold);
    color: var(--c-charcoal-2);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.navbar-menu { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; height: 60px; line-height: 1;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem; font-weight: 400;
    background: none; border: none; cursor: pointer;
    transition: color 0.15s, background 0.15s;
    font-family: var(--f-body);
    text-decoration: none;
}
.nav-link:hover { color: #FFF; background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.nav-link.is-active { color: var(--c-gold); }
.nav-link.is-active::after {
    content: ''; position: absolute; left: 8px; right: 8px; bottom: 0;
    height: 2px; background: var(--c-gold); border-radius: 2px;
}
.nav-link .chev { width: 9px; height: 9px; opacity: 0.6; }
.nav-badge {
    background: var(--c-gold); color: var(--c-charcoal-2);
    font-size: 0.65rem; font-weight: 700;
    padding: 1px 6px; border-radius: 999px;
    margin-left: 4px;
}

/* Dropdown */
.nav-dropdown {
    position: absolute; top: 100%; left: 0;
    background: #FFF; color: var(--c-text);
    min-width: 230px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    z-index: 200;
    overflow: hidden;
}
.nav-dropdown.from-right { left: auto; right: 0; }
.nav-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; font-size: 0.88rem;
    color: var(--c-text); border-radius: var(--r-sm);
    text-decoration: none;
}
.nav-dropdown a:hover { background: var(--c-cream); color: var(--c-gold-deep); text-decoration: none; }
.nav-dropdown a.is-active { background: var(--c-gold-tint); color: var(--c-gold-deep); font-weight: 600; }
.nav-dropdown .nav-section {
    padding: 8px 12px 4px; font-size: 0.7rem; font-weight: 700;
    color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.nav-dropdown .nav-divider { height: 1px; background: var(--c-line); margin: 4px 6px; }
.nav-dropdown .nav-icon { font-size: 1rem; width: 18px; text-align: center; opacity: 0.85; }

/* Profile-menu (rechts) */
.profile-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    color: rgba(255, 255, 255, 0.85); font-family: var(--f-body); font-size: 0.85rem;
    padding: 6px 10px; border-radius: 999px;
    transition: background 0.15s;
}
.profile-btn:hover { background: rgba(255, 255, 255, 0.06); color: #FFF; }
.profile-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--c-gold); color: var(--c-charcoal-2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase;
}
.profile-name { font-weight: 400; }
.profile-role { color: rgba(255, 255, 255, 0.55); font-size: 0.72rem; margin-top: -2px; }
.profile-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }

.nav-mobile-toggle {
    display: none;
    background: none; border: none; color: #FFF;
    font-size: 1.4rem; cursor: pointer; padding: 8px;
}

/* Mobile */
@media (max-width: 900px) {
    .navbar-menu .nav-item:not(.profile-item):not(.nav-mobile-only) { display: none; }
    .nav-mobile-toggle { display: block; }
    .navbar-inner { padding: 0 14px; }
    .profile-name, .profile-role { display: none; }
}
.nav-mobile-panel {
    display: none;
    background: var(--c-charcoal-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px 16px;
}
.nav-mobile-panel.open { display: block; }
.nav-mobile-section { margin-top: 12px; }
.nav-mobile-section-title { color: var(--c-gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.nav-mobile-panel a {
    display: block; padding: 9px 4px; color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}
.nav-mobile-panel a:hover, .nav-mobile-panel a.is-active { color: var(--c-gold); }

/* === MAIN === */
.main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }

/* Hero met foto */
.hero {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg);
    margin-bottom: var(--gap-lg);
    background: var(--c-charcoal-2);
    min-height: 220px;
    display: flex; align-items: flex-end;
    box-shadow: var(--shadow-md);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.55);
    transition: transform 0.6s;
}
.hero:hover .hero-bg { transform: scale(1.04); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(31,31,38,0.15) 0%, rgba(31,31,38,0.85) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    padding: 28px 32px;
    color: #FFF;
    width: 100%;
}
.hero-eyebrow {
    font-family: var(--f-sans); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--c-gold); margin-bottom: 6px;
}
.hero h1, .hero h2 { color: #FFF; }
.hero h1 { font-family: var(--f-display); font-weight: 500; font-size: 2.2rem; line-height: 1.1; }
.hero p { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; max-width: 600px; }
.hero-meta {
    display: flex; gap: 24px; margin-top: 18px;
    flex-wrap: wrap;
}
.hero-meta-item { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; }
.hero-meta-item strong { color: var(--c-gold); font-weight: 700; margin-right: 4px; }

/* Page-header (zonder foto) */
.page-header { margin-bottom: var(--gap-lg); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.page-header h1 { margin: 0; }
.page-header .actions { display: flex; gap: 8px; }
.page-eyebrow { font-family: var(--f-sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--c-gold-deep); margin-bottom: 4px; }

/* Section */
.section { margin-bottom: var(--gap-lg); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title h2 { font-family: var(--f-display); font-weight: 500; color: var(--c-charcoal); font-size: 1.25rem; margin: 0; }
.section-title .link { font-size: 0.85rem; color: var(--c-gold-deep); }

/* Grid */
.grid { display: grid; gap: var(--gap); margin-bottom: var(--gap-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.placeholder-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--gap-lg); }

/* === CARDS === */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: block;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    text-decoration: none;
}
a.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-gold-soft);
    text-decoration: none;
}
.card h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; color: var(--c-charcoal); font-family: var(--f-sans); }
.card p { margin: 0; color: var(--c-muted); font-size: 0.88rem; }
.card-highlight {
    border-color: var(--c-gold-soft);
    background: linear-gradient(180deg, var(--c-gold-tint) 0%, var(--c-surface) 60%);
}
.card-icon-row { display: flex; align-items: flex-start; gap: 14px; }
.card-icon {
    width: 40px; height: 40px; border-radius: var(--r-sm);
    background: var(--c-gold-tint); color: var(--c-gold-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.card-meta { font-size: 0.75rem; color: var(--c-muted); margin-top: 8px; }

.placeholder {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed var(--c-line);
    border-radius: var(--r-md);
    padding: 18px;
}
.placeholder h4 { margin: 0 0 6px; }

/* === KPI tegels === */
.kpi-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: var(--gap-lg); }
.kpi {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-gold);
    border-radius: var(--r-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.kpi-label {
    font-family: var(--f-sans); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--c-muted); margin-bottom: 6px;
}
.kpi-value {
    font-family: var(--f-sans); font-size: 1.85rem; font-weight: 300;
    color: var(--c-charcoal); line-height: 1.1;
    letter-spacing: -0.02em;
}
.kpi-unit { font-size: 0.85rem; color: var(--c-muted); margin-left: 4px; }
.kpi-delta { font-size: 0.78rem; margin-top: 4px; font-weight: 600; }
.kpi-delta.up { color: var(--c-ok); }
.kpi-delta.down { color: var(--c-danger); }
.kpi-delta.flat { color: var(--c-muted); }
.kpi-icon {
    position: absolute; top: 16px; right: 16px;
    width: 28px; height: 28px;
    background: var(--c-gold-tint); color: var(--c-gold-deep);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}

/* Stat-rij */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { color: var(--c-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 600; color: var(--c-charcoal); font-family: var(--f-sans); }

/* Lijst-items */
.list { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.list-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--c-line);
    text-decoration: none; color: var(--c-text);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--c-cream); }
.list-row .meta { color: var(--c-muted); font-size: 0.85rem; }

/* === FORMS === */
form label { display: block; margin-bottom: 14px; }
form label > span { display: block; font-size: 0.82rem; color: var(--c-muted); margin-bottom: 5px; font-weight: 600; }
input[type=email], input[type=text], input[type=number], input[type=password], select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    font-family: var(--f-body);
    background: #FFF;
    color: var(--c-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px var(--c-gold-tint);
}
textarea { resize: vertical; }
.task-picker { display: flex; gap: 8px; align-items: stretch; }
.task-picker select { flex: 1; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--c-line);
    background: #FFF;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--f-body);
    color: var(--c-text);
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 600;
}
.btn:hover { background: var(--c-cream); border-color: var(--c-gold-soft); }
.btn-primary {
    background: var(--c-gold); color: #FFF; border-color: var(--c-gold);
    letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--c-gold-deep); border-color: var(--c-gold-deep); color: #FFF; }
.btn-danger { background: var(--c-danger); color: #FFF; border-color: var(--c-danger); }
.btn-secondary { background: #FFF; }
.btn-ghost { background: none; border-color: transparent; color: var(--c-muted); }
.btn-ghost:hover { background: var(--c-cream); color: var(--c-charcoal); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-link { background: none; border: none; color: inherit; cursor: pointer; padding: 0; font-size: inherit; }

/* === ALERTS === */
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: 0.9rem; }
.alert-ok { background: #EAF6EF; color: var(--c-ok); border: 1px solid #B9DEC9; }
.alert-error { background: #FBE9E9; color: var(--c-danger); border: 1px solid #E7B8B8; }
.alert-dev { background: #FFF8E1; color: #6B5400; border: 1px solid #E6D480; word-break: break-all; font-family: monospace; font-size: 0.8rem; }
.alert-info { background: #E7EEFA; color: var(--c-info); border: 1px solid #B9CFE7; }

/* === LOGIN === */
.login-bg {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: var(--c-charcoal-2);
}
.login-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('/static/img/restaurant/hero1.webp');
    background-size: cover; background-position: center;
    filter: brightness(0.4) saturate(0.9);
    z-index: 0;
}
.login-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(31, 31, 38, 0.8) 0%, rgba(168, 124, 0, 0.65) 100%);
    z-index: 1;
}
.login-card {
    position: relative; z-index: 2;
    background: #FFF;
    border-radius: var(--r-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.login-card .login-logo { height: 80px; margin: 0 auto 18px; display: block; }
.login-card h1 { font-family: var(--f-display); font-weight: 500; color: var(--c-gold-deep); font-size: 1.7rem; margin: 0 0 6px; }
.login-card p { margin: 0 0 26px; color: var(--c-muted); font-size: 0.92rem; }
.login-card form { text-align: left; }

/* === TABLES === */
.table { width: 100%; border-collapse: collapse; background: #FFF; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; }
.table th { background: var(--c-cream); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--c-bg); }

/* === KV === */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--c-muted); font-size: 0.85rem; font-weight: 600; }
.kv dd { margin: 0; }

/* === STATUS BADGES === */
.status, .badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.status-open, .badge-planned { background: #EEF0F4; color: #55606E; }
.status-in_progress, .badge-building { background: #FFF6E0; color: var(--c-warning); }
.status-resolved, .badge-done { background: #EAF6EF; color: var(--c-ok); }
.badge-testing { background: #E0EAFF; color: var(--c-info); }
.badge-blocked { background: #FBE9E9; color: var(--c-danger); }
.badge-gold { background: var(--c-gold-tint); color: var(--c-gold-deep); }
.badge-admin { background: var(--c-charcoal-2); color: var(--c-gold); }

/* === ROADMAP === */
.sprint-block { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px; margin-bottom: var(--gap); }
.roadmap-list { list-style: none; padding: 0; margin: 0; }
.roadmap-item { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.roadmap-item:last-child { border-bottom: none; }
.roadmap-item .badge { margin-right: 10px; }
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }

/* === FEEDBACK WIDGET === */
.fb-fab {
    position: fixed; bottom: 18px; right: 18px;
    background: var(--c-gold); color: #FFF;
    border: none; border-radius: 999px;
    padding: 12px 20px; font-size: 0.85rem; cursor: pointer;
    font-family: var(--f-body); font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 90;
}
.fb-fab:hover { background: var(--c-gold-deep); }
.fb-modal {
    position: fixed; inset: 0;
    background: rgba(31, 31, 38, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 200; padding: 16px;
}
.fb-modal-card {
    background: #FFF; border-radius: var(--r-lg);
    padding: 24px; width: 100%; max-width: 480px;
    box-shadow: var(--shadow-lg);
}
.fb-modal-card h3 { margin: 0 0 16px; }
.fb-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* === MOBILE responsive === */
@media (max-width: 720px) {
    .navbar-inner { height: 54px; }
    .navbar-brand { font-size: 1rem; }
    .navbar-brand img { height: 28px; }
    .main { padding: 16px 14px 60px; }
    .hero { min-height: 160px; }
    .hero-content { padding: 18px 18px; }
    .hero h1 { font-size: 1.4rem; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; gap: 10px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .placeholder-grid { grid-template-columns: 1fr 1fr; }
    .table { font-size: 0.85rem; }
    .table th, .table td { padding: 8px 10px; }
    .stat-value, .kpi-value { font-size: 1.3rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 480px) {
    .placeholder-grid, .kpi-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 22px; }
}

/* === Coming-soon / locked features === */
.card-locked {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--c-cream);
    border-style: dashed;
}
.card-locked:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--c-line); }
.card-icon-locked {
    background: var(--c-line) !important;
    color: var(--c-muted) !important;
}
.card-admin-off {
    border-left: 3px solid var(--c-warning);
}
.item-locked {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; font-size: 0.88rem;
    color: var(--c-muted); border-radius: var(--r-sm);
    cursor: not-allowed; background: rgba(0,0,0,0.02);
}
.item-locked:hover { background: rgba(0,0,0,0.02); }
.item-admin-off { border-left: 2px solid var(--c-warning); padding-left: 10px; }
