/* assets/kredikarti-borc-kasalari.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-new {
    background: #1e293b; color: white; border: none;
    padding: 12px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-new:hover { background: #0f172a; transform: translateY(-2px); }

/* Form Kartı */
.form-card {
    background: white; border-radius: 12px; padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); margin-bottom: 30px;
    border-top: 4px solid #1e293b; animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.form-header h3 { margin: 0; color: #334155; }
.btn-close { background: none; border: none; font-size: 1.2rem; color: #94a3b8; cursor: pointer; }
.btn-close:hover { color: #ef4444; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-weight: 600; color: #475569; font-size: 0.9rem; }
.form-group input { padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: 'Inter'; }

.form-actions { text-align: right; margin-top: 20px; }
.btn-save { background: #10b981; color: white; border: none; padding: 10px 30px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.btn-save:hover { background: #059669; }

/* KART Grid */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}

.kk-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
    transition: transform 0.2s; display: flex; flex-direction: column;
}
.kk-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.kk-header {
    background: #f8fafc; padding: 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #e2e8f0;
}
.kk-icon {
    width: 50px; height: 50px; background: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #1e293b; border: 1px solid #e2e8f0;
}
.kk-title h4 { margin: 0; color: #1e293b; font-size: 1.1rem; }
.kk-title span { font-size: 0.85rem; color: #64748b; }
.kk-actions { margin-left: auto; }

.btn-edit { background: none; border: none; color: #3b82f6; cursor: pointer; font-size: 1rem; opacity: 0.7; }
.btn-delete { background: none; border: none; color: #ef4444; opacity: 0.5; transition: 0.2s; font-size: 1rem; }
.btn-delete:hover { opacity: 1; }

.kk-body { padding: 20px; flex: 1; }
.info-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; }
.val-text { font-weight: 700; color: #334155; }

.balance-section { text-align: center; margin-top: 10px; }
.bl-label { font-size: 0.7rem; font-weight: 800; color: #94a3b8; letter-spacing: 0.5px; margin-bottom: 5px; }
.bl-amount { font-size: 1.8rem; font-weight: 800; }
.text-red { color: #ef4444; }
.text-green { color: #10b981; }

.kk-footer {
    padding: 15px 20px; background: #fff; border-top: 1px dashed #e2e8f0; text-align: center;
}

.btn-pay-debt {
    width: 100%; background: #ef4444; color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s;
}
.btn-pay-debt:hover { background: #dc2626; }
.btn-pay-debt.disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: white; width: 400px; border-radius: 12px; padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.close-modal { font-size: 1.5rem; cursor: pointer; color: #94a3b8; }

.modal-body p { margin-bottom: 15px; font-size: 0.9rem; color: #64748b; }
.input-big { font-size: 1.4rem !important; font-weight: 700; color: #1e293b; }

.modal-footer { display: flex; gap: 10px; margin-top: 20px; }
.btn-cancel { background: #f1f5f9; color: #64748b; flex: 1; padding: 12px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }
.btn-confirm { background: #1e293b; color: white; flex: 2; padding: 12px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 50px; color: #94a3b8; background: #f8fafc; border-radius: 12px; border: 2px dashed #e2e8f0; }
.empty-state i { font-size: 3rem; margin-bottom: 10px; opacity: 0.5; }

.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; }
/* assets/kredikarti-borc-kasalari.css */

/* ... (Önceki stiller aynen kalıyor) ... */

/* FİLTRE ALANI */
.filter-box { background: #f8fafc; padding: 15px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #e2e8f0; }
.filter-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; }
.f-group { display: flex; flex-direction: column; gap: 5px; }
.f-group label { font-size: 0.8rem; font-weight: 700; color: #64748b; }
.f-input { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; }
.btn-filter-go { background: #1e293b; color: white; border: none; padding: 9px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-filter-reset { color: #ef4444; text-decoration: underline; font-size: 0.9rem; padding: 8px; cursor: pointer; }

/* HAREKET LİSTESİ */
.history-list { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.list-header { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 15px; }
.list-header h4 { margin: 0; color: #334155; font-size: 1.1rem; }

.table-responsive { overflow-x: auto; }
.detail-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.detail-table th { text-align: left; padding: 12px; font-size: 0.8rem; color: #94a3b8; font-weight: 700; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.detail-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; color: #334155; vertical-align: middle; }

.row-odeme { background: #f0fdf4; }
.row-harcama { background: #fff; }

.text-green { color: #166534; }
.text-red { color: #dc2626; }
.font-bold { font-weight: 700; }
.text-muted { color: #94a3b8; font-size: 0.85rem; font-style: italic; }

.btn-delete-row { background: #fee2e2; color: #ef4444; border: none; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.btn-delete-row:hover { background: #ef4444; color: white; }

.no-data { text-align: center; padding: 30px; color: #94a3b8; font-style: italic; }