.scrollable-dropdown {
    max-height: 300px;
    /* Adjust the height as needed */
    overflow-y: auto;
    /* Enable vertical scrolling */
    scrollbar-width: thin;
    /* Firefox: thin scrollbar */
    scrollbar-color: #007bff #f1f1f1;
    /* Firefox: colors */
}

.scrollable-dropdown::-webkit-scrollbar {
    width: 8px;
    /* Chrome, Safari, Edge: scrollbar width */
}

.scrollable-dropdown::-webkit-scrollbar-thumb {
    background-color: #007bff;
    /* Scrollbar thumb color */
    border-radius: 4px;
    /* Rounded edges */
}

.scrollable-dropdown::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Scrollbar track color */
}

.custom-table {
    font-size: 14px;
    /* Adjust to your desired font size */
}

/* Sidebar styling for larger screens */
.sidebar {
    height: 100vh;
    width: 250px;
    background-color: #343a40;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

.sidebar a:hover {
    background-color: #495057;
}

.content {
    margin-left: 250px;
    padding: 20px;
}

/* Hide the fixed sidebar on small screens */
@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
    }
}

/* Navbar */
.site-navbar {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

/* Home page dashboard styles */
.text-gain {
    color: #198754;
    font-weight: 600;
}

.text-loss {
    color: #dc3545;
    font-weight: 600;
}

.dashboard-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease-in-out;
}

.dashboard-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.card-gainers .card-header {
    border-left: 4px solid #198754;
}

.card-losers .card-header {
    border-left: 4px solid #dc3545;
}

.card-investors .card-header {
    border-left: 4px solid #0d6efd;
}

.card-market-value .card-header {
    border-left: 4px solid #fd7e14;
}

.card-categories .card-header {
    border-left: 4px solid #20c997;
}

.dashboard-card .card-header {
    background-color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.dashboard-card .card-header i {
    margin-right: 0.4rem;
}

.dashboard-card .table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.dashboard-card .table td {
    vertical-align: middle;
}

.dashboard-card .table td a {
    font-weight: 600;
    text-decoration: none;
}

.dashboard-card .table td a:hover {
    text-decoration: underline;
}

.hero-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}

.hero-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.disclaimer-section {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
    margin-top: 1rem;
}

/* Fund details page */
.fund-code-badge {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

.card-fund-info .card-header {
    border-left: 4px solid #0d6efd;
}

.card-returns .card-header {
    border-left: 4px solid #198754;
}

.risk-indicator {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1.6rem;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.risk-indicator.risk-1,
.risk-indicator.risk-2 {
    background-color: #198754;
}

.risk-indicator.risk-3 {
    background-color: #ffc107;
    color: #212529;
}

.risk-indicator.risk-4,
.risk-indicator.risk-5 {
    background-color: #fd7e14;
}

.risk-indicator.risk-6,
.risk-indicator.risk-7 {
    background-color: #dc3545;
}