/* assets/siparis-duzenle.css - hizli-siparis.css baz alınmıştır */

.container { max-width: 1100px; margin: 0 auto; }

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 80px; 
}

/* Ürün Kartı - Turuncu Border (Update Modu) */
.section-product {
    grid-row: span 2; 
    border-top: 5px solid #f97316; /* Turuncu */
}

.section-customer { border-top: 5px solid #10b981; }
.section-address { border-top: 5px solid #3b82f6; }

/* 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; justify-content: space-between; /* Durum sağa yaslansın */
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* Durum Seçimi */
.status-select {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}
.status-select.bekliyor { background: #fffbeb; color: #b45309; border-color: #fcd34d; }
.status-select.hazirlaniyor { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-select.tamamlandi { background: #ecfdf5; color: #047857; border-color: #6ee7b7; }
.status-select.iptal { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }


/* Form Elemanları */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; color: #64748b; font-size: 0.9rem; margin-bottom: 8px; }

.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: #f97316; background: #fff; outline: none; } /* Turuncu focus */

.input-lg {
    width: 100%; height: 55px; 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: #f97316; background: #fff7ed; outline: none; box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1); }

.row-inputs { display: flex; gap: 15px; align-items: flex-end; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Select2 */
.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-selection__arrow { height: 53px !important; right: 10px !important; }

/* Seçenekler */
.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; }

.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; }

.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: #fff7ed; border-color: #f97316; color: #c2410c;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
}

.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 */
.form-footer {
    position: fixed; bottom: 0; left: 260px; right: 0;
    background: rgba(255, 255, 255, 0.95); 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-update {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 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(249, 115, 22, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}
.btn-update:hover { transform: translateY(-2px); box-shadow: 0 15px 25px -5px rgba(249, 115, 22, 0.5); }
.btn-update:active { transform: scale(0.98); }

.btn-back-list {
    background: #fff; border: 2px solid #e2e8f0; color: #64748b;
    padding: 10px 15px; border-radius: 8px; text-decoration: none;
    font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px;
    transition: 0.2s;
}
.btn-back-list:hover { border-color: #cbd5e1; color: #334155; }

@media (max-width: 1000px) {
    .order-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-footer { left: 0; padding: 15px 20px; justify-content: center; }
    .btn-update { width: 100%; }
    .row-inputs { flex-direction: column; align-items: stretch; gap: 15px; }
    .options-row { flex-direction: column; gap: 20px; }
    .form-group[style*="flex: 0 0 90px"] { flex: auto !important; width: 100%; }
}