/**
 * FE-002: SweetAlert2 Custom Styles
 * Ortak SweetAlert modal stilleri — tüm sayfalarda tek dosyadan yüklenir
 * Daha önce customer-list.php, vehicle-list.php, product-brand-detail.php'de tekrarlanıyordu
 */

/* Modal Global Settings - Minimalist */
.swal2-popup {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08) !important;
    padding: 2rem !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.swal2-title {
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    color: #1e293b !important;
    margin-bottom: 1.5rem !important;
}

.swal2-html-container {
    margin: 0 !important;
    text-align: left !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.swal2-close {
    font-size: 1.5rem !important;
    color: #94a3b8 !important;
    font-weight: 300 !important;
    transition: all 0.2s ease !important;
}

.swal2-close:hover {
    color: #475569 !important;
    transform: scale(1.1) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .customer-modal-container .swal2-popup,
    .vehicle-modal-container .swal2-popup {
        width: 95% !important;
        max-width: 95% !important;
        margin: 1rem !important;
        padding: 1.5rem !important;
        border-radius: 20px !important;
        max-height: 90vh !important;
    }
    
    .swal2-title {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .swal2-html-container {
        max-height: 70vh !important;
        overflow-y: auto !important;
        font-size: 0.9rem !important;
        padding: 0 !important;
    }
    
    .swal2-container {
        padding: 1rem !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
    }
    
    .swal2-popup .col-lg-6 { margin-bottom: 1rem !important; }
    .swal2-popup .card-body { padding: 1rem !important; }
    .swal2-popup .row { margin: 0 !important; }
    .swal2-popup .row > * { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
}

.swal2-popup .card {
    border: 1px solid #f1f5f9 !important; border-radius: 16px !important; box-shadow: none !important;
    background: #ffffff !important; 
    overflow: visible !important; 
}

.swal2-popup .card-header { border: none !important; padding: 1.25rem 1.5rem !important; }

.swal2-popup .card-header.bg-light-blue-header {
    background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important;
}
.swal2-popup .card-header.bg-light-blue-header .card-title,
.swal2-popup .card-header.bg-light-blue-header h5,
.swal2-popup .card-header.bg-light-blue-header h6 {
    color: #2563eb !important; font-weight: 700 !important; letter-spacing: 0.01em;
}
.swal2-popup .card-header.bg-light-green-header {
    background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important;
}
.swal2-popup .card-header.bg-light-green-header .card-title,
.swal2-popup .card-header.bg-light-green-header h5,
.swal2-popup .card-header.bg-light-green-header h6 {
    color: #059669 !important; font-weight: 700 !important; letter-spacing: 0.01em;
}

.swal2-popup .card-body { padding: 1.5rem !important; }

.swal2-popup .avatar-lg {
    width: 3.5rem !important; height: 3.5rem !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 2px solid #fff !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.swal2-popup .bg-light {
    background: #f8fafc !important; border: 1px solid #f1f5f9 !important; border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; padding: 1rem !important;
}
.swal2-popup .bg-light:hover {
    background: #f1f5f9 !important; border-color: #e2e8f0 !important;
    transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.swal2-popup .bg-success.bg-opacity-10 { background: rgba(16, 185, 129, 0.08) !important; border-radius: 10px !important; }

.swal2-popup h4, .swal2-popup h5, .swal2-popup h6 { font-weight: 600 !important; color: #1e293b !important; line-height: 1.4 !important; }
.swal2-popup .text-muted { color: #64748b !important; }
.swal2-popup .text-success { color: #059669 !important; }
.swal2-popup .text-primary { color: #1d4ed8 !important; }

.swal2-popup .btn-light-subtle {
    background-color: #f8f9fa !important; border-color: #f8f9fa !important; color: #495057 !important;
    border-radius: 8px !important; font-weight: 500 !important; transition: all 0.2s ease !important;
    padding: 0.375rem 0.75rem;
}
.swal2-popup .btn-light-subtle:hover {
    background-color: #e2e6ea !important; border-color: #dae0e5 !important; color: #495057 !important;
}

.swal2-popup .dropdown-menu {
    z-index: 1070 !important; 
    border-radius: 12px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    border: 1px solid #f1f5f9 !important;
}
.swal2-popup .dropdown-item { font-size: 0.9rem !important; padding: 0.5rem 1rem !important; }
.swal2-popup .dropdown-item i { margin-right: 0.5rem !important; opacity: 0.7; }

.swal2-html-container::-webkit-scrollbar { width: 6px !important; }
.swal2-html-container::-webkit-scrollbar-track { background: #f8fafc !important; border-radius: 10px !important; }
.swal2-html-container::-webkit-scrollbar-thumb { background: #cbd5e1 !important; border-radius: 10px !important; }
.swal2-html-container::-webkit-scrollbar-thumb:hover { background: #94a3b8 !important; }

.swal2-popup .form-floating > label { color: #64748b !important; font-weight: 500 !important; }
.swal2-popup .form-control {
    border: 1px solid #e2e8f0 !important; border-radius: 12px !important; transition: all 0.2s ease !important;
}
.swal2-popup .form-control:focus {
    border-color: #3b82f6 !important; box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1) !important;
}
.swal2-popup .form-floating > .form-control:focus ~ label,
.swal2-popup .form-floating > .form-control:not(:placeholder-shown) ~ label { color: #3b82f6 !important; }

.swal2-loading .swal2-styled { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }

/* FE-007: fadeInUp animasyonu — tüm sayfalarda ortak */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}
