/* =============================================================================
   EVRAK TAKİP EKLERİ — app.css'in (Nasip tasarım dili) üzerine gelir.
   Duvar kağıdı, tam ekran, ikon boyutu, süre rozetleri, bildirim zili,
   ikon seçici, klasör ağacı, arşiv gezgini, belge detayı, takvim.
   Renkler her zaman --bv-* değişkenlerinden: açık/koyu temada okunur kalır.
   ========================================================================== */

/* ---------- Masaüstü sahnesi ve duvar kağıdı ---------- */
.masaustu-sahne { position: relative; display: flex; min-height: 0; overflow: hidden; }
.masaustu-sahne .masaustu-alani { flex: 1 1 auto; position: relative; z-index: 2; }
.masaustu-alani:focus { outline: none; }

.duvar-katmani,
.duvar-karartma { position: absolute; inset: 0; pointer-events: none; display: none; }
.duvar-katmani { z-index: 0; background-position: center; background-repeat: no-repeat; background-size: cover; }
.duvar-karartma { z-index: 1; background: #000; opacity: .25; }
.masaustu-sahne.duvarli .duvar-katmani,
.masaustu-sahne.duvarli .duvar-karartma { display: block; }
.masaustu-sahne.duvarli .masaustu-alani { background: transparent; }
/* Duvar kağıdı üzerinde ikon yazısı her temada okunur kalsın */
.masaustu-sahne.duvarli .masaustu-oge { color: #fff; }
.masaustu-sahne.duvarli .masaustu-oge .oge-ad { text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .6); }
.masaustu-sahne.duvarli .masaustu-oge .oge-ikon { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55)); }
.masaustu-sahne.duvarli .masaustu-oge:hover { background: rgba(255, 255, 255, .14); }
.masaustu-sahne.duvarli .bos-ipucu { color: #fff; text-shadow: 0 1px 3px #000; }

.duvar-onizleme {
    height: 150px; border-radius: .6rem; border: 1px solid var(--bv-kenar);
    background: var(--bv-masaustu-2) center / cover no-repeat;
    display: flex; align-items: center; justify-content: center; color: var(--bv-kroma-yazi-sonuk);
}
.duvar-onizleme.dolu span { display: none; }

.bos-ipucu {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    color: var(--bv-kroma-yazi-sonuk); font-size: .95rem; opacity: .8; text-align: center; padding: 1rem;
}

/* ---------- İkon boyutları ---------- */
.masaustu-alani.ikon-kucuk { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); grid-auto-rows: 92px; gap: 8px; }
.masaustu-alani.ikon-kucuk .oge-ikon { font-size: 1.7rem; }
.masaustu-alani.ikon-kucuk .oge-ad { font-size: .72rem; }
.masaustu-alani.ikon-buyuk { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); grid-auto-rows: 142px; gap: 14px; }
.masaustu-alani.ikon-buyuk .oge-ikon { font-size: 3rem; }
.masaustu-alani.ikon-buyuk .oge-ad { font-size: .85rem; }

/* ---------- Öğe rozetleri: süre durumu + kısayol oku ---------- */
.masaustu-oge { position: relative; }
.masaustu-oge .oge-ikon-kutu { position: relative; line-height: 1; }
.masaustu-oge .sure-rozet {
    position: absolute; top: -4px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; font-size: .62rem; font-weight: 700; line-height: 18px; text-align: center;
    color: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}
.sure-rozet.doldu { background: #dc2626; }
.sure-rozet.bugun { background: #dc2626; animation: evrak-nabiz 1.4s infinite; }
.sure-rozet.yaklasiyor { background: #f59e0b; color: #1b1f25; }
@keyframes evrak-nabiz { 50% { transform: scale(1.18); } }
.masaustu-oge .kisayol-ok {
    position: absolute; left: -6px; bottom: -3px; font-size: .7rem; color: #fff;
    background: #334155; border-radius: 4px; padding: 0 2px; line-height: 1.15;
}
.masaustu-oge.kirik { opacity: .45; }
.masaustu-oge.kirik .oge-ad { text-decoration: line-through; }
.masaustu-oge.kesildi { opacity: .5; }

/* Konum yolu (breadcrumb): her parça bırakma hedefi */
.klasor-yolu .yol-parca {
    border: 1px solid transparent; background: transparent; color: var(--bv-kroma-yazi-orta);
    padding: .15rem .45rem; border-radius: .4rem; font-size: .85rem; max-width: 220px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.klasor-yolu .yol-parca:hover { color: var(--bv-vurgu); background: var(--bv-oge-hover); }
.klasor-yolu .yol-parca.son { color: var(--bv-kroma-yazi); font-weight: 600; }
.klasor-yolu .yol-parca.birakma-hedefi { border: 1px dashed var(--bv-vurgu); background: var(--bv-kroma-vurgu); }
.klasor-yolu .yol-ayrac { color: var(--bv-kroma-yazi-sonuk); font-size: .7rem; }

/* ---------- Tam ekran kipi ---------- */
.tam-ekran-cik {
    position: absolute; top: 10px; right: 12px; z-index: 5; display: none;
    background: rgba(15, 23, 42, .65); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
}
.tam-ekran-cik:hover { background: rgba(15, 23, 42, .85); color: var(--bv-amber); }
body.tam-ekran .sol-menu,
body.tam-ekran .ust-bar { display: none !important; }
body.tam-ekran .tam-ekran-cik { display: inline-flex; gap: .35rem; align-items: center; }

/* ---------- Görev çubuğu ---------- */
.gorev-baslat { max-width: none; }
.gorev-ayrac { width: 1px; height: 22px; background: var(--bv-kenar); margin: 0 .15rem; }

/* ---------- Bildirim zili ---------- */
.zil-menu { width: min(380px, 92vw); }
.zil-liste { max-height: 420px; overflow-y: auto; }
.zil-oge { display: flex; gap: .6rem; padding: .6rem .9rem; border-bottom: 1px solid var(--bv-kenar);
           cursor: pointer; font-size: .85rem; }
.zil-oge:hover { background: var(--bv-oge-hover); }
.zil-oge.okunmamis { background: rgba(245, 158, 11, .08); }
.zil-oge.okunmamis .zil-baslik { font-weight: 600; }
.zil-sure-dugme { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .5rem .9rem;
    border: 0; border-bottom: 1px solid var(--bv-kenar); background: transparent; color: var(--bv-vurgu);
    font-size: .85rem; text-align: left; }
.zil-sure-dugme:hover { background: var(--bv-oge-hover); }

/* ---- Girişte süre uyarıları ---- */
.sure-uyari-grup { --sure-renk: #0ea5e9; border-bottom: 1px solid var(--bv-kenar); }
.sure-uyari-grup.tur-danger { --sure-renk: #dc2626; }
.sure-uyari-grup.tur-warning { --sure-renk: #f59e0b; }
.sure-uyari-grup-baslik { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem;
    font-weight: 600; font-size: .9rem; border-left: 4px solid var(--sure-renk); background: var(--bs-tertiary-bg); }
.sure-uyari-grup-baslik > .bi { color: var(--sure-renk); }
.sure-uyari-sayi { margin-left: auto; background: var(--sure-renk); color: #fff; }
.sure-uyari-grup.tur-warning .sure-uyari-sayi { color: #1b1f25; }
.sure-uyari-satir { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .55rem 1rem .55rem 1.25rem;
    border: 0; border-top: 1px solid var(--bv-kenar); background: transparent; color: inherit; text-align: left; }
.sure-uyari-satir:hover, .sure-uyari-satir:focus-visible { background: var(--bv-oge-hover); }
.sure-uyari-satir > .bi { font-size: 1.35rem; flex-shrink: 0; }
.sure-uyari-ad { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.sure-uyari-ad > span:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sure-uyari-ad small { max-width: 100%; color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sure-uyari-ben { font-weight: 500; margin: .15rem 0; }
.sure-uyari-tarih { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; font-size: .85rem; }
.sure-uyari-tarih strong { color: var(--sure-renk); }
.sure-uyari-tarih small { color: var(--bs-secondary-color); }
.sure-uyari-tumu { display: block; width: 100%; padding: .45rem 1rem; border: 0; border-top: 1px solid var(--bv-kenar);
    background: transparent; color: var(--bv-vurgu); font-size: .85rem; text-align: right; }
.sure-uyari-tumu:hover { text-decoration: underline; }
.sure-uyari-bos { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2.5rem 1rem;
    color: var(--bs-secondary-color); }
.sure-uyari-bos .bi { font-size: 2.25rem; }
.zil-oge small { color: var(--bv-kroma-yazi-sonuk); }
.zil-bos { padding: 1.5rem; text-align: center; color: var(--bv-kroma-yazi-sonuk); font-size: .85rem; }

/* ---------- İkon seçici ---------- */
.ikon-secici-izgara {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px;
    height: 300px; overflow-y: auto; padding: 4px; border: 1px solid var(--bv-kenar); border-radius: .5rem;
    align-content: start;
}
.ikon-secici-izgara button {
    border: 1px solid transparent; background: transparent; border-radius: .4rem; height: 42px;
    font-size: 1.3rem; color: var(--bs-body-color);
}
.ikon-secici-izgara button:hover { background: var(--bv-oge-hover); border-color: var(--bv-kenar); }
.ikon-secici-izgara button.secili { border-color: var(--bv-amber); background: rgba(245, 158, 11, .15); }
.ikon-onizleme { width: 96px; height: 96px; display: grid; place-items: center; font-size: 3.4rem;
                 border-radius: 1rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bv-kenar); flex: 0 0 auto; }
.renk-paleti { display: flex; flex-wrap: wrap; gap: 6px; }
.renk-paleti button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent;
                      box-shadow: 0 0 0 1px var(--bv-kenar); padding: 0; }
.renk-paleti button.secili { border-color: var(--bs-body-bg); box-shadow: 0 0 0 2px var(--bv-amber); }
.ikon-kategori .btn { --bs-btn-padding-y: .15rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .78rem; }
.ikon-onizleme-kucuk { font-size: 1.6rem; line-height: 1; }

/* ---------- Klasör ağacı (taşıma penceresi, arşiv gezgini) ---------- */
.klasor-agaci { font-size: .9rem; }
.klasor-agaci ul { list-style: none; margin: 0; padding-left: 1.1rem; }
.klasor-agaci > ul { padding-left: 0; }
.agac-dugum { display: flex; align-items: center; gap: .35rem; padding: .22rem .4rem; border-radius: .35rem;
              cursor: pointer; white-space: nowrap; user-select: none; }
.agac-dugum:hover { background: var(--bv-oge-hover); }
.agac-dugum.secili { background: rgba(245, 158, 11, .2); outline: 1px solid rgba(245, 158, 11, .5); }
.agac-dugum.pasif { opacity: .45; cursor: not-allowed; }
.agac-dugum .agac-ac { width: 1rem; text-align: center; color: var(--bv-kroma-yazi-sonuk); font-size: .7rem; }
.agac-dugum.birakma-hedefi { outline: 2px dashed var(--bv-vurgu); }

/* ---------- Arşiv gezgini ---------- */
.gezgin { display: flex; gap: .75rem; height: calc(100vh - 2rem); min-height: 420px; }
.gezgin-agac { width: 260px; flex: 0 0 auto; overflow: auto; border: 1px solid var(--bv-kenar);
               border-radius: .6rem; padding: .5rem; background: var(--bs-tertiary-bg); }
.gezgin-sag { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.gezgin-icerik { flex: 1 1 auto; overflow: auto; border: 1px solid var(--bv-kenar); border-radius: .6rem;
                 position: relative; }
.gezgin-icerik .masaustu-alani { min-height: 100%; background: transparent; }
.gezgin-icerik .masaustu-oge { color: var(--bs-body-color); }
.gezgin-icerik table { margin: 0; }
.gezgin-icerik tr[data-anahtar] { cursor: pointer; }
.gezgin-icerik tr.secili td { background: rgba(245, 158, 11, .14); }
@media (max-width: 767.98px) { .gezgin-agac { display: none; } }

/* ---------- Belge listeleri ---------- */
.sure-etiket { font-size: .75rem; white-space: nowrap; }
.belge-ikon { font-size: 1.25rem; line-height: 1; }
.yukle-listesi .list-group-item { background: transparent; }
.surukle-alan {
    border: 2px dashed var(--bv-kenar); border-radius: .8rem; padding: 2rem 1rem; text-align: center;
    color: var(--bv-kroma-yazi-sonuk); cursor: pointer; transition: border-color .15s, background .15s;
}
.surukle-alan:hover, .surukle-alan.uzerinde { border-color: var(--bv-vurgu); background: rgba(245, 158, 11, .06); }

/* ---------- Belge detayı ---------- */
.belge-kabuk { display: flex; gap: .75rem; height: calc(100vh - 6.5rem); min-height: 480px; }
body:not(.kromsuz) .belge-kabuk { height: calc(100vh - 9rem); }
.belge-onizleme { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.belge-onizleme > .dosya-kabuk { flex: 1 1 auto; }
.belge-yan { width: 340px; flex: 0 0 auto; overflow-y: auto; }
.belge-yan .card { margin-bottom: .75rem; }
.belge-yan dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .75rem; margin: 0; font-size: .85rem; }
.belge-yan dt { color: var(--bv-kroma-yazi-sonuk); font-weight: 500; }
.belge-yan dd { margin: 0; word-break: break-word; }
.belge-yan.kapali { display: none; }
@media (max-width: 991.98px) {
    .belge-kabuk { flex-direction: column; height: auto; }
    .belge-yan { width: auto; }
    .belge-onizleme { min-height: 70vh; }
}

/* ---------- Takvim ---------- */
.takvim { table-layout: fixed; }
.takvim td { height: 96px; vertical-align: top; font-size: .78rem; padding: .3rem; }
.takvim td.bugun { outline: 2px solid var(--bv-amber); outline-offset: -2px; }
.takvim td.bos { background: var(--bs-tertiary-bg); }
.takvim .gun-no { font-weight: 600; color: var(--bv-kroma-yazi-sonuk); }
.takvim .takvim-belge { display: block; border-radius: .3rem; padding: .05rem .3rem; margin-top: 2px;
                        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }

/* ---------- İstatistik kartları / anonim sayfa ---------- */
.paylasim-kart { width: min(460px, 94vw); }
.stat-kart { border: 1px solid var(--bv-kenar); border-radius: .8rem; padding: 1rem; background: var(--bs-tertiary-bg); height: 100%; }
.stat-kart .stat-deger { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.stat-kart .stat-etiket { color: var(--bv-kroma-yazi-sonuk); font-size: .82rem; }
.cubuk { height: 8px; border-radius: 4px; background: var(--bv-kroma-vurgu); overflow: hidden; }
.cubuk > span { display: block; height: 100%; background: var(--bv-amber); }

@media print {
    .belge-yan, .gezgin-agac, .zil-menu { display: none !important; }
}

/* ---- Web sitesi öğeleri ---- */
.masaustu-oge .oge-favicon, .gezgin-icerik .oge-favicon {
    width: 2.2rem; height: 2.2rem; object-fit: contain; border-radius: .55rem;
    background: rgba(255, 255, 255, .92); padding: .25rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.masaustu-alani.ikon-kucuk .oge-favicon { width: 1.6rem; height: 1.6rem; }
.masaustu-alani.ikon-buyuk .oge-favicon { width: 3rem; height: 3rem; }
.masaustu-oge .web-rozet {
    position: absolute; right: -.35rem; bottom: -.25rem; font-size: .7rem; line-height: 1;
    padding: .15rem; border-radius: 50%; background: #0ea5e9; color: #fff;
}
.belge-favicon { width: 1.25rem; height: 1.25rem; object-fit: contain; border-radius: .25rem; background: rgba(255, 255, 255, .9); }

/* Web sitesi penceresi */
.web-penceresi .pencere-icerik { height: 100vh; display: flex; flex-direction: column; padding: .75rem !important; }
.web-kap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.web-favicon { width: 1.75rem; height: 1.75rem; object-fit: contain; border-radius: .4rem; background: rgba(255, 255, 255, .92); padding: .15rem; }
.web-govde { display: flex; flex: 1; min-height: 0; gap: .75rem; }
.web-site { flex: 1; min-width: 0; border: 1px solid var(--bv-kenar); border-radius: .5rem; overflow: hidden; background: #fff; }
.web-site iframe { width: 100%; height: 100%; border: 0; display: block; }
.web-engel { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2rem; background: var(--bs-body-bg); }
.web-yan { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: .75rem; overflow-y: auto; }
.web-yan.kapali { display: none; }
.web-yan-bolum { border: 1px solid var(--bv-kenar); border-radius: .5rem; padding: .75rem; background: var(--bs-tertiary-bg); }
.web-yan-baslik { font-weight: 600; font-size: .85rem; margin-bottom: .5rem; display: flex; gap: .4rem; align-items: center; }
.web-notlar { min-height: 160px; resize: vertical; font-size: .875rem; }
.web-goruntuler { display: flex; flex-direction: column; gap: .25rem; max-height: 220px; overflow-y: auto; }
.web-goruntu { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .35rem .5rem; border: 1px solid var(--bv-kenar);
    border-radius: .4rem; background: transparent; color: inherit; font-size: .85rem; text-align: left; }
.web-goruntu:hover { background: var(--bv-oge-hover); }
@media (max-width: 767.98px) {
    .web-govde { flex-direction: column; }
    .web-yan { width: auto; max-height: 45vh; }
}

/* Hazır siteler modalı */
.hazir-grup { border: 1px solid var(--bv-kenar); border-radius: .5rem; padding: .6rem .75rem; margin-bottom: .5rem; }
.hazir-grup-siteler { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.hazir-site { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; padding: .15rem .5rem;
    border-radius: 999px; background: var(--bs-secondary-bg); }
.hazir-site img { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; background: #fff; }
.web-modal-favicon { width: 40px; height: 40px; object-fit: contain; border-radius: .5rem; background: #fff; padding: .2rem; }

/* ---- Kilit rozetleri ---- */
.masaustu-oge .kilit-rozet {
    position: absolute; left: -.35rem; bottom: -.25rem; font-size: .72rem; line-height: 1;
    padding: .16rem; border-radius: 50%; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.kilit-rozet.kapali { background: #dc2626; }
.kilit-rozet.acik { background: #16a34a; }
.belge-kilit { font-size: .8rem; margin-left: .35rem; }
.belge-kilit.kapali { color: #dc2626; }
.belge-kilit.acik { color: #16a34a; }
.kilit-kart { max-width: 440px; }
