/* =========================================================
   KFS Cash Manager — Custom Styles
   ========================================================= */

:root {
    --primary: #1a56db;
    --bg: #f0f4f8;
}

/* Layout */
body {
    background-color: var(--bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container.py-4 {
    flex: 1;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
    box-shadow: 0 2px 12px rgba(26, 86, 219, 0.25);
    padding: 0.75rem 0;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

/* Page Title */
.page-title {
    color: #1e293b;
}

/* Action Cards (home page) */
.action-card {
    border-radius: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    background: #ffffff;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

.action-icon {
    font-size: 3.8rem;
    line-height: 1;
}

.action-card .card-footer {
    border-radius: 0 0 16px 16px !important;
}

/* Summary Cards */
.summary-card {
    border-radius: 12px !important;
    background: #ffffff;
}

.summary-icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* Form Card */
.form-card {
    border-radius: 16px !important;
    background: #ffffff;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.15);
}

/* Admin Table */
.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 600;
}

.admin-table td {
    font-size: 0.88rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(26, 86, 219, 0.03);
}

/* Badge overrides for subtle variants */
.text-bg-success-subtle {
    background-color: #dcfce7;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.75rem;
}

.text-bg-danger-subtle {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Letter spacing utility */
.letter-spacing {
    letter-spacing: 0.06em;
}

/* Admin login icon */
.login-icon {
    font-size: 3.5rem;
    line-height: 1;
}

/* Nav tabs (admin) */
.nav-tabs .nav-link {
    color: #6b7280;
    border-bottom: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 700;
    background: #fff;
}

/* Rounded top-0 for tab panels */
.rounded-top-0 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .action-icon {
        font-size: 2.8rem;
    }
    .display-6 {
        font-size: 1.6rem;
    }
}
