/* Custom Styles for Smart Ledger */
body {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    transition: margin .25s ease-out;
}

.sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

.sidebar-wrapper .list-group {
    width: 250px;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled .sidebar-wrapper {
    margin-left: -250px;
}

.sidebar-menu .list-group-item {
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu .list-group-item:hover, .sidebar-menu .list-group-item.active {
    background-color: #2c3e50 !important;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: bold;
}

/* Fix responsive layout width */
@media (min-width: 768px) {
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    #wrapper.toggled .sidebar-wrapper {
        margin-left: -250px;
    }
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    .sidebar-wrapper {
        position: absolute;
        z-index: 1000;
        height: 100%;
    }
    .d-none.sidebar-wrapper {
        display: none !important;
    }
    .table-responsive {
        font-size: 0.9rem;
    }
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Summary Cards */
.summary-card {
    transition: transform 0.2s;
}
.summary-card:hover {
    transform: translateY(-5px);
}
