/* Ürün kartı */
.basit-urun-karti {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    background: #fff;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.basit-urun-karti:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.basit-urun-karti h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

/* Ürün fiyat */
.basit-urun-karti .urun-fiyat {
    font-size: 20px;
    color: #2980b9;
    font-weight: bold;
    margin: 15px 0;
}

/* Form elemanları */
.basit-urun-karti select,
.basit-urun-karti input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-top: 5px;
    transition: all 0.2s;
}

.basit-urun-karti select:focus,
.basit-urun-karti input[type="number"]:focus {
    border-color: #2980b9;
    outline: none;
}

/* Sipariş butonu */
.basit-urun-karti .basit-siparis-btn,
.basit-urun-yatay .basit-siparis-btn {
    background-color: #2980b9 !important;
    color: #ffffff !important;
    padding: 12px !important;
    border: 0 !important;
    width: 100% !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
    transition: all 0.3s !important;
}

.basit-urun-karti .basit-siparis-btn:hover,
.basit-urun-yatay .basit-siparis-btn:hover {
    background-color: #3498db !important;
}

/* Overlay */
#basit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    animation: fadeIn 0.3s;
}

/* Modal */
#basit-modal {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 9999;
    animation: slideIn 0.4s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translate(-50%, -30px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Modal içeriği */
#basit-modal .modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

#basit-modal .modal-header {
    background-color: #2980b9;
    padding: 20px 25px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#basit-modal .modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

#basit-modal .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: all 0.2s;
}

#basit-modal .btn-close::before,
#basit-modal .btn-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #fff;
}

#basit-modal .btn-close::before {
    transform: rotate(45deg);
}

#basit-modal .btn-close::after {
    transform: rotate(-45deg);
}

#basit-modal .modal-body {
    padding: 25px;
    max-height: 75vh;
    overflow-y: auto;
}

/* Form kartları */
.form-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* Müşteri tipi seçici */
.customer-type-selector {
    margin-bottom: 25px;
}

.customer-type-options {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.customer-type-option {
    flex: 1;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer-type-option:hover {
    border-color: #ccc;
    background-color: #f9f9f9;
}

.customer-type-option.active {
    border-color: #2980b9;
    background-color: #f0f8ff;
}

.customer-type-option label {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    display: block;
    width: 100%;
    height: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Müşteri bilgi alanları */
.customer-fields {
    display: none;
    margin-bottom: 20px;
}

.customer-fields.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Bölüm başlıkları */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2980b9;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Form grupları */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required-field::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* Form elemanları için ortak stil */
.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: #2980b9;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

/* Select elemanları için özel stil */
select.form-control {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232980b9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 12px;
}

/* Disabled select elemanları için stil */
select.form-control:disabled {
    background-color: #f5f5f5;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Satır düzeni */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

/* Form butonları */
.form-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-outline-secondary {
    color: #666;
    background-color: transparent;
    border-color: #ccc;
}

.btn-outline-secondary:hover {
    color: #333;
    background-color: #f5f5f5;
    border-color: #aaa;
}

.btn-lg {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
}

/* Yardımcı sınıflar */
.mb-4 {
    margin-bottom: 1.5rem;
}

.fw-bold {
    font-weight: 700;
}

.text-muted {
    color: #777 !important;
    font-style: italic;
}

/* Bölge seçim alanı için özel stiller */
.bolge-secim-container {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
}

.bolge-secim-baslik {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.bolge-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* Bölge butonları için özel stiller */
.bolge-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.bolge-item:hover {
    border-color: #2980b9;
    background-color: #f0f8ff;
}

.bolge-item.selected {
    border-color: #2980b9;
    background-color: #e6f3fb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bolge-count {
    background-color: #2980b9;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Bölge konteyner stilleri */
.bolge-bayileri {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Bayi seçim bölümü stilleri */
.bayi-secim-container {
    margin-top: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
}

.bayi-list-container {
    margin-top: 15px;
}

.bayi-group {
    margin-bottom: 20px;
}

.bayi-group h5 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.bayi-group h6 {
    font-size: 16px;
    font-weight: 600;
    color: #2980b9;
    margin: 15px 0 10px;
    padding: 8px 12px;
    background-color: #f0f8ff;
    border-radius: 4px;
    border-left: 3px solid #2980b9;
}

.bayi-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Bayi radyo butonları için özel stiller */
.bayi-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bayi-item:hover {
    border-color: #2980b9;
    background-color: #f0f8ff;
}

.bayi-item.selected {
    border-color: #2980b9;
    background-color: #e6f3fb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bayi-radio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #aaa;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 3px;
    position: relative;
    cursor: pointer;
}

.bayi-radio:checked {
    border-color: #2980b9;
    background-color: #fff;
}

.bayi-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2980b9;
}

.bayi-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bayi-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.bayi-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.bayi-phone {
    font-size: 13px;
    color: #2980b9;
}

/* İlçe başlıkları */
.ilce-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    color: #333;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 2px solid #2980b9;
}

.bayi-ilce-group {
    margin-bottom: 15px;
}

/* Alert stilleri */
.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
    border-left: 4px solid #ffc107;
}

.alert-warning strong {
    color: #664d03;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    #basit-modal {
        width: 95%;
        top: 20px;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .customer-type-options {
        flex-direction: column;
    }
    
    .form-actions {
        gap: 10px;
    }
    
    .btn-lg {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .form-card {
        padding: 15px;
    }
    
    .bolge-bayileri {
        padding: 10px;
    }
    
    .bayi-item {
        padding: 12px;
    }
    
    .bolge-list {
        grid-template-columns: 1fr;
    }
}

/* Yatay form düzeni */
.basit-urun-yatay {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 100%;
    width: 100%;
    transition: all 0.3s ease;
}

.basit-urun-yatay:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.basit-urun-yatay h3 {
    width: 100%;
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.basit-urun-yatay .form-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.basit-urun-yatay .form-item strong {
    margin-right: 8px;
    white-space: nowrap;
    color: #333;
}

.basit-urun-yatay select,
.basit-urun-yatay input[type="number"] {
    width: auto;
    min-width: 100px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    margin-top: 0;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
}

.basit-urun-yatay input[type="number"] {
    width: 60px;
    min-width: 60px;
    text-align: center;
}

.basit-urun-yatay select:focus,
.basit-urun-yatay input[type="number"]:focus {
    border-color: #2980b9;
    outline: none;
}

/* Yatay düzendeki buton için özel stil */
.basit-urun-yatay .basit-siparis-btn {
    margin-top: 0 !important;
    margin-left: auto !important;
    width: auto !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

/* Mobil görünüm için düzenleme */
@media (max-width: 768px) {
    .basit-urun-yatay {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .basit-urun-yatay .form-item {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .basit-urun-yatay .basit-siparis-btn {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* YENİ EKLENEN STİLLER: Bölgedeki Diğer İller İçin */
.bolge-sehir-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.bolge-sehir-item {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #333;
}

.bolge-sehir-item:hover {
    border-color: #2980b9;
    background-color: #f0f8ff;
    color: #2980b9;
}

.bolge-sehir-item.selected {
    border-color: #2980b9;
    background-color: #2980b9;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bolge-sehir-bayileri-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}