/* assets/cari-duzenle.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;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.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; }

.btn-history {
    color: #3b82f6; text-decoration: none; font-weight: 600;
    padding: 10px 15px; border-radius: 8px; background: #eff6ff;
    transition: all 0.2s;
}
.btn-history:hover { background: #dbeafe; color: #1e40af; }

/* 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;
    border-top: 5px solid #f59e0b; /* Düzenleme modu için turuncu şerit */
}

/* Bölüm Başlıkları */
.form-section-title {
    font-size: 0.9rem; font-weight: 700; color: #f59e0b; 
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 2px solid #fef3c7; padding-bottom: 12px;
    margin: 30px 0 25px 0;
}
.form-section-title:first-child { margin-top: 0; }

/* Grid Sistemi */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    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;
}
@media (max-width: 768px) { .grid-3-cols { grid-template-columns: 1fr; } }

.full-width { grid-column: 1 / -1; }
@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%;
}

.input-highlight { border-left: 4px solid #f59e0b !important; }

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #f59e0b; background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 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: #f59e0b; margin: 0; }

/* Checkbox Tasarımı */
.checkbox-wrapper {
    justify-content: flex-end; height: 100%; padding-bottom: 5px;
}

.custom-checkbox {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    user-select: none; background: #fffbeb; padding: 10px 15px;
    border-radius: 10px; border: 1px solid #fef3c7;
}

.custom-checkbox input { width: 20px; height: 20px; accent-color: #d97706; cursor: pointer; }
.custom-checkbox .label-text { color: #92400e; 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, #f59e0b 0%, #d97706 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(245, 158, 11, 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(245, 158, 11, 0.3);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}