/* 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 */
}

/* Genel Stil Resetleri ve Temel Ayarlar */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5; /* Hafif gri arka plan */
    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; /* Yatay kaydırmayı önle */
    box-sizing: border-box; /* Body için de box-sizing ekliyoruz */
}

a {
    text-decoration: none;
    color: #007bff; /* Mavi link rengi */
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* 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 `<ins>` etiketlerindeki `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 */
}

.ad-container.left {
    left: 0;
}

.ad-container.right {
    right: 0;
}

/* Navbar Stilleri */
.main-header {
    background-color: #2c3e50; /* Koyu lacivert */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 0; /* Header'ın üst boşluğunu sıfırlıyoruz */
}

.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; /* Açık gri */
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0; /* Küçülmesini engelle */
}

.brand-logo {
    height: 40px; /* Logo yüksekliği */
    margin-right: 10px;
}

.brand-name {
    margin-top: 5px; /* Logo ile yazı arasını ayarla */
}

.nav-links {
    display: flex;
    gap: 25px; /* Linkler arası boşluk */
    flex-wrap: wrap; /* Küçük ekranlarda sarmayı sağla */
    justify-content: center; /* Ortalamayı sağla */
    margin-top: 0; /* Mobil görünümlerdeki gereksiz margin'i kaldır */
}

.nav-item-custom {
    color: #bdc3c7; /* Açık gri link rengi */
    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; /* Yeşil vurgu rengi */
    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 {
    flex-grow: 1;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%; /* İçeriğin genişliği */
    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 */
}

.main-content-container {
    max-width: 800px;
    width: 90%; /* Daha iyi mobil uyum */
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box; /* Padding'in genişliği etkilememesi için */
}

.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; /* Mavi başlık */
    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; /* Kopyalanabilir olduğunu göster */
    transition: all 0.2s ease;
    overflow: hidden; /* Taşmayı önle */
    text-overflow: ellipsis; /* Metin taşarsa üç nokta göster */
    white-space: nowrap; /* Metni tek satırda tut */
}

.info-item strong {
    color: #2c3e50;
    margin-right: 10px;
    flex-shrink: 0; /* Küçülmesini engelle */
}

.selectable-text {
    flex-grow: 1; /* Kalan alanı doldur */
    text-align: right;
    font-weight: 500;
    color: #666;
    overflow: hidden; /* İç metnin taşmasını engelle */
    text-overflow: ellipsis; /* Metin taşarsa üç nokta göster */
    white-space: nowrap; /* Metni tek satırda tut */
}

/* Kopyalandığında animasyon */
.info-item.copied-animation {
    background-color: #e6ffe6; /* Açık yeşil */
    border-color: #2ecc71; /* Koyu yeşil */
    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; /* Daha yüksek z-index */
    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; /* Butonları yan yana sırala */
    flex-wrap: wrap; /* Küçük ekranlarda sarmayı sağla */
    gap: 15px; /* Butonlar arası boşluk */
    justify-content: center; /* Butonları ortala */
}

/* Butonlar */
.btn {
    padding: 10px 25px;
    border-radius: 50px; /* Yuvarlak köşeler */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center; /* Metni ortala */
    flex-grow: 1; /* Esnek buton genişliği */
    max-width: 250px; /* Maksimum genişlik */
}

.generate-btn {
    background-color: #2ecc71; /* Parlak yeşil */
    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; /* Turuncu */
    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; /* Kırmızı */
    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;
}

/* Yeni Barkod Bölümü Stilleri */
.barcode-display-area {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.barcode-display-area svg {
    max-width: 100%; /* SVG'nin kapsayıcıya sığmasını sağlar */
    height: auto;
    display: block; /* Fazla boşlukları engeller */
}

.barcode-text-display {
    font-family: monospace; /* Barkod metni için monospace font */
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
    word-break: break-all; /* Uzun metinleri kırar */
    text-align: center;
}

/* Form elemanları için genel düzen */
.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.form-control-color {
    height: 45px; /* Renk seçici için daha iyi yükseklik */
    padding: 5px;
}

.form-range {
    width: 100%;
    -webkit-appearance: none; /* Varsayılan stilini kaldır */
    appearance: none;
    background: transparent; /* Arka planı şeffaf yap */
    cursor: pointer;
}

.form-range::-webkit-slider-runnable-track {
    background: #ddd;
    border-radius: 5px;
    height: 8px;
}

.form-range::-moz-range-track {
    background: #ddd;
    border-radius: 5px;
    height: 8px;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px; /* Track ile hizala */
    background-color: #3498db;
    border: 1px solid #2980b9;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-range::-moz-range-thumb {
    background-color: #3498db;
    border: 1px solid #2980b9;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover,
.form-range::-moz-range-thumb:hover {
    background-color: #2980b9;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.form-check-input {
    margin-right: 5px;
}

/* 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;
    }

    .barcode-display-area {
        padding: 15px;
    }
}

@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;
    }
}
