/* =========================================================
   Ortak
   ========================================================= */
:root {
    --paper: #f3ede0;
    --paper-dark: #e8e0cf;
    --ink: #1f1a14;
    --ink-soft: #5c5348;
    --bordo: #7a1f1f;
    --rule: #1f1a14;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; }

/* =========================================================
   Müşteri tarafı
   ========================================================= */
body.public {
    --green: #1f4636;
    --green-dark: #163327;
    --stripe: #ece4d1;
    --bg: #f7f5ef;
    --white: #ffffff;
    --text: #1c1c1a;
    --muted: #6d6a62;
    --line: #d9d4c7;
    --brass: #c9962e;
    --oak: #9c7048;
    --oak-dark: #6f4c2d;
    --felt: #252525;
    --accent: #f0cf7e;
    --sign: "Gloock", Georgia, "Times New Roman", serif;

    background: var(--bg);
    color: var(--text);
    font-family: "Libre Franklin", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.public a { color: var(--green); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Üst şerit, tente, başlık */
.topbar { background: var(--green); color: #dfe6df; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.awning {
    height: 42px;
    background: repeating-linear-gradient(90deg, var(--green) 0 32px, var(--stripe) 32px 64px);
    -webkit-mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - 16px) no-repeat,
        radial-gradient(circle 16px at 16px 0, #000 98%, transparent 100%) bottom left / 32px 16px repeat-x;
            mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - 16px) no-repeat,
        radial-gradient(circle 16px at 16px 0, #000 98%, transparent 100%) bottom left / 32px 16px repeat-x;
}

.masthead { padding: 26px 0 30px; }
.masthead-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.masthead-logo { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.masthead-title {
    display: inline-block; text-decoration: none; color: var(--text) !important;
    font-family: var(--sign); font-weight: 400; font-size: clamp(40px, 7.5vw, 66px); line-height: 1;
}
.masthead-desc { margin: 8px 0 0; font-size: 17px; color: #4a4843; }
.masthead-info { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.masthead-info .sep { margin: 0 10px; color: var(--line); }

.empty { text-align: center; color: var(--muted); padding: 50px 0; }
.empty h1 { font-family: var(--sign); font-weight: 400; font-size: 40px; color: var(--text); margin-bottom: 6px; }

/* Günün menüsü */
.board {
    max-width: 640px; margin: 0 auto 56px; padding-bottom: 22px;
    background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.board-label {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.board-today {
    display: inline-block; margin-bottom: 4px; padding: 2px 8px;
    font-size: 12px; font-weight: 700; color: var(--white); background: var(--green);
}
.board-title { font-family: var(--sign); font-weight: 400; font-size: 30px; line-height: 1.1; }
.board-date { display: flex; align-items: stretch; flex-shrink: 0; border: 2px solid var(--green); }
.board-date-day {
    display: flex; align-items: center; justify-content: center; min-width: 58px; padding: 4px 10px;
    font-family: var(--sign); font-size: 34px; line-height: 1; color: var(--white); background: var(--green);
}
.board-date-rest { display: flex; flex-direction: column; justify-content: center; padding: 4px 12px; font-size: 14px; color: var(--muted); line-height: 1.3; }
.board-date-rest strong { font-size: 17px; color: var(--text); }

.board-inner {
    margin: 20px 22px 0; padding: 8px 22px 16px;
    background: var(--felt); color: #f1f0ec;
    border: 8px solid var(--oak); box-shadow: inset 0 0 0 1px var(--oak-dark), 0 0 0 1px var(--oak-dark);
}
.board-items { list-style: none; margin: 0; padding: 0; }
.board-items li {
    display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 4px 10px;
    padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.2);
}
.board-no { font-size: 14px; font-weight: 600; color: #8f8e88; font-variant-numeric: tabular-nums; }
.board-name { font-family: var(--sign); font-size: 22px; line-height: 1.25; }
.board-items small { font-size: 13px; color: #b5b4ae; text-align: right; }
.board-price {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    margin-top: 6px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.35);
}
.board-price span { font-size: 15px; color: #cfcec8; }
.board-price strong { font-family: var(--sign); font-weight: 400; font-size: 30px; color: var(--accent); }
.board-empty { font-family: var(--sign); font-size: 22px; line-height: 1.4; margin: 14px 0 6px; color: #d6d5cf; text-align: center; }
.board-note { margin: 14px 22px 0; color: var(--muted); font-size: 15px; }

/* Geri sayım */
.countdown { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.countdown-time { margin: 0 2px; font-size: 18px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.countdown-soon .countdown-time { color: #a33a22; }
.countdown-over { font-weight: 600; color: #a33a22; }
/* Ön sipariş */
.order-panel { margin: 20px 0 -22px; padding: 18px 22px 22px; background: #faf9f5; border-top: 1px solid var(--line); }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.order-title { font-family: var(--sign); font-weight: 400; font-size: 22px; }
.order-who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-who label { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.order-who small { font-weight: 400; color: var(--muted); }
.order-who input {
    display: block; width: 100%; margin-top: 5px; padding: 11px 12px;
    font: 400 16px "Libre Franklin", sans-serif; color: var(--text);
    background: var(--white); border: 1px solid #bdb6a6; border-radius: 0;
}
.order-who input:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.btn-go {
    grid-column: 1 / -1; margin-top: 2px;
    font: 600 16px "Libre Franklin", sans-serif;
    color: var(--white); background: var(--green); border: 0; padding: 14px 20px; cursor: pointer;
}
.btn-go:hover { background: var(--green-dark); }
.btn-link { font: 500 14px "Libre Franklin", sans-serif; color: #a33a22; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.my-orders { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.order-panel > .my-orders:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.my-orders-title { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.my-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; }
.my-order strong { font-weight: 600; }

.board-notice { margin: 16px 22px 0; padding: 10px 14px; font-size: 15px; border-left: 4px solid; background: #f3f1ec; border-color: var(--line); }
.board-notice-success { background: #e6eee8; border-color: var(--green); color: var(--green); }
.board-notice-error { background: #f6e5df; border-color: #a33a22; color: #8a2f1a; }
/* Onay penceresi */
.order-popup {
    width: min(420px, calc(100% - 32px)); padding: 28px 26px 24px;
    background: var(--white); color: var(--text); border: 0; border-top: 6px solid var(--green);
    font-family: "Libre Franklin", sans-serif; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.order-popup::backdrop { background: rgba(20,30,25,.55); }
.order-popup[open] { animation: popup-in .18s ease-out; }
@keyframes popup-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.order-popup-check { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); position: relative; }
.order-popup-check::after {
    content: ""; position: absolute; left: 19px; top: 12px; width: 11px; height: 21px;
    border: solid var(--white); border-width: 0 4px 4px 0; transform: rotate(45deg);
}
.order-popup h2 { font-family: var(--sign); font-weight: 400; font-size: 28px; line-height: 1.15; }
.order-popup-lead { margin: 10px 0 16px; font-size: 15px; color: #4a4843; }
.order-popup-items { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-popup-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 2px; font-weight: 600; }
.order-popup-items strong { color: var(--green); }
.order-popup-note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.btn-popup {
    margin-top: 18px; width: 100%; padding: 13px; cursor: pointer;
    font: 600 16px "Libre Franklin", sans-serif;
    color: var(--white); background: var(--green); border: 0;
}
.btn-popup:hover { background: var(--green-dark); }

/* Standart menü */
.carte { margin-bottom: 60px; }
.carte-title { font-family: var(--sign); font-weight: 400; font-size: 44px; text-align: center; line-height: 1.1; }
.carte-filter {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px;
    background: var(--bg); padding: 12px 0 0; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.carte-filter button {
    font: 600 15px "Libre Franklin", sans-serif;
    color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
    padding: 6px 0 9px; margin-bottom: -1px; cursor: pointer;
}
.carte-filter button:hover { color: var(--text); }
.carte-filter button.active { color: var(--green); border-bottom-color: var(--green); }

.carte-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; }
.carte-body.filtered { grid-template-columns: 1fr; }
.carte-body.filtered .carte-section { columns: 2; column-gap: 56px; }
.carte-body.filtered .carte-section h3 { column-span: all; }
.carte-section { padding-top: 28px; }
.carte-section[hidden] { display: none; }
.carte-section h3 {
    font-family: var(--sign); font-size: 24px; font-weight: 400; color: var(--green);
    padding-bottom: 6px; border-bottom: 1px solid var(--text); margin-bottom: 4px;
}
.dish { display: flex; gap: 14px; padding: 10px 0; break-inside: avoid; }
.dish img { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; }
.dish-text { flex: 1; min-width: 0; }
.dish-line { display: flex; align-items: baseline; gap: 8px; }
.dish-name { font-weight: 600; }
.dots { flex: 1; border-bottom: 1px dotted #a8a293; transform: translateY(-4px); min-width: 16px; }
.dish-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish-desc { color: var(--muted); font-size: 14px; margin-top: 1px; }

.colophon { background: var(--green); color: #c9d3cc; padding: 16px 0; font-size: 13px; }
.colophon .wrap { display: flex; justify-content: space-between; }

@media (max-width: 720px) {
    .masthead { padding: 20px 0 22px; }
    .awning { height: 32px; }
    .carte-body, .carte-body.filtered .carte-section { grid-template-columns: 1fr; columns: 1; }
    .board-label { padding: 14px 16px; }
    .board-title { font-size: 24px; }
    .board-inner { margin: 16px 16px 0; padding: 4px 14px 12px; border-width: 6px; }
    .board-items li { grid-template-columns: 24px 1fr; }
    .board-items small { grid-column: 2; text-align: left; }
    .board-name { font-size: 19px; }
    .board-note, .board-notice { margin-left: 16px; margin-right: 16px; }
    .order-panel { padding: 16px; }
    .order-who { grid-template-columns: 1fr; }
    .carte-title { font-size: 36px; }
    .carte-filter { gap: 4px 18px; }
}
/* =========================================================
   Yönetim paneli
   ========================================================= */
body.admin {
    --a-green: #1f4636;
    --a-green-dark: #163327;
    --a-green-soft: #e7f0eb;
    --a-bg: #eef0ee;
    --a-text: #111614;
    --a-muted: #4f5a55;
    --a-line: #c9d0cc;
    --a-input: #7d8883;
    --a-red: #b42318;
    --a-red-soft: #fdecea;
    --ink-soft: var(--a-muted);
    --bordo: var(--a-red);
    background: var(--a-bg);
    color: var(--a-text);
    font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}
.admin a { color: var(--a-green); font-weight: 600; }
.admin .container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.admin h1 { font-size: 30px; font-weight: 700; margin-bottom: 18px; letter-spacing: -.01em; }
.admin h1 small { font-size: 18px; font-weight: 400; color: var(--a-muted); }
.admin h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.muted { color: var(--a-muted); }
.small { font-size: 15px; }
.mt { margin-top: 16px; }

/* Üst bar ve menü */
.admin-header { background: var(--a-green); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.admin .brand { font-weight: 700; font-size: 22px; color: #fff; text-decoration: none; }
.admin .brand small { font-weight: 400; font-size: 15px; color: #cfe0d7; margin-left: 6px; }
.user-box { font-size: 15px; color: #cfe0d7; display: flex; align-items: center; gap: 18px; }
.user-box a { color: #fff; text-decoration: none; font-weight: 600; }
.user-box a:hover { text-decoration: underline; }
.logout-form { display: inline; }
.logout-form button {
    background: #fff; border: 0; border-radius: 4px; padding: 6px 14px;
    font: inherit; font-size: 15px; font-weight: 700; color: var(--a-green); cursor: pointer;
}
.logout-form button:hover { background: #e3ece7; }

.admin-nav { display: flex; gap: 4px; overflow-x: auto; padding-top: 4px; }
.admin-nav a {
    padding: 11px 18px; color: #fff; text-decoration: none; white-space: nowrap;
    font-size: 16px; font-weight: 600; border-radius: 6px 6px 0 0; opacity: .85;
}
.admin-nav a:hover { background: var(--a-green-dark); opacity: 1; }
.admin-nav a.active { background: var(--a-bg); color: var(--a-green); opacity: 1; font-weight: 700; }
.admin .admin-main { padding-top: 30px; padding-bottom: 60px; }

/* Butonlar */
.btn {
    display: inline-block; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
    background: var(--a-green); color: #fff !important; border: 2px solid var(--a-green);
    padding: 10px 20px; cursor: pointer; text-decoration: none; border-radius: 5px;
}
.btn:hover { background: var(--a-green-dark); border-color: var(--a-green-dark); }
.btn-light { background: #fff; color: var(--a-text) !important; border-color: var(--a-input); }
.btn-light:hover { background: var(--a-green-soft); border-color: var(--a-green); }
.btn-danger { background: #fff; color: var(--a-red) !important; border-color: var(--a-red); }
.btn-danger:hover { background: var(--a-red); color: #fff !important; border-color: var(--a-red); }
.btn-sm { padding: 6px 12px; font-size: 15px; }
.btn-block { width: 100%; }

/* Formlar */
.admin label { display: block; margin-bottom: 16px; font-weight: 700; font-size: 16px; }
.admin input[type=text], .admin input[type=password], .admin input[type=number], .admin input[type=date],
.admin input[type=datetime-local], .admin input[type=time], .admin input[type=tel],
.admin input[type=search], .admin select, .admin textarea {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 400;
    border: 1.5px solid var(--a-input); border-radius: 5px; background: #fff; color: var(--a-text);
}
.admin input::placeholder, .admin textarea::placeholder { color: #8b9590; }
.admin input:focus, .admin select:focus, .admin textarea:focus {
    outline: 0; border-color: var(--a-green); box-shadow: 0 0 0 3px rgba(31,70,54,.25);
}
.admin input[type=time] { max-width: 180px; }
.admin input[type=file] { display: block; margin-top: 8px; font-weight: 400; }
.admin label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; cursor: pointer; }
.admin label.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--a-green); }
.field-label { font-weight: 700; font-size: 16px; margin-bottom: 6px; }

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > label { flex: 0 0 auto; }
.row > .grow, .grow { flex: 1 1 200px; }
.row.compact { gap: 8px; align-items: center; }
.row.compact input { margin-top: 0; }
.align-end { display: flex; align-items: flex-end; padding-bottom: 16px; }
.w-sm { width: 100px !important; }
.inline { display: inline-flex; gap: 8px; align-items: center; }
.inline input, .inline select { margin-top: 0 !important; width: auto !important; }
.copy-form { margin-bottom: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
td.actions { display: table-cell; white-space: nowrap; text-align: right; }
td.actions form { display: inline; }

.item-row { display: grid; grid-template-columns: 1fr 1fr auto auto auto; gap: 6px; margin-bottom: 6px; }
.item-row input { margin-top: 0 !important; }
.item-row .btn-sm { padding: 6px 11px; }
#add-item { margin: 4px 0 18px; }

/* Kartlar ve tablolar */
.card {
    background: #fff; border: 1px solid var(--a-line); border-radius: 8px;
    padding: 22px 24px; margin-bottom: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card > h2:first-child { padding-bottom: 12px; border-bottom: 1px solid var(--a-line); }
.card.narrow { max-width: 440px; }
.card-head, .page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head { padding-bottom: 12px; border-bottom: 1px solid var(--a-line); }
.card-head h2 { margin: 0; }
.page-head h1 { margin: 0; }
.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 22px; align-items: start; }

.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid #e1e6e3; text-align: left; vertical-align: middle; }
.table th { font-size: 14px; font-weight: 700; color: var(--a-text); background: #f3f6f4; border-bottom: 2px solid var(--a-line); }
.table tbody tr:hover { background: #f7faf8; }
.table tr.inactive td { color: #8b9590; }
.table tr.inactive img { opacity: .5; }

.tag, .tag-btn {
    display: inline-block; padding: 3px 10px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3;
    border: 1.5px solid var(--a-input); background: #fff; color: var(--a-text); border-radius: 999px;
}
.tag.ok, .tag-btn.ok { border-color: var(--a-green); background: var(--a-green-soft); color: var(--a-green); }
.tag.warn { border-color: var(--a-red); background: var(--a-red-soft); color: var(--a-red); }
.tag-btn { cursor: pointer; }
.tag-btn:hover { border-color: var(--a-green); background: var(--a-green-soft); color: var(--a-green); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 22px; }
.stat {
    background: #fff; border: 1px solid var(--a-line); border-left: 5px solid var(--a-green);
    border-radius: 8px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.stat strong { display: block; font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--a-text); }
.stat span { color: var(--a-muted); font-size: 15px; font-weight: 600; }

.alert { padding: 13px 16px; margin-bottom: 18px; border: 1px solid; border-left-width: 5px; border-radius: 6px; font-weight: 600; }
.alert.success { border-color: #2f7a4f; background: #e8f5ec; color: #1c4f31; }
.alert.error { border-color: var(--a-red); background: var(--a-red-soft); color: #8a1b12; }
.alert.info { border-color: #3b6ea8; background: #eaf2fb; color: #1d3f66; }

.thumb { width: 90px; height: 90px; object-fit: cover; border: 1px solid var(--a-line); border-radius: 6px; }
.thumb-sm { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.thumb-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.order-settings, .save-template, .quick-fill {
    border: 1.5px solid var(--a-line); border-radius: 8px; background: #f7faf8; padding: 14px 18px 4px; margin: 0 0 18px;
}
.order-settings legend { font-weight: 700; font-size: 16px; padding: 0 8px; }
.order-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tally .num { text-align: right; font-size: 22px; font-weight: 700; width: 110px; }
.tally th.num { font-size: 14px; }
.bar-cell { width: 35%; }
.bar { display: block; height: 12px; background: var(--a-green); border-radius: 3px; min-width: 0; }

.daily-list { list-style: none; margin: 0; padding: 0; }
.daily-list li { border-bottom: 1px solid #e1e6e3; }
.daily-list li:last-child { border-bottom: 0; }
.daily-list li a { display: block; padding: 10px 10px; color: var(--a-text); text-decoration: none; border-radius: 6px; }
.daily-list li a:hover { background: var(--a-green-soft); }
.daily-list li.current a { background: var(--a-green-soft); box-shadow: inset 4px 0 0 var(--a-green); }
.daily-list .muted { display: block; font-weight: 400; }
.tpl-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; }

.quick-fill { background: var(--a-green-soft); border-color: #b5cdbf; padding-bottom: 14px; }
.quick-fill .field-label { display: block; margin-bottom: 10px; }
.quick-fill .tag-btn { padding: 7px 14px; font-size: 15px; }
.quick-fill p { margin: 10px 0 0; }
.tpl-chip { display: inline-flex; }
.tpl-chip form { display: inline; }
.tpl-chip .tag-btn.ok { border-radius: 999px 0 0 999px; background: var(--a-green); color: #fff; }
.tpl-chip .tag-btn.ok:hover { background: var(--a-green-dark); }
.tpl-chip .tpl-del { border-radius: 0 999px 999px 0; border-left: 0; border-color: var(--a-red); color: var(--a-red); background: #fff; }
.tpl-chip .tpl-del:hover { color: #fff; background: var(--a-red); border-color: var(--a-red); }
#fill-blank { background: #fff; }
.save-template { padding-bottom: 4px; }
.save-template input[name=template_name] { max-width: 340px; }

/* Site renkleri */
.preset-list { margin-bottom: 20px; }
.preset {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 9px; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 600; color: var(--a-text);
    background: #fff; border: 1.5px solid var(--a-input); border-radius: 999px;
}
.preset:hover { border-color: var(--a-green); background: var(--a-green-soft); }
.preset-swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); }
.color-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; margin-bottom: 14px; }
.admin label.color-field { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.color-field input[type=color] {
    width: 54px; height: 40px; padding: 2px; flex-shrink: 0; cursor: pointer;
    border: 1.5px solid var(--a-input); border-radius: 6px; background: #fff;
}
.color-field small { display: block; font-weight: 400; font-size: 14px; color: var(--a-muted); }
.color-preview { border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; background: var(--bg); color: var(--text); font-size: 12px; }
.cp-top { display: flex; justify-content: space-between; padding: 5px 10px; background: var(--green); color: #dfe6df; }
.cp-accent { color: var(--accent); font-weight: 700; }
.cp-awning { height: 18px; background: repeating-linear-gradient(90deg, var(--green) 0 16px, var(--stripe) 16px 32px); }
.cp-body { padding: 14px 16px 16px; text-align: center; }
.cp-title { font-family: Georgia, serif; font-size: 24px; margin-bottom: 10px; }
.cp-board {
    background: var(--felt); border: 8px solid var(--oak); color: #f1f0ec; padding: 10px 6px;
    font-family: Georgia, serif; font-size: 15px; line-height: 1.9;
}
.cp-btn { margin-top: 10px; padding: 8px; background: var(--green); color: #fff; font-weight: 700; }
.cp-foot { padding: 6px 10px; background: var(--green); color: #c9d3cc; }

/* Kullanım kılavuzu */
.guide { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.guide-toc { position: sticky; top: 16px; }
.guide-toc ol { margin: 0; padding-left: 22px; }
.guide-toc li { margin: 6px 0; }
.guide-toc a { text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
.guide-body section { scroll-margin-top: 16px; }
.guide-body h3 { font-size: 17px; margin: 18px 0 6px; }
.guide-body p { margin: 0 0 12px; }
.guide-body .steps { margin: 0 0 14px; padding-left: 24px; }
.guide-body .steps li { margin: 0 0 9px; padding-left: 4px; }
.guide-tip {
    background: #fff8e1; border-left: 5px solid #d9a521; border-radius: 6px;
    padding: 11px 14px; color: #4a3b0f;
}
.guide-short { max-width: 760px; }
.guide-short p:last-child, .guide-short .steps:last-child { margin-bottom: 0; }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--a-muted); }

/* Giriş / kurulum */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: var(--a-green) !important; }
.auth-box { background: #fff; border-radius: 10px; padding: 32px; width: 100%; max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.auth-box h1 { font-size: 30px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--a-line); }
.auth-box code { background: var(--a-green-soft); padding: 1px 5px; border-radius: 3px; }

@media (max-width: 800px) {
    .two-col, .guide, .color-layout { grid-template-columns: 1fr; }
    .guide-toc { position: static; }
    .item-row { grid-template-columns: 1fr auto auto auto; }
    .item-row input[name="item_desc[]"] { grid-column: 1 / -1; grid-row: 2; }
    .table { font-size: 15px; }
    .user-box span { display: none; }
    .card { padding: 18px 16px; }
}
