/* assets/degirmen-kisisel-masraflar.css */

.page-header-flex {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
}
.page-title { margin: 0; font-size: 1.6rem; color: #1e293b; }
.page-subtitle { margin: 5px 0 0 0; color: #64748b; font-size: 0.95rem; }

.btn-back {
    background: #f1f5f9; color: #475569; padding: 10px 15px; border-radius: 8px; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-back:hover { background: #e2e8f0; color: #1e293b; }

/* Grid Düzeni */
.dashboard-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}

@media (max-width: 992px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* Harcama Kartı */
.expense-card {
    background: white; border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #ef4444;
}

.card-header { margin-bottom: 25px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 10px; }
.card-header h3 { margin: 0; color: #ef4444; font-size: 1.2rem; }

/* Tür Seçici (Radio Butonlar) */
.type-selector {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px;
}
.type-selector input { display: none; } /* Radyo butonunu gizle */

.type-box {
    border: 2px solid #e2e8f0; border-radius: 10px; padding: 15px;
    text-align: center; cursor: pointer; transition: all 0.2s; color: #64748b;
}
.type-box i { font-size: 1.5rem; display: block; margin-bottom: 5px; }
.type-box span { font-weight: 700; font-size: 0.9rem; }

/* Seçili Durumlar */
input[value="Degirmen"]:checked + .box-degirmen {
    border-color: #ef4444; background: #fef2f2; color: #ef4444;
}
input[value="Kisisel"]:checked + .box-kisisel {
    border-color: #3b82f6; background: #eff6ff; color: #3b82f6;
}

/* Form Elemanları */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 5px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; font-family: 'Inter'; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.input-big { font-size: 1.3rem !important; font-weight: 700; color: #ef4444; }

.info-alert {
    background: #fff7ed; color: #c2410c; padding: 10px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}

.btn-save {
    width: 100%; background: #ef4444; color: white; border: none; padding: 15px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s;
}
.btn-save:hover { background: #dc2626; transform: translateY(-2px); }


/* SAĞ KOLON - İSTATİSTİK VE LİSTE */
.stats-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px;
}
.stat-card {
    background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); text-align: center;
}
.stat-card .label { display: block; font-size: 0.75rem; font-weight: 700; color: #94a3b8; margin-bottom: 5px; }
.stat-card .value { display: block; font-size: 1.4rem; font-weight: 800; }

.stat-degirmen { border-top: 4px solid #ef4444; }
.stat-degirmen .value { color: #ef4444; }

.stat-kisisel { border-top: 4px solid #3b82f6; }
.stat-kisisel .value { color: #3b82f6; }


/* Geçmiş Listesi */
.history-list {
    background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.list-header { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 10px; }
.list-header h4 { margin: 0; color: #334155; font-size: 1rem; }

.history-list ul { list-style: none; padding: 0; margin: 0; }
.history-item {
    display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed #e2e8f0;
}
.history-item:last-child { border-bottom: none; }

.item-icon {
    width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-right: 15px;
}
.item-degirmen .item-icon { background: #fef2f2; color: #ef4444; }
.item-kisisel .item-icon { background: #eff6ff; color: #3b82f6; }

.item-info { flex: 1; }
.item-info .desc { display: block; font-weight: 600; color: #1e293b; font-size: 0.95rem; }
.item-info .date { display: block; font-size: 0.8rem; color: #94a3b8; }

.item-amount { font-weight: 700; color: #ef4444; font-size: 1rem; }

.no-data { text-align: center; padding: 20px; color: #94a3b8; font-style: italic; }

/* Alert */
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert.success { background:#dcfce7; color:#166534; border: 1px solid #bbf7d0; }
.alert.error { background:#fee2e2; color:#991b1b; border: 1px solid #fecaca; }