/* Doğuş Akü yönetim paneli. Bootstrap üzerine marka renkleri ve fontu. */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --red: #e31e24; --red-hover: #c8161c; --ink: #161616; --bg: #f3f2ee; --line: #e2e0d9; --muted: #6b6a66;
    --bs-body-font-family: "Outfit", system-ui, sans-serif;
    --bs-body-bg: #f3f2ee;
    --bs-primary: #e31e24; --bs-primary-rgb: 227, 30, 36;
    --bs-link-color: #161616; --bs-link-hover-color: #e31e24;
    --bs-border-radius: .6rem;
}
body { background: var(--bg); color: var(--ink); }
/* Arka arkaya dokununca telefon büyütmesin (çift dokunma yakınlaştırması); iki parmakla yakınlaştırma açık kalır. */
a, button, label, input, select, textarea, summary { touch-action: manipulation; }
h1 { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; margin-bottom: 1.25rem; }
h1:focus { outline: none; }
a { text-decoration: none; color: var(--ink); }
a:hover { color: var(--red); }

.btn-primary { --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red); --bs-btn-hover-bg: var(--red-hover); --bs-btn-hover-border-color: var(--red-hover); --bs-btn-active-bg: var(--red-hover); --bs-btn-disabled-bg: var(--red); --bs-btn-disabled-border-color: var(--red); }
.btn { border-radius: 999px; padding-inline: 1.1rem; font-weight: 500; }
.form-control, .form-select { border-radius: .6rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--ink); box-shadow: 0 0 0 .2rem rgba(22,22,22,.08); }
.form-check-input:checked { background-color: var(--red); border-color: var(--red); }
.card { border-color: var(--line); border-radius: 1rem; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .7rem .6rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.badge-status { display: inline-block; padding: .3em .75em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #e7e5df; color: var(--ink); }
.badge-status--new { background: var(--red); color: #fff; }
.badge-status--won { background: #16a36a; color: #fff; }
.badge-status--lost, .badge-status--spam { background: #ccc9c0; color: #555; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.validation-message { color: var(--red-hover); font-size: .85rem; }
.invalid { border-color: var(--red) !important; }
.valid.modified:not([type=checkbox]) { outline: none; }

/* Yerleşim */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin__side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #fff; padding: 1.25rem 1rem; }
.admin__main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.nav-brand { display: flex; flex-direction: column; gap: .4rem; padding: .5rem; margin-bottom: 1rem; }
.nav-brand img { background: #fff; border-radius: .4rem; padding: .3rem .5rem; align-self: flex-start; }
.nav-brand span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.nav-group { margin: 1.1rem .75rem .3rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.nav-item { display: block; width: 100%; text-align: left; padding: .55rem .75rem; border: 0; background: none; border-radius: .5rem; color: rgba(255,255,255,.82); font: inherit; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--red); color: #fff; }
.nav-item--muted { font-size: .88rem; color: rgba(255,255,255,.6); }
.nav-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.nav-toggle, .nav-toggle__label { display: none; }
@media (max-width: 900px) {
    .admin { grid-template-columns: 1fr; }
    .admin__side { position: static; height: auto; }
    .nav-toggle__label { display: inline-block; padding: .4rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; cursor: pointer; }
    .nav-list { display: none; }
    .nav-toggle:checked ~ .nav-list { display: block; }
}

/* Göstergeler */
.stat-card { padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; height: 100%; }
.stat-card__label { font-size: .85rem; color: var(--muted); }
.stat-card__value { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat-card--red { background: var(--red); border-color: var(--red); color: #fff; }
.stat-card--red .stat-card__label { color: rgba(255,255,255,.8); }

/* Görsel yükleme ve editör */
.image-upload__preview { display: block; max-width: 260px; max-height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: .6rem; background: #fff; margin-bottom: .5rem; }
.image-upload__controls { display: flex; align-items: center; gap: .5rem; }
.rte { border: 1px solid #dee2e6; border-radius: .6rem; background: #fff; }
.rte__toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border-bottom: 1px solid var(--line); background: #faf9f6; border-radius: .6rem .6rem 0 0; position: sticky; top: 0; z-index: 2; }
.rte__toolbar button { border: 1px solid transparent; background: none; border-radius: .4rem; padding: .25rem .55rem; font-size: .88rem; }
.rte__toolbar button:hover { background: #fff; border-color: var(--line); }
.rte__sep { width: 1px; background: var(--line); margin: .2rem .25rem; }
.rte__area { min-height: 360px; max-height: 70vh; overflow-y: auto; padding: 1rem 1.25rem; outline: none; }
.rte__image { padding: .75rem 1rem; border-top: 1px solid var(--line); }
.prose-admin h2 { font-size: 1.5rem; font-weight: 600; margin: 1.4rem 0 .6rem; }
.prose-admin h3 { font-size: 1.2rem; font-weight: 600; margin: 1.1rem 0 .5rem; }
.prose-admin img { max-width: 100%; height: auto; border-radius: .4rem; }
.prose-admin blockquote { border-left: 3px solid var(--red); padding-left: 1rem; }

.sticky-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: .5rem; align-items: center; padding: .9rem 0; margin-top: 1rem; background: linear-gradient(transparent, var(--bg) 30%); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.media-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.media-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.media-grid figcaption { padding: .5rem .6rem; font-size: .75rem; word-break: break-all; }
.note { padding: .75rem 1rem; border-radius: .75rem; background: #fff; border: 1px solid var(--line); }
.note + .note { margin-top: .5rem; }
.note__meta { font-size: .8rem; color: var(--muted); }

#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---------- Giriş sayfası (AuthLayout) ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 50% 0, #fff 0, var(--bg) 60%); }
.auth-card { width: min(420px, 100%); padding: 40px 32px 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); text-align: center; }
.auth-brands { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 28px; }
.auth-brands__logo { width: auto; height: 38px; }
.auth-brands__x { font-size: 22px; font-weight: 300; color: var(--muted); }
.auth-brands__google { width: 34px; height: 34px; }
.auth-card__title { margin-bottom: 24px; font-size: 1.5rem; }
.auth-card .alert { text-align: left; font-size: 14px; }
.auth-card form .form-floating, .auth-card form .checkbox { text-align: left; }
/* Google'ın "Google ile oturum aç" buton kurallarına uygun nötr tema. */
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 50px; padding: 0 20px; background: #fff; border: 1px solid #dadce0; border-radius: 999px; color: #1f1f1f; font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c8cc; box-shadow: 0 1px 3px rgba(60,64,67,.15); }
.btn-google:focus-visible { outline: 2px solid #4285f4; outline-offset: 2px; }

/* Atölye: servis formları. Tablet ve telefonda eldivenle de kullanılabilsin diye büyük dokunma alanları. */
.form-cards { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.form-card { display: block; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.form-card:hover { border-color: var(--ink); color: var(--ink); }
.form-card__top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: 1.1rem; }
.form-card__meta { font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.workshop-home__new { padding: 1rem 2rem; font-size: 1.25rem; }

.wiz { max-width: 820px; margin: 0 auto; padding-bottom: 6rem; }
.wiz__title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin: .2rem 0 .8rem; }
.wiz__steps { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.wiz__steps li { flex: 1; }
.wiz__steps button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .2rem; border: 0; background: none; padding: .3rem 0; color: var(--muted); font: inherit; font-size: .8rem; }
.wiz__steps button:disabled { opacity: .5; }
.wiz__num { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #e7e5df; color: var(--ink); font-weight: 600; font-size: 1rem; }
.wiz__steps .is-done .wiz__num { background: var(--ink); color: #fff; }
.wiz__steps .is-current .wiz__num { background: var(--red); color: #fff; }
.wiz__steps .is-current { color: var(--ink); font-weight: 600; }
.wiz__body { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; }
.wiz__h { font-size: 1.2rem; font-weight: 600; margin: 0 0 .8rem; }
.wiz__h small { font-size: .85rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }
.wiz__field { display: block; margin-bottom: 1rem; }
.wiz__field > span { display: block; font-weight: 500; margin-bottom: .35rem; }
.wiz__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: .6rem; justify-content: center; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.wiz__bar .btn { min-height: 3.4rem; min-width: 8rem; font-size: 1.15rem; }
.wiz__next { flex: 0 1 22rem; }
@media (min-width: 901px) { .wiz__bar { left: 250px; } }
.wiz .form-control-lg { min-height: 3.2rem; font-size: 1.1rem; }

.suggest { display: grid; gap: .4rem; margin: -.4rem 0 1rem; }
.suggest__item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: .7rem .9rem; border: 1px dashed var(--ink); border-radius: .8rem; background: #faf9f6; }
.suggest__item span { font-size: .85rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.chip { min-height: 2.8rem; padding: 0 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 1rem; }
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }
.picker__list { max-height: 50vh; overflow-y: auto; display: grid; gap: .4rem; padding: .2rem; border: 1px solid var(--line); border-radius: .8rem; background: #faf9f6; }
.picker__item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.picker__item:active, .picker__item:hover { border-color: var(--red); }
.picker__item span { font-size: .82rem; color: var(--muted); }
.picker__free { display: flex; gap: .5rem; margin-top: .7rem; }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 2px solid var(--ink); border-radius: .9rem; font-size: 1.1rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.tile { display: flex; align-items: center; gap: .7rem; min-height: 4rem; padding: .7rem .9rem; text-align: left; border: 2px solid var(--line); border-radius: .9rem; background: #fff; font-size: 1rem; line-height: 1.25; }
.tile__mark { flex: none; width: 1.8rem; height: 1.8rem; border-radius: .45rem; border: 2px solid #c9c6bd; display: grid; place-items: center; font-weight: 700; }
.tile--on { border-color: var(--red); background: #fdeced; }
.tile--on .tile__mark { background: var(--red); border-color: var(--red); color: #fff; }

.line { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.line__name { flex: 1; font-weight: 500; }
.line__remove { width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: #f1efea; font-size: 1.1rem; }
.extra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; }
.stepper__btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--ink); background: #fff; font-size: 1.5rem; line-height: 1; -webkit-user-select: none; user-select: none; }
.stepper__btn:disabled { opacity: .3; }
.stepper__value { -webkit-user-select: none; user-select: none; min-width: 2.5rem; text-align: center; font-size: 1.3rem; font-weight: 600; }
.yesno { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.yesno__btn { min-width: 5rem; min-height: 3rem; border: 0; background: #fff; font-size: 1.05rem; font-weight: 600; }
.yesno__btn--on { background: #16a36a; color: #fff; }
.yesno__btn--off { background: var(--ink); color: #fff; }

.summary { display: grid; gap: .4rem; padding: .9rem 1rem; margin-bottom: 1.3rem; background: #faf9f6; border-radius: .8rem; }
.summary div { display: grid; grid-template-columns: 6rem 1fr; gap: .5rem; }
.summary span { color: var(--muted); }
.sig-pad { position: relative; }
.sig-pad__canvas { display: block; width: 100%; aspect-ratio: 600 / 220; background: #fff; border: 2px dashed #b9b6ad; border-radius: .9rem; touch-action: none; cursor: crosshair; }
.sig-pad__line { position: absolute; left: 6%; right: 6%; bottom: 18%; border-top: 1px solid #d8d5cc; font-size: .75rem; color: var(--muted); padding-top: .15rem; pointer-events: none; }
.sig-pad__clear { position: absolute; top: .5rem; right: .5rem; }
.sig-image { display: block; width: 100%; max-width: 300px; height: auto; }
.staff-sig { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: .8rem; }
.staff-sig .sig-image { max-width: 200px; }
.staff-sig span { color: var(--muted); font-size: .9rem; }

/* Kâğıt form görünümü; yazdırınca A4 sayfaya sığar. */
.paper { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 2rem; }
.paper__head { display: flex; align-items: center; gap: 1rem; border-bottom: 3px solid var(--red); padding-bottom: .8rem; margin-bottom: 1rem; }
.paper__head h1 { flex: 1; font-size: 1.3rem; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.paper__no { font-weight: 700; color: var(--red); white-space: nowrap; }
.paper__draft { background: #fff3cd; padding: .5rem .8rem; border-radius: .5rem; font-weight: 600; }
.paper section { margin-bottom: 1rem; }
.paper h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .3rem; font-weight: 600; }
.paper p { margin: 0; }
.paper__text { white-space: pre-wrap; }
.paper__grid, .paper__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.paper__checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; font-size: .92rem; }
.paper__checks li { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.paper__checks li.is-on { color: var(--ink); font-weight: 600; }
.paper__box { width: 1.1rem; height: 1.1rem; border: 1.5px solid #9a978f; display: grid; place-items: center; font-size: .8rem; flex: none; }
.paper__table { width: 100%; font-size: .95rem; }
.paper__table td { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.paper__sign { border-top: 1px solid var(--line); padding-top: 1rem; }
.paper__sign .sig-image { max-width: 240px; margin-top: .3rem; }
.paper__note { font-size: .78rem; color: var(--muted); margin-top: 1rem !important; }
.paper__seal { font-size: .78rem; color: #16a36a; margin-top: .4rem !important; }
.paper__seal.is-broken { color: var(--red); font-weight: 700; }
.paper__foot { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); text-align: center; }
@media (max-width: 600px) {
    .paper { padding: 1.1rem; }
    .paper__head { flex-wrap: wrap; gap: .4rem .8rem; }
    .paper__head img { height: 30px; width: auto; }
    .paper__head h1 { font-size: 1rem; min-width: 0; }
    .paper__no { flex-basis: 100%; }
    .paper__grid, .paper__sign, .paper__checks { grid-template-columns: 1fr; }
}
@media print {
    @page { size: A4; margin: 12mm; }
    body { background: #fff; }
    .admin { display: block; }
    .admin__side, .no-print, #blazor-error-ui, #components-reconnect-modal { display: none !important; }
    .admin__main { padding: 0; }
    .paper { border: 0; padding: 0; max-width: none; }
    .paper__grid, .paper__sign, .paper__checks { grid-template-columns: 1fr 1fr; }
}

/* Tablet ve telefonda üst menü tek satır: logo solda, Menü sağda; formlara daha çok yer kalır. */
@media (max-width: 900px) {
    .admin__side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .6rem 1rem; }
    .nav-brand { flex-direction: row; align-items: center; margin: 0; padding: 0; }
    .nav-brand span { display: none; }
    .nav-list { flex-basis: 100%; }
}
