/* ==========================================================================================
   19 Kas 2026 — YENİ TASARIM, 1. AŞAMA ("WhatsApp Panel yeni tasarım" şablonu, 19 ekran)
   panel.css'ten SONRA yüklenir ve oradaki kuralları ezer; panel.css'e dokunulmadı.
   Geri dönüş: _Layout.cshtml'deki tema.css satırını kaldırmak yeter (yan menü işaretlemesi
   eski üst çubuk sınıflarını koruduğu için panel o hâlde de çalışır).
   Kapsam: renk/yazı sistemi, gruplu lacivert yan menü (sohbet ekranında dar şerit), beyaz
   sayfa başlığı bandı, düğme / kart / tablo / form / rozet, giriş ekranı, pano sayaçları.
   CSP: satır içi stil ve dış font yok → her şey sınıfla, fontlar wwwroot/fonts altında.
   ========================================================================================== */

/* ---- Yazı tipleri (Inter gövde, Plus Jakarta Sans başlık; OFL lisanslı, panelden sunulur) ---- */
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    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;
}

/* ---- Renk ve ölçü sistemi ---- */
:root {
    --zemin: #f3f6fb;
    --cizgi: #e2e8f2;
    --cizgi-koyu: #cfd8e6;
    --metin: #14213d;
    --ikincil: #3b4a66;
    --soluk: #5b6780;
    --lacivert: #0b2350;
    --mavi: #1d6fe0;
    --mavi-koyu: #1557b0;
    --mavi-acik: #e8f1fd;
    --turuncu: #ee6c0e;
    --turuncu-acik: #fff1d6;
    --turuncu-metin: #7a4b00;
    --turuncu-ustu: #2a1300;                 /* turuncu zemin üstündeki koyu yazı (kontrast için beyaz değil) */
    --yesil: #0f8a54;
    --yesil-koyu: #0b6b41;
    --yesil-acik: #e4f6ec;
    --kirmizi: #c92f2f;
    --kirmizi-koyu: #a32020;
    --kirmizi-acik: #fdecec;
    --gecis-menu: linear-gradient(180deg, #0b2350 0%, #12408f 70%, #0e7fa3 100%);
    --gecis-turuncu: linear-gradient(135deg, #f8a63c, #ee6c0e);
    --golge: 0 1px 2px rgba(11, 35, 80, .05);
    --golge-kalkik: 0 18px 40px rgba(11, 35, 80, .10);
    --yaricap: 14px;
    --yazi: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --baslik: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
    --yan-gen: 256px;
}

body { font-family: var(--yazi); line-height: 1.45; }
a { color: var(--mavi-koyu); }
a:hover { color: var(--lacivert); }
h1, h2, h3 { font-family: var(--baslik); color: var(--lacivert); }
h1 { font-size: 22px; font-weight: 800; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }

/* ---- Düğmeler: ana eylem turuncu geçiş, ikincil beyaz çerçeveli ---- */
.dugme { border-radius: 12px; padding: 9px 14px; font-weight: 600; transition: filter .12s ease, background .12s ease, border-color .12s ease; }
.dugme-ana, .dugme-turuncu { background: var(--gecis-turuncu); color: var(--turuncu-ustu); font-weight: 700; border-color: transparent; }
.dugme-ana:hover, .dugme-turuncu:hover { background: var(--gecis-turuncu); color: var(--turuncu-ustu); filter: brightness(1.05); }
.dugme-sade { background: var(--yuzey); border-color: var(--cizgi); color: var(--metin); }
.dugme-sade:hover { background: var(--mavi-acik); border-color: #bcd6f8; color: var(--lacivert); }
.dugme:focus-visible, .cikis-dugmesi:focus-visible, .menu-dugmesi:focus-visible { outline: 3px solid rgba(29, 111, 224, .45); outline-offset: 2px; }

/* ---- Rozet ve uyarılar ---- */
.rozet { padding: 3px 9px; border-radius: 12px; font-weight: 700; }
.rozet-mavi { background: var(--mavi-acik); color: var(--mavi-koyu); }
.rozet-turuncu { background: var(--turuncu-acik); color: var(--turuncu-metin); }
.rozet-yesil { background: var(--yesil-acik); color: var(--yesil-koyu); }
.rozet-gri { background: #eef0f4; color: var(--ikincil); }
.uyari { border-radius: 12px; padding: 11px 14px; }
.uyari-basari { background: var(--yesil-acik); color: var(--yesil-koyu); border-color: #bfe7d1; }
.uyari-hata { background: var(--kirmizi-acik); color: var(--kirmizi-koyu); border-color: #f6c7c7; }
.uyari-bilgi { background: var(--turuncu-acik); color: var(--turuncu-metin); border-color: #f3dfa8; }

/* ---- Kart, form, tablo ---- */
.kart { border-radius: 16px; padding: 18px 20px; box-shadow: var(--golge); }
label { gap: 6px; color: var(--ikincil); }
label.onay-kutusu { color: var(--metin); }
input, select, textarea { padding: 9px 12px; border-color: var(--cizgi-koyu); border-radius: 12px; color: var(--metin); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(29, 111, 224, .18); border-color: var(--mavi); }
input[type=checkbox], input[type=radio] { accent-color: var(--mavi); }
.tablo th, .tablo td { padding: 10px 8px; border-bottom-color: #edf1f7; }
.tablo th { background: transparent; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; color: var(--soluk); border-bottom-color: var(--cizgi); }
.tablo tr:hover td { background: #f8fafd; }

/* ---- Sayfa: akışkan genişlik + beyaz başlık bandı ---- */
main.sayfa { max-width: none; padding: 24px 28px 28px; }
main.sayfa > .sayfa-baslik:first-child {
    margin: -24px -28px 22px; padding: 14px 28px; background: var(--yuzey); border-bottom: 1px solid var(--cizgi);
}
.sayfa-baslik h1 { margin: 0; }
.sayfa-baslik p { margin: 3px 0 0; font-size: 13px; }
main.sayfa.belge-alani { padding: 24px 16px; }

/* ---- Pano sayaçları: tamamı renkli ---- */
.pano-kutular { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pano-kutu { border: 1px solid var(--cizgi); border-radius: 16px; padding: 18px 20px; box-shadow: var(--golge); }
.pano-sayi { font-family: var(--baslik); font-size: 34px; font-weight: 800; line-height: 1; color: var(--lacivert); }
.pano-etiket { font-size: 12.5px; margin-top: 8px; }
.pano-kutu.renkli { border-color: transparent; color: #fff; }
.pano-kutu.renkli .pano-sayi, .pano-kutu.renkli .pano-etiket, .pano-kutu.renkli .pano-birim { color: inherit; }
.pano-kutu.pano-mavi { background: #1d5fc4; box-shadow: 0 8px 20px rgba(29, 95, 196, .25); }
.pano-kutu.pano-turkuaz { background: #0b6f8f; box-shadow: 0 8px 20px rgba(11, 111, 143, .25); }
.pano-kutu.pano-lacivert { background: #0b2350; box-shadow: 0 8px 20px rgba(11, 35, 80, .25); }
.pano-kutu.pano-kirmizi { background: #b92b2b; box-shadow: 0 8px 20px rgba(185, 43, 43, .25); }
.pano-kutu.pano-mor { background: #5b34b3; box-shadow: 0 8px 20px rgba(91, 52, 179, .25); }
.pano-kutu.pano-yesil { background: #0b7a4b; box-shadow: 0 8px 20px rgba(11, 122, 75, .25); }
.pano-kutu.pano-turuncu { background: var(--gecis-turuncu); color: var(--turuncu-ustu); box-shadow: 0 8px 20px rgba(238, 108, 14, .25); }

/* ==========================================================================================
   YAN MENÜ (acente paneli). Geniş ekran: solda sabit sütun. 900px ve altı: ☰ ile açılan üst çubuk.
   ========================================================================================== */
.menu-ikon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yan-menu { background: var(--gecis-menu); color: #fff; border-bottom: 0; }
.yan-menu .marka { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.yan-menu .marka-resim { width: 42px; height: 42px; margin: 0; border-radius: 13px; box-shadow: none; background: #fff; flex: none; }
.marka-harf {
    width: 42px; height: 42px; flex: none; border-radius: 13px; background: #fff; color: var(--lacivert);
    display: flex; align-items: center; justify-content: center; font-family: var(--baslik); font-weight: 800; font-size: 15px;
}
.marka-yazi { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.marka-yazi strong { font-family: var(--baslik); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marka-yazi small { font-size: 12px; font-weight: 400; color: #d5e2f7; }
.menu-grup { padding: 14px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c3d4f0; }
.menu-grup:first-child { padding-top: 4px; }
.yan-menu .ust-menu a {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px;
    border-radius: 10px; color: #fff; font-weight: 500; white-space: nowrap;
}
.yan-menu .ust-menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.yan-menu .ust-menu a.aktif { background: rgba(255, 255, 255, .2); font-weight: 700; }
.yan-menu .ust-menu a:focus-visible, .yan-menu .marka:focus-visible, .kullanici-avatar:focus-visible { outline: 3px solid #ffb155; outline-offset: 2px; }
.yan-menu .menu-yazi { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.yan-menu .yan-rozet {
    min-width: 20px; height: 20px; padding: 0 6px; margin: 0; border-radius: 10px; background: #ffb155; color: var(--turuncu-ustu);
    font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; flex: none;
}
/* Mola / bildirim düğmeleri ve kullanıcı kartı */
.yan-menu .yan-dugme {
    width: 100%; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px;
    background: transparent; border-color: transparent; color: #fff; font-weight: 500; font-size: 14px;
}
.yan-menu .yan-dugme:hover { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.yan-menu .mesaj-bildirim-modu[data-mod="kapali"] { color: #c3d4f0; }
.yan-menu .mesaj-bildirim-modu[data-mod="kapali"] .menu-ikon { opacity: .55; }
.yan-menu .mola-formu { width: 100%; }
.yan-menu .mola-formu.mola-acik { flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.yan-menu .mola-durum { flex: 1 1 auto; background: var(--turuncu-acik); color: var(--turuncu-metin); border-radius: 10px; padding: 6px 10px; text-align: center; white-space: normal; }
.yan-menu .mola-durum.asti { background: var(--kirmizi-acik); color: var(--kirmizi-koyu); }
.yan-menu .mola-acik .mola-dugmesi { flex: 1 1 auto; }
.kullanici-karti { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .14); min-width: 0; }
.kullanici-karti form { margin: 0; flex: none; }
.kullanici-avatar {
    width: 38px; height: 38px; flex: none; border-radius: 50%; background: #f59a2f; color: var(--turuncu-ustu);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px;
}
.kullanici-avatar:hover { color: var(--turuncu-ustu); text-decoration: none; filter: brightness(1.06); }
.kullanici-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.yan-menu .kullanici-adi { color: #fff; font-weight: 700; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yan-menu a.kullanici-adi:hover { color: #fff; text-decoration: underline; }
.kullanici-rol { font-size: 12px; color: #d5e2f7; }
.cikis-dugmesi {
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.cikis-dugmesi:hover { background: rgba(255, 255, 255, .16); }

@media (min-width: 901px) {
    body.yan-menulu { padding-left: var(--yan-gen); }
    body.dar-menu { --yan-gen: 76px; }
    .ust-bar.yan-menu {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: var(--yan-gen); height: auto;
        flex-direction: column; align-items: stretch; gap: 0; padding: 18px 12px 14px;
        overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
    }
    .yan-menu .marka { padding: 0 6px 16px; flex: none; }
    .yan-menu .ust-menu { flex: 1 0 auto; flex-direction: column; gap: 2px; overflow: visible; padding-bottom: 16px; }
    .yan-menu .ust-kullanici { flex: none; flex-direction: column; align-items: stretch; gap: 4px; }
    .yan-menu .kullanici-karti { margin-top: 6px; }

    /* Sohbet ekranı: 76px simge şeridi; üzerine gelince (ya da klavyeyle içine girince) tam menü açılır */
    body.dar-menu .ust-bar.yan-menu { padding: 14px 7px; transition: width .16s ease .22s, box-shadow .16s ease .22s; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .menu-yazi,
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .marka-yazi,
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .kullanici-bilgi,
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .kullanici-karti form { display: none; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .menu-grup {
        height: 1px; padding: 0; margin: 7px 14px; overflow: hidden; color: transparent; background: rgba(255, 255, 255, .22);
    }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .menu-grup:first-child { display: none; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .marka { justify-content: center; padding: 0 0 12px; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .ust-menu a,
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .yan-dugme { justify-content: center; padding: 0; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .menu-ikon { width: 22px; height: 22px; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .yan-rozet {
        position: absolute; top: 2px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px;
    }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .kullanici-karti { justify-content: center; padding: 6px 0; background: transparent; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .kullanici-avatar { width: 44px; height: 44px; border: 2px solid #fff; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .mola-formu.mola-acik { padding: 4px 2px; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .mola-durum { font-size: 10.5px; padding: 4px 2px; line-height: 1.25; }
    body.dar-menu .ust-bar.yan-menu:not(:hover):not(:focus-within) .mola-acik .mola-dugmesi { font-size: 11px; padding: 6px 2px; }
    body.dar-menu .ust-bar.yan-menu:hover,
    body.dar-menu .ust-bar.yan-menu:focus-within { width: 256px; padding: 18px 12px 14px; box-shadow: 12px 0 32px rgba(11, 35, 80, .28); }
}

@media (max-width: 900px) {
    main.sayfa { padding: 16px 14px 20px; }
    main.sayfa > .sayfa-baslik:first-child { margin: -16px -14px 16px; padding: 12px 14px; }
    .ust-bar.yan-menu { background: linear-gradient(120deg, #0b2350 0%, #12408f 65%, #0e7fa3 100%); }
    .yan-menu .marka { flex: 1; }
    .yan-menu .marka-resim, .marka-harf { width: 36px; height: 36px; border-radius: 11px; font-size: 13.5px; }
    .yan-menu .marka-yazi small { display: none; }
    .yan-menu .menu-dugmesi { width: 44px; height: 44px; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; }
    .yan-menu .ust-menu { border-top-color: rgba(255, 255, 255, .25); max-height: calc(100dvh - 70px); overflow-y: auto; }
    .yan-menu .ust-menu a { padding: 0 12px; font-size: 15px; }
    .yan-menu .ust-menu a .yan-rozet { margin-left: 8px; }
    /* Üst çubukta yer dar: mola / bildirim yalnız simge, kullanıcı yalnız avatar + çıkış */
    .yan-menu .ust-kullanici { gap: 2px; }
    .yan-menu .ust-kullanici .yan-dugme { width: 44px; justify-content: center; padding: 0; }
    .yan-menu .ust-kullanici .yan-dugme .menu-yazi, .yan-menu .kullanici-bilgi { display: none; }
    .yan-menu .mola-formu { width: auto; }
    .yan-menu .mola-formu.mola-acik { flex-wrap: nowrap; padding: 4px 6px; }
    .yan-menu .mola-durum { font-size: 12px; white-space: nowrap; }
    .kullanici-karti { padding: 0; gap: 2px; background: transparent; }
    .kullanici-avatar { width: 36px; height: 36px; }
}

/* ---- Giriş ekranı: lacivert-turkuaz kimlik paneli, koyu yazılı turuncu düğme ---- */
.giris-sahne { border-radius: 20px; box-shadow: var(--golge-kalkik), 0 2px 8px rgba(11, 35, 80, .06); }
.giris-marka { background: linear-gradient(150deg, #0b2350 0%, #12408f 60%, #0e7fa3 100%); background-size: 170% 170%; }
.giris-cip { height: 34px; padding: 0 14px; gap: 8px; border: 0; font-size: 14px; font-weight: 700; }
.giris-cip .menu-ikon { width: 18px; height: 18px; stroke-width: 2; }
.giris-acente { font-family: var(--baslik); font-size: 34px; font-weight: 800; line-height: 1.1; }
.giris-slogan { font-size: 16px; color: #e3ecfb; }
.giris-ozellikler { gap: 14px; }
.giris-ozellikler li { align-items: center; gap: 14px; padding: 0; background: transparent; border: 0; font-size: 14px; font-weight: 600; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.giris-ozellikler li:hover { background: transparent; }
.giris-ozellik-simge { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.giris-ozellik-simge .menu-ikon { width: 20px; height: 20px; }
.giris-form-baslik h2 { font-size: 24px; font-weight: 800; }
.giris-form-baslik p { font-size: 14px; }
.giris-formu input { height: 48px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
.giris-formu input::placeholder { color: #9aa8c0; }
.sifre-goz { width: 40px; height: 40px; padding: 0; border-radius: 10px; color: var(--ikincil); opacity: 1; display: flex; align-items: center; justify-content: center; }
.sifre-goz[hidden] { display: none; }
.sifre-kutusu input { padding-right: 50px; }
.dugme-giris { height: 50px; padding: 0 16px; border-radius: 12px; font-size: 16px; font-weight: 700; background: var(--gecis-turuncu); color: var(--turuncu-ustu); box-shadow: 0 8px 18px rgba(238, 108, 14, .26); }
.dugme-giris.dikkat { color: #fff; }
.giris-kvkk { padding: 10px 12px; border-radius: 12px; background: var(--zemin); font-size: 12.5px; color: var(--ikincil); text-align: left; }
.giris-baglantilar { justify-content: flex-start; gap: 8px 14px; font-size: 12.5px; font-weight: 600; }
.giris-baglantilar a { color: var(--mavi-koyu); }
.giris-baglantilar a:hover { color: var(--lacivert); }
@media (max-width: 860px) {
    .giris-acente { font-size: 24px; }
    .giris-slogan { font-size: 14px; }
}

/* ---- Yönetim (sistem yöneticisi) üst çubuğu: aynı lacivert kimlik ---- */
.ust-bar-yonetim { background: var(--lacivert); border-bottom: 3px solid var(--turuncu); }
.ust-bar-yonetim .marka, .ust-bar-yonetim .kullanici-adi { color: #fff; }
.ust-bar-yonetim .ust-menu a { color: #fff; }
.ust-bar-yonetim .ust-menu a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 900px) {
    .ust-bar-yonetim .menu-dugmesi { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; }
    .ust-bar-yonetim .ust-menu { border-top-color: rgba(255, 255, 255, .25); }
}
