/* Sidebar Styling */
.sidebar-expanded {
    width: 16rem;
    background-color: #1a202c; /* Darker background for a sleek look */
}

.sidebar-collapsed {
    width: 4.3rem;
    background-color: #1a202c;
}

/* Sidebar Item Styling */
.sidebar-item {
    transition: all 0.3s ease;
    color: #cbd5e0; /* Light gray text color */
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-icon {
    color: #a0aec0;
    font-size: 22px;
    margin-left: 5px;
}

/* Sidebar Toggle Button */
#sidebarToggle {
    background-color: #3182ce; /* Modern blue shade */
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: transform 0.3s ease;
    color: #e2e8f0;
    margin-left: 2px;
}

#sidebarToggle:hover {
    background-color: #2b6cb0;
}

/* Enhanced Active Tab Styling */
.active-tab {
    background-color: #2d3748;
    border-left: 4px solid #63b3ed;
    color: #edf2f7;
    font-weight: bold;
    position: relative;
    height: 40px;
    border-radius: 0.375rem; /* Rounded corners for active tab */
    transition: background-color 0.3s ease;
}

/* Enhanced Active Tab Styling */
.active-tab-mobile {
    background-color: #b3bbc9;
    border-left: 4px solid #494e52;
    color: #252525;
    font-weight: bold;
    position: relative;
    height: 40px;
    border-radius: 0.375rem; /* Rounded corners for active tab */
    transition: background-color 0.3s ease;
}

.active-tab .sidebar-icon {
    color: #63b3ed;
}

.active-tab:hover {
    background-color: #4a5568;
}

/* Sidebar Header Styling */
#sidebarLogo {
    font-weight: 700;
    font-size: 1.75rem;
    color: #edf2f7;
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Added spacing for a modern touch */
}

/* Active Tab Indicator */
.active-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #63b3ed; /* Vertical bar indicator */
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar-expanded {
        width: 80%; /* Adjust width to be slightly less than full screen */
        position: fixed; /* Use fixed position for better control */
        z-index: 10;
        height: 100vh; /* Full height to cover the screen */
        background-color: #1a202c; /* Ensure background covers the screen */
    }

    .sidebar-collapsed {
        width: 80%; /* Adjust width to be slightly less than full screen */
        position: fixed;
        z-index: 10;
        height: 100vh;
        background-color: #1a202c;
    }

    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    #sidebar.expanded {
        transform: translateX(0);
    }

    .content-area {
        padding: 1rem;
        margin-left: 0; /* Reset margin when sidebar is collapsed */
    }
}
/* Navbar Styling */
header {
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="text"] {
    background-color: #f3f4f6;
    color: #1f2937;
    border-color: #e5e7eb;
}

input[type="text"]::placeholder {
    color: #9ca3af;
}

/* User Menu Styling */
#userMenu {
    background-color: #ffffff;
    color: #1f2937;
    z-index: 99;
}

#userMenu a:hover {
    background-color: #f3f4f6;
}

/* Loader CSS */
.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Smooth fade-in and fade-out */
#loader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader.show {
    opacity: 1;
    visibility: visible;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar Styles for Light Theme */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e0; /* Light gray for the scrollbar thumb */
    border-radius: 4px;
    border: 2px solid #edf2f7; /* Slightly darker border for contrast */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background-color: #f7fafc; /* Very light background for the track */
}

/* Firefox scrollbar styles */
.custom-scrollbar {
    scrollbar-color: #cbd5e0 #f7fafc; /* Thumb and track color */
    scrollbar-width: thin;
}

/* Popover styles */
.truncate-hover {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
}

.popup {
    display: none;
    position: absolute;
    max-width: 300px;
    background-color: #1a202c; /* Darker background for better contrast */
    border: 1px solid #2d3748; /* Darker border for better definition */
    padding: 0.75rem; /* Tailwind's p-3 */
    border-radius: 0.5rem; /* Tailwind's rounded-lg */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3), /* Deeper shadow for a sharper look */
                0 6px 10px rgba(0, 0, 0, 0.2); /* Softer shadow for better depth */
    z-index: 1000;
    white-space: normal; /* Allow text to wrap */
    overflow-wrap: break-word; /* Ensure text breaks to avoid overflow */
    font-size: 1rem; /* Slightly larger text for better readability */
    color: #edf2f7; /* Lighter text for sharper contrast */
    line-height: 1.75rem; /* Slightly increased line height for better readability */
}