body {
    background-color: #f8f9fa;
    font-size: .875rem;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 56px; /* Push it down below the navbar */
    }
}

.sidebar-sticky {
    /* position: relative;
    top: 0; */
    /* Use 100% height of the parent (.sidebar) instead of viewport height (vh)
       to contain the scrollbar within the sidebar itself. */
    height: 100%;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #9c2ca0ff;;
}

.sidebar .nav-link .fa-fw {
    color: #e12da8;
}

.sidebar .nav-link:hover .fa-fw,
.sidebar .nav-link.active .fa-fw {
    color: inherit;
}

.sidebar .nav-link.active {
    color: #0d6efd; /* Bootstrap primary color */
    background-color: #9c2ca0ff;; /* A light blue background for active link */
    border-right: 3px solid #0d6efd; /* A solid right border to make it more prominent */
}

/* Make the icon on the active link blue */
.sidebar .nav-link.active .fa-fw {
    color: #0d6efd;
}

.sidebar .nav-link:hover {
    background-color: #f0f2f5; /* A very light grey for hover effect */
    color: #0d6efd; /* Bootstrap primary color for text on hover */
}


.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color:#9c2ca0ff;;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    left: 1rem;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Styles for public pages (login, register) */
.public-page-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    max-width: 400px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group-text {
    width: 42px;
    justify-content: center;
}
