/* Bayi Giriş ve Kayıt Formları */
.rbs-bayi-giris {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.rbs-giris-form,
.rbs-kayit-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.rbs-giris-form h2,
.rbs-kayit-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-size: 24px;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Form validasyonu ve focus efektleri */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #d63638;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.2);
}

.form-group input.focused,
.form-group textarea.focused,
.form-group select.focused {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

button[type="submit"],
.rbs-button {
    width: 100%;
    padding: 14px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

button[type="submit"]:hover,
.rbs-button:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

button[type="submit"]:active,
.rbs-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

/* Bayi Paneli */
.rbs-bayi-panel {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    box-sizing: border-box;
    overflow: hidden;
}

.rbs-bayi-panel h1, 
.rbs-bayi-panel h2, 
.rbs-bayi-panel h3,
.rbs-bayi-panel h4 {
    color: #2271b1;
    font-weight: 700;
    margin-top: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.rbs-bayi-panel h1 { font-size: 28px; }
.rbs-bayi-panel h2 { font-size: 24px; }
.rbs-bayi-panel h3 { font-size: 20px; }
.rbs-bayi-panel h4 { font-size: 18px; }

.rbs-bayi-bilgileri {
    background: #f8f9fa;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(34,113,177,0.06);
    margin-bottom: 32px;
    box-sizing: border-box;
}

.rbs-bayi-seviye {
    text-align: center;
    margin-bottom: 30px;
    padding: 18px;
    background: #e3eaf1;
    border-radius: 8px;
    font-size: 18px;
    color: #2271b1;
    font-weight: 600;
    line-height: 1.4;
}

.seviye-ikon {
    font-size: 48px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.seviye-adi {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    vertical-align: middle;
}

.satis-sayisi {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 16px;
}

.rbs-bayi-istatistikler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.istatistik-kutu {
    background: #fff;
    padding: 22px 0 18px 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(34,113,177,0.07);
    border: 1px solid #e3eaf1;
    box-sizing: border-box;
}

.istatistik-kutu h3 {
    color: #2271b1;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.istatistik-kutu p {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #135e96;
    line-height: 1.2;
}

.rbs-referans-link {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.rbs-referans-link h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.rbs-referans-link input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    line-height: 1.4;
}

.rbs-referans-link .aciklama {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Ödeme Talebi */
.rbs-odeme-talebi {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.rbs-odeme-talebi h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.rbs-odeme-talepleri,
.rbs-son-siparisler {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(34,113,177,0.06);
    box-sizing: border-box;
    overflow: hidden;
}

.rbs-odeme-talepleri h3,
.rbs-son-siparisler h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.4;
}

th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    word-wrap: break-word;
    max-width: 200px;
}

/* Durum Etiketleri */
.durum-beklemede {
    background: #ffe066;
    color: #222 !important;
    border-radius: 5px;
    padding: 4px 10px;
    font-weight: 600;
    border: 2px solid #ffe066;
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
}

.durum-onaylandi {
    background: #2563eb;
    color: #fff !important;
    border-radius: 5px;
    padding: 4px 10px;
    font-weight: 600;
    border: 2px solid #2563eb;
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
}

.durum-reddedildi {
    background: #dc3232;
    color: #fff !important;
    border-radius: 5px;
    padding: 4px 10px;
    font-weight: 600;
    border: 2px solid #dc3232;
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
}

.durum-odendi {
    background: #00844a;
    color: #fff !important;
    border-radius: 5px;
    padding: 4px 10px;
    font-weight: 600;
    border: 2px solid #00844a;
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
}

.rbs-export {
    margin-top: 20px;
    text-align: center;
}

.rbs-export .button {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.4;
}

.rbs-export .button:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Demo Bayi */
.rbs-demo-bayi {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
    box-sizing: border-box;
}

.rbs-demo-bayi h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.rbs-demo-bayi p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.4;
}

.rbs-demo-bayi .button {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.4;
}

.rbs-demo-bayi .button:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Hata ve Başarı Mesajları */
.rbs-error {
    background: #dc3232;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #b32d2e;
}

.rbs-warning {
    background: #ffb900;
    color: #222;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #dba617;
}

.rbs-success {
    background: #46b450;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #389a3f;
}

/* Mesajlar Bölümü */
.rbs-mesajlar-accordion {
    margin-top: 40px;
    box-sizing: border-box;
}

.rbs-mesajlar-accordion button {
    background: #2271b1;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 24px;
    border: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    outline: none;
    min-height: 44px;
    line-height: 1.3;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.rbs-mesajlar-accordion button:hover {
    background: #135e96;
}

.rbs-mesaj-badge {
    background: #dc3232;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    margin-left: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.rbs-mesajlar-content {
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px;
    box-sizing: border-box;
}

.rbs-mesajlar-content h3 {
    color: #2271b1;
    margin-top: 0;
    line-height: 1.3;
}

.rbs-mesajlar-content h4 {
    margin-top: 0;
    line-height: 1.3;
}

.rbs-mesajlar-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.rbs-mesajlar-content .button {
    background: #2271b1;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.4;
}

.rbs-mesajlar-content .button:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Toast Bildirimi */
.rbs-mesaj-toast {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 99999;
    background: #2271b1;
    color: #fff;
    padding: 18px 32px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    cursor: pointer;
    transition: opacity 0.3s;
    max-width: 90vw;
    word-wrap: break-word;
    line-height: 1.3;
}

/* Duyuru Kutusu */
.rbs-duyuru-kutusu {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    box-sizing: border-box;
    line-height: 1.4;
}

.rbs-duyuru-kutusu:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rbs-duyuru-kutusu h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #856404;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.rbs-duyuru-kutusu h3:before {
    content: "📢 ";
    margin-right: 8px;
}

.rbs-duyuru-kutusu ul {
    margin: 0;
    padding-left: 20px;
}

.rbs-duyuru-kutusu li {
    margin-bottom: 10px;
    color: #856404;
    line-height: 1.5;
    word-wrap: break-word;
}

.rbs-duyuru-kutusu li:last-child {
    margin-bottom: 0;
}

.rbs-duyuru-kutusu strong {
    color: #856404;
    font-weight: 600;
    line-height: 1.3;
}

.rbs-duyuru-kutusu span {
    color: #856404;
    font-size: 13px;
    line-height: 1.3;
}

.rbs-duyuru-kapat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #856404;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.rbs-duyuru-kapat:hover {
    background: rgba(133, 100, 4, 0.1);
}

/* Responsive Tasarım - Tablet */
@media screen and (max-width: 768px) {
    .rbs-bayi-giris {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .rbs-bayi-istatistikler {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    table {
        font-size: 13px;
    }

    .rbs-bayi-panel {
        margin: 20px auto;
        padding: 0 15px;
        border-radius: 10px;
    }

    .rbs-giris-form,
    .rbs-kayit-form {
        padding: 20px;
    }

    .seviye-ikon {
        font-size: 36px;
    }

    .seviye-adi {
        font-size: 20px;
    }

    .istatistik-kutu p {
        font-size: 18px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 12px;
    }

    button[type="submit"],
    .rbs-button {
        font-size: 16px;
        padding: 14px 20px;
    }

    th, td {
        padding: 8px 6px;
        font-size: 13px;
    }

    .rbs-duyuru-kutusu {
        margin: 15px 0;
        padding: 15px;
    }

    .rbs-duyuru-kutusu h3 {
        font-size: 16px;
    }

    .rbs-duyuru-kutusu li {
        font-size: 14px;
    }

    button, input[type="submit"], .rbs-duyuru-kapat {
        min-height: 44px;
        min-width: 44px;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .rbs-mesaj-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        font-size: 16px;
        padding: 16px 20px;
    }

    .rbs-mesajlar-accordion button {
        font-size: 18px;
        padding: 14px 20px;
    }

    .rbs-mesajlar-content {
        padding: 20px;
    }
}

/* Responsive Tasarım - Mobil */
@media screen and (max-width: 480px) {
    .rbs-bayi-giris {
        margin: 20px auto;
        padding: 0 10px;
    }

    .rbs-giris-form,
    .rbs-kayit-form {
        padding: 15px;
        border-radius: 6px;
    }

    .rbs-bayi-panel {
        margin: 15px auto;
        padding: 0 10px;
        border-radius: 8px;
    }

    .rbs-bayi-bilgileri,
    .rbs-odeme-talebi {
        padding: 20px;
    }

    .seviye-ikon {
        font-size: 32px;
    }

    .seviye-adi {
        font-size: 18px;
    }

    .istatistik-kutu {
        padding: 16px 0 12px 0;
    }

    .istatistik-kutu p {
        font-size: 16px;
    }

    .rbs-duyuru-kutusu {
        padding: 12px;
        margin: 10px 0;
    }

    .rbs-duyuru-kutusu h3 {
        font-size: 15px;
    }

    .rbs-duyuru-kutusu li {
        font-size: 13px;
    }

    .rbs-bayi-panel h1 { font-size: 24px; }
    .rbs-bayi-panel h2 { font-size: 20px; }
    .rbs-bayi-panel h3 { font-size: 18px; }
    .rbs-bayi-panel h4 { font-size: 16px; }

    .rbs-mesajlar-accordion button {
        font-size: 16px;
        padding: 12px 16px;
    }

    .rbs-mesajlar-content {
        padding: 16px;
    }

    .rbs-mesaj-badge {
        font-size: 12px;
        padding: 3px 8px;
    }

    .durum-beklemede,
    .durum-onaylandi,
    .durum-reddedildi,
    .durum-odendi {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* iPhone 14 Pro Max ve benzeri büyük ekranlar için */
@media screen and (max-width: 430px) {
    .rbs-bayi-istatistikler {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .istatistik-kutu {
        padding: 14px 0 10px 0;
    }

    .istatistik-kutu p {
        font-size: 18px;
    }

    .rbs-bayi-seviye {
        padding: 14px;
        font-size: 16px;
    }

    .seviye-ikon {
        font-size: 28px;
    }

    .seviye-adi {
        font-size: 16px;
    }

    .rbs-mesaj-toast {
        top: 15px;
        right: 15px;
        left: 15px;
        font-size: 15px;
        padding: 14px 16px;
    }
}

/* Büyük ekranlar için */
@media screen and (min-width: 1200px) {
    .rbs-bayi-panel {
        max-width: 1000px;
    }

    .rbs-bayi-istatistikler {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tema uyumluluğu için genel reset */
.rbs-bayi-panel *,
.rbs-giris-form *,
.rbs-kayit-form * {
    box-sizing: border-box;
}

/* Tema çakışmalarını önlemek için */
.rbs-bayi-panel button,
.rbs-giris-form button,
.rbs-kayit-form button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.rbs-bayi-panel input,
.rbs-bayi-panel textarea,
.rbs-bayi-panel select,
.rbs-giris-form input,
.rbs-giris-form textarea,
.rbs-giris-form select,
.rbs-kayit-form input,
.rbs-kayit-form textarea,
.rbs-kayit-form select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Safari için özel düzeltmeler */
@supports (-webkit-appearance: none) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        -webkit-appearance: none;
        border-radius: 6px;
    }
    
    button[type="submit"],
    .rbs-button {
        -webkit-appearance: none;
        border-radius: 6px;
    }
}

/* Firefox için özel düzeltmeler */
@supports (-moz-appearance: none) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        -moz-appearance: none;
    }
    
    button[type="submit"],
    .rbs-button {
        -moz-appearance: none;
    }
}

/* Referans Sistemi Paneli Stilleri */
.rbs-referral-section {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.rbs-referral-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #2c3e50;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.rbs-referral-generator, .rbs-referral-commissions {
    margin-bottom: 25px;
}

.rbs-referral-generator h3, .rbs-referral-commissions h3 {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 15px;
}

.rbs-input-group {
    display: flex;
    align-items: center;
}

#rbs-referral-link-output {
    flex-grow: 1;
    margin-right: -1px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#rbs-copy-referral-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rbs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rbs-table th, .rbs-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}

.rbs-table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.rbs-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rbs-table tbody tr:hover {
    background-color: #f0f0f0;
}

.rbs-table a {
    color: #3498db;
    text-decoration: none;
}

.rbs-table a:hover {
    text-decoration: underline;
}

.durum-pending { color: #f39c12; font-weight: bold; }
.durum-paid { color: #2ecc71; font-weight: bold; }
.durum-cancelled { color: #e74c3c; font-weight: bold; }

@media screen and (max-width: 600px) {
    .rbs-table thead {
        display: none;
    }
    .rbs-table, .rbs-table tbody, .rbs-table tr, .rbs-table td {
        display: block;
        width: 100%;
    }
    .rbs-table tr {
        margin-bottom: 15px;
    }
    .rbs-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .rbs-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
    }
} 