/* Altınay Nakit Karşılaştırma — sade arayüz */

:root {
    --renk-zemin: #f3efe6;
    --renk-zemin-2: #e8e0d0;
    --renk-kart: #fffdf8;
    --renk-metin: #1f2a24;
    --renk-soluk: #5c6b62;
    --renk-altin: #b8860b;
    --renk-altin-koyu: #8a6508;
    --renk-yesil: #1f7a4c;
    --renk-kirmizi: #b42318;
    --renk-cizgi: #d9d0bf;
    --golge: 0 10px 30px rgba(31, 42, 36, 0.08);
    --radius: 12px;
    --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --yazi: 0.84rem;
    --yazi-kucuk: 0.75rem;
    --ust-yukseklik: 56px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: var(--yazi);
    color: var(--renk-metin);
    background:
        radial-gradient(circle at top left, rgba(184, 134, 11, 0.12), transparent 40%),
        linear-gradient(160deg, var(--renk-zemin), var(--renk-zemin-2));
}

a {
    color: var(--renk-altin-koyu);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Giriş */
.sayfa-giris {
    display: grid;
    place-items: center;
    padding: 24px;
}

.giris-kutusu {
    width: 100%;
    max-width: 420px;
    background: var(--renk-kart);
    border: 1px solid var(--renk-cizgi);
    border-radius: var(--radius);
    box-shadow: var(--golge);
    padding: 36px 28px;
    text-align: center;
}

.logo-buyuk {
    height: 64px;
    width: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.giris-kutusu h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.alt-yazi {
    margin: 0 0 24px;
    color: var(--renk-soluk);
    font-size: 0.95rem;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Üst bar */
.ust-bar {
    padding: 0;
    min-height: var(--ust-yukseklik);
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid var(--renk-cizgi);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.ust-ic {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: var(--ust-yukseklik);
    padding-top: 8px;
    padding-bottom: 8px;
}

.ust-sol,
.ust-sag {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ust-sag {
    justify-content: flex-end;
}

.ust-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: var(--yazi-kucuk);
    font-weight: 600;
    color: var(--renk-soluk);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    background: #f7f1e4;
    color: var(--renk-metin);
}

.nav-link.aktif {
    background: #f3e6c0;
    border-color: #e0c988;
    color: var(--renk-altin-koyu);
}

.logo-kucuk {
    height: 34px;
    width: auto;
}

.uygulama-adi {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--renk-metin);
}

.kullanici {
    color: var(--renk-soluk);
    font-size: var(--yazi-kucuk);
}

/* İçerik */
.icerik {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 16px 48px;
}

.icerik.container {
    padding-top: 18px;
    padding-bottom: 48px;
}

.secim-alani h2,
.yukleme-alani h2,
.sonuc-alani h2 {
    margin: 0 0 8px;
}

.secim-alani > p,
.yukleme-alani > p {
    color: var(--renk-soluk);
    margin: 0 0 24px;
}

.yukleme-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-height: 28px;
}

.yukleme-baslik h2 {
    margin: 0 0 2px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yukleme-baslik p {
    margin: 0;
    color: var(--renk-soluk);
    font-size: 0.72rem;
    max-width: 42rem;
    line-height: 1.3;
}

.sutun-chipleri {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f7f1e4;
    border: 1px solid var(--renk-cizgi);
    font-size: 0.7rem;
    color: var(--renk-soluk);
    white-space: nowrap;
    box-sizing: border-box;
}

.chip strong {
    color: var(--renk-metin);
}

.modul-kartlari {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.modul-kart {
    display: block;
    background: var(--renk-kart);
    border: 1px solid var(--renk-cizgi);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--golge);
    transition: transform 0.15s ease, border-color 0.15s ease;
    color: inherit;
}

.modul-kart:hover {
    transform: translateY(-2px);
    border-color: var(--renk-altin);
}

.modul-kart h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.modul-kart p {
    margin: 0 0 18px;
    color: var(--renk-soluk);
    line-height: 1.45;
}

.kart-ok {
    font-weight: 600;
    color: var(--renk-altin-koyu);
}

.geri-satir {
    margin-bottom: 16px;
}

.geri-link {
    font-weight: 600;
}

.yukleme-alani,
.sonuc-alani {
    background: var(--renk-kart);
    border: 1px solid var(--renk-cizgi);
    border-radius: var(--radius);
    box-shadow: var(--golge);
    padding: 14px 16px;
}

.bilgi-kutusu {
    background: #f7f1e4;
    border: 1px solid var(--renk-cizgi);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.bilgi-kutusu ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--renk-soluk);
}

/* Form */
.form {
    display: grid;
    gap: 10px;
    text-align: left;
}

.form-yatay {
    grid-template-columns: 1fr 1fr auto;
    gap: 8px 12px;
    align-items: stretch;
}

.dosya-alani,
.form-aksiyon {
    display: grid;
    grid-template-rows: 18px 32px 16px;
    gap: 4px;
    min-width: 0;
    align-content: start;
}

.form label {
    font-weight: 600;
    margin-top: 0;
}

.form-yatay .dosya-etiket,
.form-yatay label.etiket-gizli {
    margin-top: 0;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 18px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.etiket-gizli {
    visibility: hidden;
    user-select: none;
}

.form input[type="text"],
.form input[type="password"] {
    width: 100%;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--renk-cizgi);
    border-radius: 7px;
    font: inherit;
    font-size: 0.72rem;
    background: #fff;
    box-sizing: border-box;
}

.dosya-gizli {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.dosya-yukle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 4px 0 0;
    border: 1px solid var(--renk-cizgi);
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.btn-dosya {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    margin: 0 0 0 1px;
    padding: 0 10px;
    border-radius: 6px;
    background: #efe7d6;
    border: 1px solid var(--renk-cizgi);
    color: var(--renk-metin);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-dosya:hover {
    background: #e6dcc6;
}

.dosya-adi {
    font-size: 0.68rem;
    color: var(--renk-soluk);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

.dosya-adi.secildi {
    color: var(--renk-metin);
    font-weight: 600;
}

.form small {
    color: var(--renk-soluk);
    margin-top: -4px;
}

.form-yatay small {
    margin-top: 0;
    font-size: 0.68rem;
    line-height: 16px;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-yatay .btn-ana {
    margin-top: 0;
    white-space: nowrap;
    min-width: 120px;
    width: 100%;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 0.72rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    font-size: var(--yazi-kucuk);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

.btn .bi,
label .bi,
.chip .bi,
.ozet-item .bi,
.geri-link .bi,
.uygulama-adi .bi,
.kullanici .bi,
h2 .bi,
.pencere-baslik .bi,
.eslestirme-ozet .bi {
    font-size: 1.05em;
    line-height: 1;
    vertical-align: -0.05em;
}

.modul-kart-ikon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f7f1e4;
    border: 1px solid var(--renk-cizgi);
    color: var(--renk-altin-koyu);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-naif {
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 7px;
}

.btn-ana {
    margin-top: 12px;
    background: var(--renk-altin);
    color: #fff;
}

.form-yatay .btn-ana,
.btn-naif.btn-ana {
    margin-top: 0;
}

.btn-ana:hover {
    background: var(--renk-altin-koyu);
}

.btn-ikincil {
    background: #f3ebe0;
    border-color: var(--renk-cizgi);
    color: var(--renk-metin);
}

.btn-cikis {
    background: transparent;
    border-color: #e3b4ae;
    color: var(--renk-kirmizi);
    padding: 5px 10px;
    font-size: 0.72rem;
}

.btn-cikis:hover {
    background: #fde8e6;
}

.uyari,
.durum {
    margin: 8px 0 0;
    padding: 0 10px;
    min-height: 32px;
    height: 32px;
    border-radius: 7px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    box-sizing: border-box;
}

.uyari .bi,
.durum .bi {
    flex-shrink: 0;
}

.uyari-hata,
.durum-hata {
    background: #fde8e6;
    color: var(--renk-kirmizi);
}

.durum-basari {
    background: #e7f6ee;
    color: var(--renk-yesil);
}

.durum-bilgi {
    background: #f7f1e4;
    color: var(--renk-soluk);
}

/* Sonuç */
.sonuc-alani {
    margin-top: 14px;
}

.sonuc-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    min-height: 32px;
}

.sonuc-ust h2 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.sonuc-butonlar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.sonuc-butonlar .btn {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 10px;
    box-sizing: border-box;
}

.ozet {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 0;
    font-size: var(--yazi-kucuk);
    align-items: stretch;
}

.ozet-item {
    background: #f7f1e4;
    border-radius: 7px;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
}

.ozet-item span {
    color: var(--renk-soluk);
    font-size: 0.66rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ozet-item strong {
    font-size: 0.92rem;
    line-height: 1.15;
}

.ozet-item.basari {
    background: #e7f6ee;
}

.ozet-item.uyari {
    background: #fff4e5;
}

.sonuc-yapiskan {
    position: sticky;
    top: var(--ust-yukseklik);
    z-index: 15;
    background: linear-gradient(180deg, #fffdf8 70%, rgba(255, 253, 248, 0.92));
    border-bottom: 1px solid var(--renk-cizgi);
    margin: -4px -4px 12px;
    padding: 8px 4px 10px;
}

.eslestirme-cubugu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 0;
    padding: 6px 10px;
    min-height: 32px;
    background: #f7f1e4;
    border: 1px solid var(--renk-cizgi);
    border-radius: 7px;
    box-sizing: border-box;
}

.eslestirme-ozet {
    font-size: 0.7rem;
    color: var(--renk-metin);
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 6px;
}

.uyari-mini {
    color: #9a6700;
    font-weight: 600;
}

.coklu-kayit {
    padding: 2px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
}

.coklu-kayit:last-child {
    border-bottom: none;
}

.eslestir-select-listesi {
    display: grid;
    gap: 10px;
}

.eslestir-select-satir label {
    display: block;
    font-size: var(--yazi-kucuk);
    font-weight: 600;
    margin-bottom: 4px;
}

.eslestir-select-satir-ic {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-sil {
    min-width: 28px;
    padding: 6px 8px;
    color: var(--renk-kirmizi);
    background: #fde8e6;
    border-color: #e3b4ae;
}

.tablo-kapsayici {
    overflow: auto;
    border: 1px solid var(--renk-cizgi);
    border-radius: 10px;
}

.tablo {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
    background: #fff;
    font-size: 0.72rem;
}

.tablo th,
.tablo td {
    padding: 5px 7px;
    border-bottom: 1px solid var(--renk-cizgi);
    text-align: left;
    vertical-align: middle;
    font-size: 0.72rem;
    line-height: 1.25;
}

.tablo th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-weight: 600;
}

.tablo-grup th {
    top: 0;
    text-align: center;
    letter-spacing: 0.02em;
}

.kol-no,
.kol-meta {
    background: #f4f1ea;
}

.kol-banka,
.kol-banka-baslik {
    background: #e7f0f7;
    border-left: 1px solid #c5d7e6;
}

.kol-ml,
.kol-ml-baslik {
    background: #f8efe3;
    border-left: 1px solid #e2d2b8;
}

.kol-banka-baslik {
    color: #1f4e79;
    border-bottom: 2px solid #7ba3c4;
}

.kol-ml-baslik {
    color: #7a5a12;
    border-bottom: 2px solid #c4a35a;
}

.tablo tbody .kol-banka {
    background: #f3f8fc;
}

.tablo tbody .kol-ml {
    background: #fbf6ee;
}

.tablo tbody .kol-no,
.tablo tbody .kol-meta {
    background: #faf8f4;
}

.tablo .tutar {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kol-secim {
    text-align: center;
    width: 42px;
}

.kol-secim input {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--renk-altin-koyu);
}

tr.satir-eslesen .kol-banka {
    background: #eaf7f0;
}

tr.satir-eslesen .kol-ml {
    background: #eef8f1;
}

tr.satir-eslesmeyen .kol-banka {
    background: #f3f8fc;
}

tr.satir-eslesmeyen .kol-ml {
    background: #fbf6ee;
}

.satir-secili-banka .kol-banka {
    outline: 2px solid #4a7fb5;
    outline-offset: -2px;
    background: #d9eaf8 !important;
}

.satir-secili-ml .kol-ml {
    outline: 2px solid #b8860b;
    outline-offset: -2px;
    background: #f5e6c0 !important;
}

.rozet {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
}

.rozet-yesil {
    background: #d8f3e4;
    color: var(--renk-yesil);
}

.rozet-gri {
    background: #ece8e0;
    color: var(--renk-soluk);
}

.rozet-altin {
    background: #f3e6c0;
    color: var(--renk-altin-koyu);
}

.btn-kucuk {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.btn-eslestir {
    background: var(--renk-altin);
    color: #fff;
}

.btn-eslestir:hover {
    background: var(--renk-altin-koyu);
}

/* Manuel eşleştirme penceresi */
.pencere-arka {
    position: fixed;
    inset: 0;
    background: rgba(31, 42, 36, 0.45);
    display: grid;
    place-items: center;
    z-index: 100;
    padding: 16px;
}

.pencere {
    width: 100%;
    max-width: 560px;
    background: var(--renk-kart);
    border: 1px solid var(--renk-cizgi);
    border-radius: var(--radius);
    box-shadow: var(--golge);
    font-size: var(--yazi);
}

.pencere-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--renk-cizgi);
}

.pencere-baslik h3 {
    margin: 0;
    font-size: 0.95rem;
}

.pencere-kapat {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--renk-soluk);
}

.pencere-govde {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.secilen-bilgi {
    background: #f7f1e4;
    border-radius: 10px;
    padding: 12px;
}

.pencere-not {
    margin: 0;
    color: var(--renk-soluk);
    font-size: 0.9rem;
}

.eslestir-secim {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--renk-cizgi);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.pencere-alt {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--renk-cizgi);
}

@media (max-width: 900px) {
    .form-yatay {
        grid-template-columns: 1fr 1fr;
    }

    .form-aksiyon {
        grid-column: 1 / -1;
    }

    .ust-ic {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo user"
            "nav nav";
    }

    .ust-sol { grid-area: logo; }
    .ust-sag { grid-area: user; }
    .ust-nav {
        grid-area: nav;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 800px) {
    .modul-kartlari,
    .ozet {
        grid-template-columns: 1fr;
    }

    .kullanici {
        display: none;
    }

    .yukleme-ust {
        flex-direction: column;
        align-items: stretch;
    }

    .form-yatay {
        grid-template-columns: 1fr;
    }

    .form-aksiyon .btn-ana {
        width: 100%;
    }
}

@media print {
    .ust-bar,
    .yukleme-alani,
    .geri-satir,
    .sonuc-butonlar,
    .eslestirme-cubugu,
    .sonuc-yapiskan,
    .durum {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .sonuc-alani {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}
