/* =============================================================
   NKU Kurumsal Takim - Misafir 03 Ic sayfalar
   Ust menuden ulasilan genel sayfalar: ust serit, sayfa basligi, alt serit ve
   .nku-sayfa icindeki Bootstrap bilesenlerinin (panel, tablo, liste, form, dugme, uyari)
   kurumsal gorunumu. misafir-01 ve misafir-02 dosyalarindan SONRA yuklenir.
   ============================================================= */


/* =============================================================
   Katman 1 - Temel
   ============================================================= */

/* ---------- Yerlesim ---------- */

body.application .nku-sayfa.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}
.nku-sayfa {
    padding-top: 24px;
    padding-bottom: 30px;
}
@media (max-width: 767px) {
    .nku-sayfa {
        padding-top: 18px;
    }
}

/* ---------- Ust serit, sayfa basligi, alt serit ---------- */

.nku-sayfa-bas {
    position: relative;
    overflow: hidden;
    background: #EDF0FA;
    border-bottom: 1px solid #E1E6F6;
    padding: 26px 0 24px;
}
.nku-sayfa-bas:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(44, 51, 141, .14) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .35;
}
.nku-sayfa-bas:after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: -260px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 51, 141, .12) 0%, rgba(44, 51, 141, 0) 70%);
}
.nku-sayfa-bas-ic {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}
.nku-sayfa-ikon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    margin-right: 16px;
    border-radius: 15px;
    background: linear-gradient(135deg, #24358D 0%, #2A34C9 100%);
    color: #fff;
    text-align: center;
    line-height: 54px;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(6, 14, 159, .26);
}
.nku-sayfa-bas-metin {
    flex: 1 1 auto;
    min-width: 0;
}
.nku-sayfa-bas h1 {
    margin: 0 0 4px;
    font-size: 25px;
    font-weight: 700;
    color: #1C2260;
    line-height: 1.2;
}
.nku-sayfa-bas p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #4B5375;
}
.nku-sayfa-bas-eylem {
    flex: 0 0 auto;
    margin-left: 16px;
    text-align: right;
}
@media (max-width: 767px) {
    .nku-sayfa-bas {
        padding: 20px 0 18px;
    }
    .nku-sayfa-bas-ic {
        display: block;
        text-align: center;
    }
    .nku-sayfa-ikon {
        margin: 0 auto 12px;
    }
    .nku-sayfa-bas h1 {
        font-size: 21px;
    }
    .nku-sayfa-bas-eylem {
        margin: 14px 0 0;
        text-align: center;
    }
}

/* ---------- Baglanti dugmesi (chip) ---------- */

.nku-sayfa-bas-eylem .nku-chip {
    margin-bottom: 0;
}

/* ---------- Paneller (bootstrap .panel) ---------- */

.nku-sayfa .panel {
    background: #fff;
    border: 1px solid #EBEEF7;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 64, .04), 0 6px 20px rgba(16, 24, 64, .05);
    margin-bottom: 22px;
    overflow: hidden;
}
/* Panel başlığı paneldeki kartla aynı: bağlam renginde şeffaf zemin, solda renkli çizgi.
   Renk panel-X sınıfından (01-degiskenler); panel-default ve sınıfsız panel kurumsal lacivert (primary). */
:where(.nku-sayfa .panel), .nku-sayfa .panel-default { --b-renk: var(--nkp-primary); --b-yazi: var(--nkp-primary-yazi); --b-koyu: var(--nkp-primary-koyu); --b-zemin: var(--nkp-primary-zemin); --b-dolgu: var(--nkp-primary-dolgu); --b-cizgi: var(--nkp-primary-cizgi); --b-kenar: var(--nkp-primary-kenar); }
.nku-sayfa .panel {
    border-color: #EBEEF7;
}
.nku-sayfa .panel > .panel-heading {
    border-bottom: 1px solid color-mix(in srgb, var(--b-renk) 35%, #fff);
    border-radius: 15px 15px 0 0;
    background: color-mix(in srgb, var(--b-renk) 13%, #fff);
    box-shadow: inset 5px 0 0 var(--b-renk);
    color: color-mix(in srgb, var(--b-renk) 65%, #0B1236);
    font-size: 15px;
    font-weight: 700;
    padding: 15px 18px;
}
.nku-sayfa .panel > .panel-heading .fa { color: var(--b-renk); }
.nku-sayfa .panel > .panel-heading select {
    height: 32px;
    max-width: 210px;
    margin-left: 10px;
    padding: 4px 8px;
    border: 1px solid #DFE3F0;
    border-radius: 8px;
    background: #F5F7FC;
    color: #1B2233 !important;
    font-size: 12.5px;
    font-weight: 500;
}
.nku-sayfa .panel > .panel-body {
    padding: 18px;
}
@media (max-width: 767px) {
    .nku-sayfa .panel > .panel-heading select {
        float: none !important;
        display: block;
        width: 100%;
        max-width: none;
        margin: 8px 0 0;
    }
}

/* ---------- Tablolar ---------- */

.nku-sayfa .table {
    margin-bottom: 0;
    font-size: 13.5px;
    color: #333B52;
}
.nku-sayfa .table > thead > tr > th {
    background: #F5F7FC;
    border-bottom: 1px solid #E4E8F5;
    border-top: 0;
    color: #16215C;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 11px 12px;
    vertical-align: middle;
}
.nku-sayfa .table > tbody > tr > td {
    border-top: 1px solid #F1F3FA;
    padding: 10px 12px;
    vertical-align: middle;
}
.nku-sayfa .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #FAFBFE;
}
.nku-sayfa .table > tbody > tr:hover > td {
    background-color: #F4F7FE;
}
.nku-sayfa .table-responsive {
    border: 0;
}

/* ---------- Liste gruplari ---------- */

.nku-sayfa .list-group {
    margin-bottom: 0;
}
.nku-sayfa .list-group-item {
    border-color: #EDEFF7;
    padding: 12px 15px;
    font-size: 13.5px;
    color: #333B52;
    transition: background .16s ease;
}
.nku-sayfa .list-group-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.nku-sayfa .list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.nku-sayfa .list-group-item:hover {
    background: #F7F9FE;
}
.nku-sayfa .list-group-item input[type="radio"] {
    margin: 0 8px 0 0;
}
/* Satirin tamami tiklanabilir olsun diye secenekler label icine alinir. */
.nku-sayfa .list-group-item > label {
    display: block;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
/* Panel govdesine dogrudan yerlestirilen listelerde yan kenarliklar
   panelin kenarligiyla ust uste binmesin. */
.nku-sayfa .panel-body > .list-group .list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}
.nku-sayfa .panel-body > .list-group .list-group-item:first-child {
    border-top: 0;
}
.nku-sayfa .panel-body > .list-group .list-group-item:last-child {
    border-bottom: 0;
}

/* ---------- Form alanlari ---------- */

.nku-sayfa .form-control {
    height: 42px;
    border-color: #DFE3F0;
    border-radius: 10px;
    box-shadow: none;
    font-size: 14px;
    color: #1B2233;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.nku-sayfa .form-control:focus {
    border-color: #24358D;
    box-shadow: 0 0 0 3px rgba(6, 14, 159, .12);
}
.nku-sayfa .input-group-addon {
    background: #F5F7FC;
    border-color: #DFE3F0;
    color: #24358D;
}

/* ---------- Dugmeler ---------- */

.nku-sayfa .btn {
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}
.nku-sayfa .btn-primary,
.nku-sayfa .btn-success,
.nku-sayfa .btn-info {
    background: linear-gradient(135deg, #24358D 0%, #2A34C9 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(6, 14, 159, .24);
}
.nku-sayfa .btn-primary:hover,
.nku-sayfa .btn-success:hover,
.nku-sayfa .btn-info:hover,
.nku-sayfa .btn-primary:focus,
.nku-sayfa .btn-success:focus,
.nku-sayfa .btn-info:focus {
    background: linear-gradient(135deg, #24358D 0%, #2A34C9 100%);
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(6, 14, 159, .30);
}
.nku-sayfa .btn-default {
    background: #F1F3FA;
    color: #16215C;
}
.nku-sayfa .btn-default:hover,
.nku-sayfa .btn-default:focus {
    background: #E5E9F8;
    color: #24358D;
}

/* ---------- Uyari kutulari ---------- */

/* Paneldeki bildirim kutusuyla aynı: renk alert-X sınıfından (01-degiskenler). */
:where(.nku-sayfa .alert) { --b-renk: var(--nkp-danger); --b-yazi: var(--nkp-danger-yazi); --b-koyu: var(--nkp-danger-koyu); --b-zemin: var(--nkp-danger-zemin); --b-dolgu: var(--nkp-danger-dolgu); --b-cizgi: var(--nkp-danger-cizgi); --b-kenar: var(--nkp-danger-kenar); }
.nku-sayfa .alert {
    border: 1px solid var(--b-kenar);
    border-left: 5px solid var(--b-renk);
    border-radius: 12px;
    background: var(--b-dolgu);
    color: var(--b-koyu);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.6;
    padding: 14px 16px;
}
.nku-sayfa .alert > .fa { color: var(--b-renk); }
.nku-sayfa .alert i {
    margin-right: 6px;
}

/* ---------- Bilgi balonlari (popover) ---------- */

.popover {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(8, 14, 60, .22);
    font-family: inherit;
}
.popover-title {
    background: #F5F7FC;
    border-bottom: 1px solid #EDEFF7;
    border-radius: 12px 12px 0 0;
    color: #131A3D;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 15px;
}
.popover-content {
    color: #3A4258;
    font-size: 13px;
    line-height: 1.65;
    padding: 14px 15px;
}
.popover-content b {
    color: #1C2260;
}

/* ---------- Bolum basligi, kart ve liste ---------- */

/* .nku-section-title anasayfa temasindan gelir; ic sayfada bolumler
   arasindaki nefes payi burada verilir. */
.nku-sayfa .nku-section-title {
    margin-bottom: 16px;
}
.nku-sayfa .nku-section-title.nku-bolum {
    margin-top: 12px;
}

/* ---------- Kucuk yardimci parcalar ---------- */

.nku-ipucu {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 30px;
    background: #EEF1FD;
    color: #23306E;
    font-size: 12.5px;
    font-weight: 600;
}
.nku-ipucu i {
    margin-right: 8px;
    color: #24358D;
}
.nku-arama-kutusu {
    display: flex;
}
.nku-arama-kutusu .form-control {
    flex: 1 1 auto;
    margin-right: 10px;
}
.nku-arama-kutusu .btn {
    flex: 0 0 auto;
}
@media (max-width: 767px) {
    .nku-arama-kutusu {
        display: block;
    }
    .nku-arama-kutusu .form-control {
        margin-right: 0;
    }
    .nku-arama-kutusu .btn {
        width: 100%;
        margin-top: 10px;
    }
}


/* =============================================================
   Katman 2 - Giris sayfasinin gorsel dili (Katman 1 kurallarini ezer; sonra gelmelidir)
   ============================================================= */

/* ---------- Yerlesim ---------- */

/* Genel sayfaların üst ve alt kısmı: giriş sayfasının lacivert zemini ve bağlantı düğmeleri. */
.nku-page { padding-top: 0; }
.nku-tek-ekran-sayfa .nku-page { padding-top: 0; }
body.application:not(.nku-tek-ekran-sayfa) { display: flex; flex-direction: column; min-height: 100vh; }
body.application:not(.nku-tek-ekran-sayfa) .nku-page { flex: 1 0 auto; min-width: 0; }

/* ---------- Ust serit, sayfa basligi, alt serit ---------- */

.nku-gs-ust { background: linear-gradient(135deg, #24358D 0%, #16215C 55%, #0B1236 100%); }
.nku-gs-ust-ic { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.nku-gs-marka { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.nku-gs-marka:hover, .nku-gs-marka:focus { color: #fff; text-decoration: none; }
.nku-gs-marka img { width: 48px; height: 48px; }
.nku-gs-marka strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.nku-gs-menu { display: flex; flex-wrap: wrap; gap: 8px; }
.nku-gs-menu a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; }
.nku-gs-menu a:hover, .nku-gs-menu a:focus { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.nku-gs-menu a.etkin { border-color: #fff; background: #fff; color: #16215C; }
.nku-gs-menu .fa { color: #8FC9F2; font-size: 14px; }
.nku-gs-menu a.etkin .fa { color: #24358D; }
.nku-sayfa-bas { background: linear-gradient(135deg, #24358D 0%, #16215C 55%, #0B1236 100%); border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; padding: 18px 0 20px; }
.nku-sayfa-bas:before, .nku-sayfa-bas:after { display: none; }
.nku-sayfa-ikon { background: rgba(255, 255, 255, .12); box-shadow: none; color: #8FC9F2; }
.nku-sayfa-bas h1 { color: #fff; }
.nku-sayfa-bas p { color: rgba(255, 255, 255, .78); }
.nku-gs-alt { padding: 20px 0; background: linear-gradient(135deg, #24358D 0%, #16215C 55%, #0B1236 100%); color: rgba(255, 255, 255, .78); font-size: 13px; }
.nku-gs-alt a { color: #fff; }
.nku-gs-alt a:hover, .nku-gs-alt a:focus { color: #8FC9F2; text-decoration: none; }
.nku-gs-alt .fa { color: #8FC9F2; }
.nku-gs-alt-iletisim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.nku-gs-alt-telif { margin: 10px 0 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.nku-gs-ust-ic:before, .nku-gs-ust-ic:after { display: none; }
/* İç sayfalar giriş sayfasının diliyle: akan zemin, yuvarlak düğmeler, belirerek gelen bölümler.
   Üç parça aynı sabit zemini paylaşır, aralarında renk sınırı oluşmaz. */
.nku-gs-ust,
.nku-sayfa-bas,
.nku-gs-alt { background-attachment: fixed; background-size: 220% 220%; animation: nkuZeminAkisi 22s ease-in-out infinite alternate; }
.nku-gs-ust { position: relative; overflow: hidden; }
.nku-gs-ust::before { content: ""; position: absolute; top: -160px; left: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(92, 132, 255, .28) 0%, rgba(92, 132, 255, 0) 70%); pointer-events: none; animation: nkuIsikSuzulme 16s ease-in-out infinite alternate; }
.nku-gs-ust-ic { position: relative; z-index: 1; }
.nku-gs-menu { flex: 1 1 100%; justify-content: center; }
.nku-gs-menu a { padding: 7px 14px; border-color: transparent; border-radius: 999px; background: rgba(255, 255, 255, .09); transition: transform .18s ease, background .18s ease, color .18s ease; }
.nku-gs-menu a:hover,
.nku-gs-menu a:focus { border-color: transparent; background: #fff; color: #16215C; transform: translateY(-2px); }
.nku-gs-menu .fa { transition: color .18s ease, transform .18s ease; }
.nku-gs-menu a:hover .fa,
.nku-gs-menu a:focus .fa { color: #24358D; transform: scale(1.12); }
.nku-gs-menu a.etkin { border-color: transparent; }
.nku-sayfa-bas { border-top-color: rgba(255, 255, 255, .08); }
.nku-sayfa-bas-ic { animation: nkuYukariGel .5s ease both; }
.nku-sayfa-bas h1 { letter-spacing: -.3px; }
.nku-gs-alt-iletisim { justify-content: center; text-align: center; }
.nku-gs-alt-telif { text-align: center; }
@media (prefers-reduced-motion: reduce) {
    .nku-gs-ust,
.nku-sayfa-bas,
.nku-gs-alt,
.nku-gs-ust::before,
.nku-sayfa-bas-ic { animation: none; }
}

/* ---------- Baglanti dugmesi (chip) ---------- */

/* Anasayfadaki koyu zemin için yazılan bağlantı düğmesi, iç sayfaların açık zemininde de okunur. */
.nku-sayfa .nku-chip {
    color: #24358D !important;
    background: #fff;
    border: 1px solid #CBD2E6;
}
.nku-sayfa .nku-chip:hover,
.nku-sayfa .nku-chip:focus {
    color: #fff !important;
    background: #24358D;
    border-color: #24358D;
}
.nku-sayfa .nku-chip i {
    color: inherit;
}
.nku-chip { border-radius: 999px; transition: transform .18s ease, background .18s ease, color .18s ease; }
.nku-sayfa-bas .nku-chip { border-color: transparent; background: rgba(255, 255, 255, .09); }
.nku-sayfa-bas .nku-chip:hover,
.nku-sayfa-bas .nku-chip:focus { border-color: transparent; background: #fff; color: #16215C !important; transform: translateY(-2px); box-shadow: none; }
.nku-sayfa-bas .nku-chip:hover .fa,
.nku-sayfa-bas .nku-chip:focus .fa { color: #24358D; }
.nku-sayfa .nku-chip:hover,
.nku-sayfa .nku-chip:focus { transform: translateY(-2px); }

/* ---------- Paneller (bootstrap .panel) ---------- */

.nku-sayfa .panel { border-radius: 16px; animation: nkuYukariGel .45s ease both; }
@media (prefers-reduced-motion: reduce) {
    .nku-sayfa .panel { animation: none; }
}

/* ---------- Tablolar ---------- */

.nku-sayfa .table > tbody > tr { transition: background .16s ease; }
.nku-sayfa .table > tbody > tr:hover > td { background: #F7F8FD; }

/* ---------- Bolum basligi, kart ve liste ---------- */

.nku-sayfa .nku-card { border-radius: 16px; animation: nkuYukariGel .45s ease both; }
.nku-sayfa .nku-item { transition: background .16s ease, padding-left .16s ease; }
.nku-sayfa .nku-item:hover,
.nku-sayfa .nku-item:focus { padding-left: 20px; background: #F7F8FD; }
@media (prefers-reduced-motion: reduce) {
    .nku-sayfa .nku-card { animation: none; }
}
