@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --blue-color: #1976d2;
    --sidebar-bg: #f0f3f5;
    --sidebar-width: 240px;
}

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top bar */
.top-bar, .app-header {
    background-color: var(--blue-color);
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
}

.logo, .app-title {
    font-weight: 500;
    font-size: 18px;
}

.date-user, .user-info {
    font-size: 14px;
    display: flex;
    align-items: center;
}

    .date-user i, .user-info i {
        margin-right: 8px;
    }

/* Main layout */
.main-container, .app-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.sidebar-header, .sidebar-title {
    padding: 15px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    color: var(--blue-color);
    font-size: 14px;
}

/* Important - Force all sidebar menu items to be blue */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu li {
        border-bottom: 1px solid #ddd;
    }

    .sidebar-menu a {
        display: flex;
        align-items: center;
        color: var(--blue-color) !important; /* Force blue color */
        font-weight: 400;
        text-decoration: none;
        padding: 10px 15px;
        transition: background-color 0.2s;
        font-size: 13px; /* Smaller font */
    }

        .sidebar-menu a i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
            font-size: 14px;
        }

        .sidebar-menu a:hover, .sidebar-menu a.active {
            background-color: #e3f2fd;
            color: var(--blue-color) !important;
        }

/* Nav menu (if you're still using it) */
.nav-menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.nav-item {
    border-bottom: 1px solid #ddd;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--blue-color) !important; /* Force blue color */
    font-weight: 400;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.2s;
    font-size: 13px; /* Smaller font */
}

    .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
        font-size: 14px;
    }

    .nav-link:hover, .nav-link.active {
        background-color: #e3f2fd;
        color: var(--blue-color) !important;
    }

/* Content area */
.content-area, .dashboard-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

/* Dashboard cards */
.dashboard-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dashboard-card, .card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-weight: 500;
    margin: 0;
}

.card-body {
    padding: 15px;
}

.amount-display {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    padding: 10px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    background-color: #f8f9fa;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
