/* Hesap & Cari Takip Sistemi - Modern Tasarım */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #0f172a;
    --gray-bg: #f8fafc;
    --card-border: #e2e8f0;
}

body {
    background-color: var(--gray-bg);
    color: #334155;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Kartlar */
.card {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* İstatistik Kartları */
.stat-card {
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.stat-card .stat-icon {
    position: absolute;
    right: 1.25rem;
    bottom: 1rem;
    font-size: 3rem;
    opacity: 0.2;
}

.stat-card .stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0.35rem 0 0 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}

/* Tablolar */
.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-top: none;
    padding: 0.9rem 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: #f1f5f9;
}

/* Rozetler */
.badge-alacak {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

.badge-tahsilat {
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

.badge-borc {
    background-color: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

.badge-odeme {
    background-color: #fef3c7;
    color: #b45309;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

/* Avatar Yuvarlak */
.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Butonlar */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Form Kontrolleri */
.form-control, .form-select {
    border-radius: 10px;
    border-color: #cbd5e1;
    padding: 0.65rem 0.85rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Ekstre ve Yazdırma Özel Stilleri */
@media print {
    body {
        background-color: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
    .no-print, .navbar, footer, .btn, .modal {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .table th, .table td {
        border-color: #ccc !important;
    }
}
