/* assets/hizli-siparis.css */

.container { max-width: 1100px; margin: 0 auto; }

/* Grid Yapısı: Masaüstünde 2 sütun (Solda Ürün, Sağda Müşteri), Mobilde Tek Sütun */
.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 80px; /* Alt bar için boşluk */
}

/* Ürün Kartı (Sol Taraf) */
.section-product {
    grid-row: span 2; /* 2 satır yüksekliğinde olsun */
    border-top: 5px solid #4f46e5;
}

.section-customer { border-top: 5px solid #10b981; }
.section-address { border-top: 5px solid #f59e0b; }

/* Kart Stilleri */
.card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* Form Elemanları */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; color: #64748b; font-size: 0.9rem; margin-bottom: 8px; }

/* Standart Input */
.input-std { 
    width: 100%; 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: 2px solid #e2e8f0; 
    font-size: 1rem; 
    transition: 0.2s; 
    box-sizing: border-box; 
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
}
.input-std:focus { border-color: #3b82f6; background: #fff; outline: none; }

/* Büyük Input (Fiyat ve Miktar için) */
.input-lg {
    width: 100%;
    height: 55px; /* Yükseklik sabitlendi */
    padding: 0 15px;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    color: #1e293b;
    box-sizing: border-box;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
}
.input-lg:focus { border-color: #4f46e5; background: #eef2ff; outline: none; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

/* Yan Yana Inputlar */
.row-inputs { 
    display: flex; 
    gap: 15px; 
    align-items: flex-end; 
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Select2 Özelleştirme (Inputlarla Aynı Yükseklik) */
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { 
    height: 55px !important; 
    display: flex; 
    align-items: center; 
    border-radius: 10px !important; 
    border: 2px solid #e2e8f0 !important; 
    background-color: #f8fafc !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding-left: 15px !important;
}
.select2-selection__arrow { height: 53px !important; right: 10px !important; }

/* SEÇENEKLER SATIRI (Toggle + Radio) */
.options-row {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.option-group { flex: 1; }
.opt-label { font-size: 0.75rem; font-weight: 800; color: #94a3b8; display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Nakliye Toggle Switch */
.toggle-switch {
    position: relative;
    width: 100%;
    height: 45px;
}
.toggle-switch input { display: none; }
.toggle-switch label {
    display: flex;
    width: 100%;
    height: 100%;
    background: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    overflow: hidden;
    margin: 0;
    transition: 0.3s;
}
.toggle-switch label::after {
    content: "";
    position: absolute;
    top: 4px; left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: white;
    border-radius: 6px;
    transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.toggle-switch input:checked + label::after { left: 50%; }
.toggle-switch input:checked + label { background: #10b981; }

.txt-no, .txt-yes {
    flex: 1;
    text-align: center;
    z-index: 2;
    font-weight: 800;
    font-size: 0.85rem;
    transition: 0.3s;
    text-transform: uppercase;
}
.txt-no { color: #475569; }
.txt-yes { color: white; opacity: 0; }

.toggle-switch input:checked + label .txt-no { opacity: 0; }
.toggle-switch input:checked + label .txt-yes { opacity: 1; }

/* Ödeme Tipi Radio Butonlar */
.radio-group { display: flex; gap: 8px; }
.radio-group label { flex: 1; margin: 0; cursor: pointer; }
.radio-group input { display: none; }
.radio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.radio-group input:checked + .radio-btn {
    background: #eff6ff;
    border-color: #4f46e5;
    color: #4f46e5;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

/* TOPLAM GÖSTERGESİ */
.total-display {
    margin-top: 25px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}
.total-display span { font-size: 0.9rem; opacity: 0.8; font-weight: 700; letter-spacing: 1px; }
.total-display strong { font-size: 2.2rem; font-weight: 900; line-height: 1; }

/* ALT BAR (SABİT BUTON) */
.form-footer {
    position: fixed;
    bottom: 0;
    left: 260px; /* Sidebar payı */
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
    z-index: 99;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
}

.btn-submit-order {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    width: auto;
    letter-spacing: 0.5px;
}
.btn-submit-order:hover { transform: translateY(-2px); box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5); }
.btn-submit-order:active { transform: scale(0.98); }

/* MOBİL UYUMLULUK */
@media (max-width: 1000px) {
    .order-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .form-footer { 
        left: 0; 
        padding: 15px 20px; 
        justify-content: center;
    }
    .btn-submit-order { width: 100%; }
    
    /* Yan yana inputları mobilde alt alta yap */
    .row-inputs { flex-direction: column; align-items: stretch; gap: 15px; }
    .options-row { flex-direction: column; gap: 20px; }
    
    /* KDV alanı mobilde tam genişlik olsun ama çok yer kaplamasın */
    .form-group[style*="flex: 0 0 90px"] { flex: auto !important; width: 100%; }
}