:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --bg-page: #f5f7fb;
}

body {
    background-color: var(--bg-page);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.92rem;
}

.navbar-brand { letter-spacing: -0.3px; }
.navbar-nav .nav-link { font-size: 0.9rem; }
.navbar-nav .nav-link.active { font-weight: 600; }

.card {
    border: 0;
    border-radius: 0.65rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    font-weight: 600;
    padding: 0.85rem 1rem;
}

.stat-card {
    border-radius: 0.65rem;
    overflow: hidden;
    border: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}
.stat-card .stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.table { font-size: 0.88rem; margin-bottom: 0; }
.table thead th {
    background: #f8f9fc;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.7rem 0.75rem;
    white-space: nowrap;
}
.table tbody tr:hover { background: #f8f9fc; }
.table td { padding: 0.55rem 0.75rem; vertical-align: middle; }

.btn-sm { font-size: 0.8rem; }
.form-control, .form-select { font-size: 0.9rem; }
.form-label { font-weight: 500; font-size: 0.85rem; margin-bottom: 0.3rem; }

.badge { font-weight: 500; padding: 0.4em 0.65em; }

.breadcrumb { font-size: 0.85rem; }

.alert { font-size: 0.88rem; }

.text-money { font-family: 'Courier New', monospace; font-weight: 600; color: #198754; }
.text-money-red { font-family: 'Courier New', monospace; font-weight: 600; color: #dc3545; }

/* Filter card */
.filter-card { background: #fff; border-radius: 0.65rem; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 1rem; }

/* Pagination */
.pagination { font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .stat-card .stat-value { font-size: 1.25rem; }
    .stat-card .stat-icon { font-size: 1.8rem; }
    .table-responsive { font-size: 0.8rem; }
}

/* Login page */
.login-page body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.login-card {
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
