:root {
    --menu-bg: #0f1419;
    --menu-surface: #1a222c;
    --menu-accent: #c4a574;
    --menu-text: #f5f0e8;
    --menu-muted: #9aa3ad;
}

body {
    background: #f4f6f8;
    min-height: 100vh;
}

body.login-page {
    background:
        radial-gradient(ellipse at top, #2a3542 0%, transparent 55%),
        linear-gradient(160deg, #0f1419 0%, #1c2530 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.menu-view {
    background: var(--menu-bg);
    color: var(--menu-text);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.thumb-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.thumb-pdf {
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(160deg, #2a3340 0%, #1a222c 100%);
    color: #f5f0e8;
}

.thumb-pdf-label {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 0.35rem;
    background: #c0392b;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.thumb-pdf-name {
    max-width: 100%;
    font-size: 0.8rem;
    color: #9aa3ad;
}

.menu-shell {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--menu-bg);
}

.menu-header {
    padding: 1.25rem 1rem 0.85rem;
    text-align: center;
    border-bottom: 1px solid rgba(196, 165, 116, 0.25);
}

.menu-header .brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--menu-accent);
    margin: 0;
}

.menu-header p {
    color: var(--menu-muted);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.menu-press {
    padding: 0 0 2rem;
}

.menu-press-item {
    margin: 0;
}

.menu-press-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.menu-pdf-pages {
    width: 100%;
    background: #fff;
    min-height: 120px;
}

.menu-pdf-pages .menu-pdf-page {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    vertical-align: top;
}

.menu-pdf-loading {
    padding: 3rem 1.25rem;
    text-align: center;
    color: var(--menu-muted);
    background: var(--menu-bg);
    font-size: 0.95rem;
}

.menu-pdf-pages.is-error .menu-pdf-loading {
    color: #e74c3c;
}

.menu-shell--pdf {
    background: #fff;
}

.menu-shell--pdf .menu-press-item + .menu-press-item {
    margin-top: 0;
    border-top: 1px solid #eee;
}

.menu-press-item .caption {
    padding: 0.65rem 1rem 0.85rem;
    color: var(--menu-muted);
    font-size: 0.9rem;
}

/* Canlı menü: telefonda kenar boşluğu yok, ekranı doldurur */
body.menu-view .menu-shell {
    max-width: 100%;
}

body.menu-view .menu-press-item + .menu-press-item {
    margin-top: 2px;
}

body.menu-view .menu-shell--pdf {
    max-width: 100%;
    background: #fff;
}

body.menu-view-pdf {
    background: #fff;
    color: #222;
}

.preview-phone {
    max-width: 390px;
    margin: 0 auto 2rem;
    padding: 12px;
    border-radius: 36px;
    background: #1a1a1a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.preview-phone-screen {
    height: min(78vh, 760px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 28px;
    background: var(--menu-bg);
    -webkit-overflow-scrolling: touch;
}

.preview-phone-screen .menu-shell {
    min-height: 100%;
    max-width: 100%;
}

.preview-phone-screen .menu-shell--pdf {
    background: #fff;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--menu-muted);
}

.qr-box {
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    line-height: 0;
}

.qr-box img,
.qr-box canvas {
    display: block;
    margin: 0 auto;
}

@media print {
    .navbar,
    .alert,
    #btnCopy,
    #btnDownload,
    #btnPrint,
    .btn,
    .input-group {
        display: none !important;
    }

    .qr-box {
        box-shadow: none;
    }

    main {
        padding: 0 !important;
    }
}
