/* Sayfanın En Üstündeki Boşluğu Gidermek İçin Temel HTML/BODY Sıfırlamaları */
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Tüm elemanların kutu modelini öngörülebilir yapar */
}

/* Mevcut body stillerinizi düzenliyoruz */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0; /* Boşluk olmaması için emin oluyoruz */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    box-sizing: border-box; /* Body için de box-sizing ekliyoruz */
}

/* Reklam Kapsayıcılarının Konumlandırması (Eğer sabit olmaları gerekiyorsa) */
/* NOT: Bu stil, HTML'deki <ins> etiketlerindeki `style="display:block"` özelliğini geçersiz kılacaktır. */
/* Eğer reklamlar fixed olmalıysa, HTML'den `style="display:block"` özelliğini KALDIRIN. */
.ad-container {
    position: fixed; /* Sabit konumlandırma */
    top: 0; /* Sayfanın en üstüne hizala */
    height: 100vh; /* Ekran yüksekliği kadar boyutu kapla */
    z-index: 1000; /* Diğer içeriğin üzerinde görünmesini sağla */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Kenar boşluğu ekle */
    /* Bu stil, <ins> etiketlerindeki `display:block`'u geçersiz kılacak,
       ancak reklamların doğru çalışması için AdSense kodunun kendi mantığına ihtiyacı var.
       Reklamları gerçekten kenarlara sabitlemek istiyorsanız bu ayarlar gerekli. */
}

.ad-container.left {
    left: 0;
}

.ad-container.right {
    right: 0;
}

/* Ana İçerik Alanı: Eğer yan reklamlar `position: fixed` ise, içeriğin onların arkasında kalmasını engellemek için */
/* Mehmet, lütfen bu padding değerlerini kendi reklamlarınızın genişliğine göre AYARLAYIN. */
/* Örneğin, eğer reklamlarınız 160px genişliğindeyse, buraya 170px-180px gibi bir değer yazabilirsiniz. */
.content-wrapper {
    flex-grow: 1;
    padding: 40px 0; /* Mevcut padding değerleriniz */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box; /* Padding'in genişliği etkilememesi için */

    /* Eğer reklamlar sabit (fixed) ve içerik üzerine biniyorsa bu satırları etkinleştirin ve ayarlayın: */
    /* padding-left: 180px; */ /* Sol reklam genişliği + biraz boşluk */
    /* padding-right: 180px; */ /* Sağ reklam genişliği + biraz boşluk */
}


/* Header alanının üst boşluğunu sıfırlamak için (eğer varsa, emin olmak için) */
.main-header {
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 0; /* Emin olmak için sıfırlıyoruz */
}

/* Diğer mevcut CSS kodlarınız buraya devam edecek... */

/* Navbar Stilleri */
.custom-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex-wrap: wrap; /* Küçük ekranlarda sarmayı sağla */
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.brand-logo {
    height: 40px;
    margin-right: 10px;
}

.brand-name {
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
}

.nav-item-custom {
    color: #bdc3c7;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav-item-custom:hover,
.nav-item-custom.active {
    color: #ffffff;
}

.nav-item-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2ecc71;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item-custom:hover::after,
.nav-item-custom.active::after {
    transform: scaleX(1);
}

/* İçerik Alanı */
/* .content-wrapper mevcut, yukarıda düzenlendi */

.main-content-container {
    max-width: 800px;
    width: 90%;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.header-section {
    margin-bottom: 40px;
}

.main-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* Hesap Kartı */
.account-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card-header-custom {
    background-color: #3498db;
    color: white;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body-custom {
    padding: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    cursor: copy;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-item strong {
    color: #2c3e50;
    margin-right: 10px;
    flex-shrink: 0;
}

.selectable-text {
    flex-grow: 1;
    text-align: right;
    font-weight: 500;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kopyalandığında animasyon */
.info-item.copied-animation {
    background-color: #e6ffe6;
    border-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.2);
}

/* Snackbar */
.snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 12px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

.snackbar.show {
    visibility: visible;
    opacity: 1;
}

.card-footer-custom {
    padding: 20px 0 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Butonlar */
.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    flex-grow: 1;
    max-width: 250px;
}

.generate-btn {
    background-color: #2ecc71;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.generate-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.download-excel-btn {
    background-color: #f39c12;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.download-excel-btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.reset-btn {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.reset-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* İstatistikler Bölümü */
.stats-section {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

.stats-section p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
}

.stat-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
}

/* Not Bölümü */
.note-section {
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    border-radius: 8px;
    padding: 20px;
    color: #8a6d3b;
    font-size: 0.95rem;
    margin-top: 40px;
    box-sizing: border-box;
}

.note-text strong {
    color: #66522b;
}

/* Geri Bildirim Formu */
.feedback-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.feedback-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.feedback-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 12px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.feedback-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.submit-feedback-btn {
    background-color: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.submit-feedback-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Footer Stilleri */
.main-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    margin-bottom: 15px;
}

.language-switcher {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.lang-link {
    color: #bdc3c7;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Toast Bildirimleri (Geri bildirim için) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.toast.bg-success {
    background-color: #28a745 !important;
}

.toast.bg-danger {
    background-color: #dc3545 !important;
}

.toast .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.toast .btn-close-white:hover {
    opacity: 1;
}

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .custom-navbar {
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-brand-custom {
        margin-bottom: 15px;
    }

    .nav-links {
        gap: 15px;
        margin-top: 0;
    }

    .nav-item-custom {
        margin: 5px 10px;
    }

    .main-content-container {
        padding: 30px;
        width: 95%;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .main-description {
        font-size: 1rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        text-overflow: clip;
    }

    .selectable-text {
        text-align: left;
        margin-top: 5px;
        white-space: normal;
        word-break: break-word;
    }

    .stats-section {
        flex-direction: column;
        gap: 10px;
    }

    .card-footer-custom {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .feedback-section {
        padding: 20px;
    }

    .feedback-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand-custom {
        font-size: 1.4rem;
    }

    .main-content-container {
        padding: 20px;
        width: 100%;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .card-body-custom {
        padding: 15px;
    }

    .stats-section p {
        font-size: 1rem;
    }

    .lang-link {
        margin: 5px;
    }

    .toast {
        left: 10px;
        right: 10px;
        width: auto;
        font-size: 0.85rem;
    }
}