/* General background */
body {
    background-color: #f4f8fd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: #212529;
    text-decoration: none;
}

i {
    margin-right: 10px;
}

.text-primary {
    color: #797275 !important;
}

.bg-primary {
    background-color: #e7f1ff !important;
    color: #087a38 !important;
}

/* Make the whole link a flexbox */
.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    /* text left, arrow right */
    align-items: center;
    /* vertical center */
}

/* Override Bootstrap's arrow positioning */
.dropdown-toggle::after {
    margin-left: auto !important;
    /* push arrow to the far right */
    float: right !important;
    /* disable float that breaks centering */
    margin-top: 5px;
}

/* Sidebar */
.sidebar-card {
    border-radius: 12px;
    background: #fff;
    padding: 15px;
}

.sidebar-card hr {
    margin: 1rem 0;
    border-color: #eee;
}

.sidebar-card ul li a {
    color: #333;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sidebar-card ul li a i {
    font-size: 16px;
    color: #6c757d;
}

.sidebar-card ul li a:hover {
    background: #f0f4fa;
    color: #797275;
}

.sidebar-card ul li a:hover i {
    color: #797275;
}

/* Active link */
.sidebar-card ul li a.active {
    background: #e7f1ff;
    font-weight: 600;
    color: #087a38;
}

.sidebar-card ul li a.active i {
    color: #797275;
}

/* Profile circle */
.profile-circle {
    width: 50px;
    height: 50px;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle-small {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 12px;
}

/* Cards in dashboard */
.dashboard-card {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.dashboard-card h6 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.dashboard-card h4 {
    font-size: 22px;
    font-weight: bold;
}

/* Footer */
footer {
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 30px;
}


/* Sidebar wrapper for toggle */
.sidebar-wrapper {
    transition: transform 0.3s ease-in-out;
}

/* Hide on mobile by default */
@media (max-width: 767px) {
    .sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 260px;
        background: #fff;
        z-index: 1050;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
    }

    .sidebar-wrapper.active {
        transform: translateX(0);
    }
}







.sidebar-wrapper.active {
    transform: translateX(0);
}

.dropdown-toggle {
    flex: 1;
    /* take full width */
}

.dropdown-toggle::after {
    margin-left: auto;
    /* push arrow to far right */
}