/* assets/cari-ekle.css */

/* Sayfa Başlık Alanı */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title h1 {
    font-size: 1.6rem;
    color: #1e293b;
    margin: 0;
    font-weight: 700;
}

.page-title p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.btn-back {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    background: #f1f5f9;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Alert Mesajları */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Form Ana Kapsayıcı */
.form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 35px;
    border: 1px solid #e2e8f0;
}

/* Bölüm Başlıkları */
.form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3b82f6; /* Vurgu Rengi */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin: 30px 0 25px 0;
}

/* İlk başlık için üst boşluğu alalım */
.form-section-title:first-child {
    margin-top: 0;
}

/* Grid Sistemi */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Daha geniş kolonlar */
    gap: 25px;
}

/* YENİ: 3'lü Sütun Yapısı (İl-İlçe-Mahalle için) */
.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    grid-column: 1 / -1; /* Bulunduğu satırı tamamen kaplar */
}

/* Mobilde 3'lü sütunu bozup alt alta diziyoruz */
@media (max-width: 768px) {
    .grid-3-cols {
        grid-template-columns: 1fr;
    }
}

/* Tam Genişlik Elemanlar */
.full-width {
    grid-column: 1 / -1;
}

/* Tablet ve üstü için yarım genişlik */
@media (min-width: 768px) {
    .full-width-md {
        grid-column: span 2;
    }
}

/* Input Grupları */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    width: 100%;
}

/* Sol kenarı renkli önemli inputlar */
.input-highlight {
    border-left: 4px solid #3b82f6 !important;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Radio Button Group */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.radio-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #334155;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    margin: 0;
}

/* Checkbox Tasarımı */
.checkbox-wrapper {
    justify-content: flex-end; /* Sağa yasla */
    height: 100%; /* Yüksekliği doldur */
    padding-bottom: 5px; /* Input hizasına getir */
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    background: #ecfdf5; /* Açık yeşil arka plan */
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #d1fae5;
}

.custom-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: #059669;
    cursor: pointer;
}

.custom-checkbox .label-text {
    color: #059669;
    font-weight: 700;
}

/* Alt Aksiyon Alanı */
.form-actions {
    text-align: right;
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.btn-save {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-save i {
    font-size: 1.1rem;
}