/* =========================================
   GENEL KAPLAYICI VE RESET
   ========================================= */
.bw-vergi-form-wrapper {
    max-width: 600px;
    margin: 30px auto;
    /* 40'tan 30'a düşürüldü */
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* =========================================
   ÜST MENÜ (SEÇİM ALANI)
   ========================================= */
.bw-header-select {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 20px 25px;
    /* 30'dan düşürüldü */
    text-align: center;
}

.bw-header-select label {
    display: block;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.bw-main-select {
    width: 100%;
    height: 46px;
    /* 50'den düşürüldü */
    padding: 0 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.bw-main-select:hover,
.bw-main-select:focus {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* =========================================
   FORM ALANI VE INPUT GRUPLARI (YENİ)
   ========================================= */
.bw-vergi-form {
    padding: 20px 25px;
    /* 30'dan düşürüldü */
    background-color: #ffffff;
}

.bw-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* 20'den düşürüldü */
    margin-bottom: 15px;
}

.bw-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.bw-col label,
#lbl-prim {
    font-size: 13px;
    /* 14'ten düşürüldü */
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

/* YENİ: Input için TL/USD Suffix Wrapper'ı */
.bw-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.bw-input {
    width: 100%;
    height: 48px;
    /* 52'den düşürüldü */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    color: #334155;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.bw-input.has-suffix {
    padding-right: 45px;
    /* Sağdan suffix için boşluk bırak */
}

.bw-input-suffix {
    position: absolute;
    right: 15px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
    /* Tıklanmayı inputa geçirir */
}

.bw-input:focus {
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.bw-hidden {
    display: none;
}

.bw-btn {
    width: 100%;
    height: 50px;
    /* 56'dan düşürüldü */
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-top: 5px;
}

.bw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.bw-btn:active {
    transform: translateY(0);
}

/* =========================================
   SONUÇ KUTUSU
   ========================================= */
.bw-sonuc-box {
    margin-top: 20px;
    /* 30'dan düşürüldü */
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    /* 25'ten düşürüldü */
    text-align: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bw-sonuc-box h3 {
    color: #0c4a6e;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    /* 20'den düşürüldü */
}

.bw-yillik {
    font-size: 16px;
    color: #0c4a6e;
    margin-bottom: 5px;
}

.bw-kucuk {
    color: #64748b;
    font-size: 12px;
    margin-top: 0;
}

/* =========================================
   KARTLAR (GRID)
   ========================================= */
.bw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Daha dar kartlar */
    gap: 12px;
    /* 15'ten düşürüldü */
    margin-top: 15px;
}

.bw-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    /* 20'den düşürüldü */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.bw-card h4 {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bw-card p {
    font-size: 16px;
    /* 18'den düşürüldü */
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

/* Renkli Kartlar */
.bw-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
}

.bw-blue h4 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bw-blue p {
    color: #fff !important;
}

.bw-blue small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bw-card-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
}

.bw-card-green h4 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bw-card-green p {
    color: #fff !important;
}

.bw-card-green small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bw-highlight {
    background: #fffbeb;
    border: 2px solid #fcd34d;
    box-shadow: 0 4px 15px rgba(252, 211, 77, 0.2);
}

.bw-highlight h4 {
    color: #92400e;
}

.bw-highlight p {
    color: #b45309;
    font-size: 20px;
}

/* Detaylar Alanı (Butonsuz, Direkt Görünür) */
.bw-detaylar {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #e2e8f0;
}

.bw-baslik {
    text-align: left;
    color: #334155;
    margin: 15px 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================
   PROJEKSİYON TABLOSU
   ========================================= */
.bw-projeksiyon-container {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.bw-proj-title {
    color: #166534;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.bw-proj-desc {
    font-size: 13px;
    color: #15803d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.bw-tablo-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bw-ozel-tablo {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
}

.bw-ozel-tablo th {
    background: #10b981;
    color: #fff;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
    text-transform: uppercase;
}

.bw-ozel-tablo td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0fdf4;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
}

.bw-ozel-tablo tr:last-child td {
    border-bottom: none;
}

.bw-ozel-tablo th.bw-highlight-th {
    background: #047857;
}

.bw-ozel-tablo td.bw-highlight-td {
    color: #047857;
    font-weight: 800;
    background: #ecfdf5;
    font-size: 14px;
}

.bw-dipnot {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 500px) {
    .bw-row {
        flex-direction: column;
        gap: 10px;
    }

    .bw-header-select {
        padding: 15px;
    }

    .bw-vergi-form {
        padding: 15px;
    }

    .bw-card p {
        font-size: 15px;
    }

    .bw-ozel-tablo th,
    .bw-ozel-tablo td {
        font-size: 11px;
        padding: 8px 5px;
    }
}
/* =========================================
   MASAÜSTÜ İÇİN YAN YANA GÖRÜNÜM (YENİ)
   ========================================= */
@media (min-width: 900px) {
    .bw-vergi-form-wrapper {
        max-width: 1050px;
        /* Masaüstü için genişletildi */
        display: grid;
        grid-template-columns: 420px 1fr;
        /* Sol Form: 420px, Sağ Sonuç: Kalan Tüm Alan */
        grid-template-areas:
            "header header"
            "form sonuc";
        align-items: stretch;
        /* Her iki sütunun yüksekliğini eşitler */
    }

    .bw-header-select {
        grid-area: header;
    }

    .bw-vergi-form {
        grid-area: form;
        border-right: 1px solid #f1f5f9;
        /* İki taraf arasına ince bir çizgi */
    }

    #bw-sonuc {
        grid-area: sonuc;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* İçeriği dikeyde ortalar */
        background-color: #fafaf9;
        /* Sağ tarafa arka plan rengi */
        border-radius: 0 0 16px 0;
    }

    .bw-sonuc-box {
        margin-top: 0;
        /* Masaüstünde üst boşluğa gerek yok */
    }

    /* Başlangıçta form boşken sağ tarafta şık bir karşılama metni gösterelim */
    #bw-sonuc:empty {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #bw-sonuc:empty::before {
        content: '📋 Hesaplama sonuçları, kazanç tablosu ve projeksiyonlar burada görüntülenecektir.';
        text-align: center;
        color: #94a3b8;
        font-size: 15px;
        font-weight: 500;
        padding: 40px;
        background: #ffffff;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        max-width: 80%;
        line-height: 1.5;
    }
}