/* Mini Microfinance Management System (MMS) Custom CSS */

:root {
    --navy-primary: #0E2876;
    --navy-hover: #0a1e58;
    --emerald-primary: #04D38C;
    --emerald-hover: #03b074;
    --bg-light: #f4f6fb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 4px 15px rgba(14, 40, 118, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Color Utilities */
.bg-navy { background-color: var(--navy-primary) !important; }
.text-navy { color: var(--navy-primary) !important; }
.bg-emerald { background-color: var(--emerald-primary) !important; }
.text-emerald { color: var(--emerald-primary) !important; }
.extra-small { font-size: 0.75rem; }
.line-height-1 { line-height: 1.2; }

/* Header & Navbar */
.app-header {
    border-bottom: 2px solid var(--emerald-primary);
}

.brand-icon {
    font-size: 1.4rem;
}

.btn-navy-toggle {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-search input {
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 250px;
}
.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.nav-search input:focus {
    background-color: #ffffff;
    color: var(--text-dark);
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-body {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar-wrapper {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
}

.sidebar-heading {
    letter-spacing: 0.05em;
}

.sidebar-menu .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-menu .nav-link:hover {
    background-color: rgba(14, 40, 118, 0.06);
    color: var(--navy-primary);
}

.sidebar-menu .nav-link.active {
    background-color: var(--navy-primary);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-menu .nav-link.active i {
    color: var(--emerald-primary) !important;
}

/* Content Area */
.app-content {
    flex: 1;
    overflow-x: hidden;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);

}
.card-header {
    background-color: #ffffff;

    font-weight: 600;
}

/* KPI Cards */
.kpi-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 40, 118, 0.1);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Buttons */
.btn-emerald {
    background-color: var(--emerald-primary);
    color: var(--navy-primary);
    font-weight: 600;
    border: none;
}
.btn-emerald:hover {
    background-color: var(--emerald-hover);
    color: var(--navy-primary);
}

.btn-navy {
    background-color: var(--navy-primary);
    color: #ffffff;
    font-weight: 500;
    border: none;
}
.btn-navy:hover {
    background-color: var(--navy-hover);
    color: #ffffff;
}

/* DataTables Styling */
.table {
    vertical-align: middle;
}
.table thead th {
    background-color: #f8fafc;
    color: var(--navy-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;

}

/* Form Styles */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #334155;
}

.form-control:focus, .form-select:focus {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 0.25rem rgba(14, 40, 118, 0.15);
}

/* Receipts Print */
@media print {
    .app-header, .sidebar-wrapper, .app-footer, .btn-print-hide {
        display: none !important;
    }
    .app-content {
        padding: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}
