/* Sidebar Styles */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    z-index: 1111;
}
.sidebar:hover {
    width: 200px;
}
.sidebar img {
    width: 30px;
}
.sidebar a {
    width: 100%;
    display: flex;
    align-items: center;
    color: #343434;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}
.sidebar a img {
    display: block;
    margin-right: 8px;
    margin-left: 15px;
}
.sidebar a span {
    display: none;
    white-space: nowrap;
}
.sidebar:hover a span {
    display: inline;
}
.sidebar a.active {
    background-color: #d2d2d2;
    border: 1px solid #c7c7c7;
}
.sidebar a:hover {
    background-color: #ffffff;
}
.sidebar .profile-section {
    margin-top: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 10px;
    cursor: pointer;
}
.sidebar .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
.sidebar .profile-dropdown-icon {
    font-size: 16px;
    color: rgb(51, 51, 51);
    margin-left: 5px;
    display: flex;
    align-items: center;
}
#username {
    display: none;
    margin-left: 10px;
    white-space: nowrap;
}
.sidebar:hover #username {
    display: inline;
}
.profile-dropdown {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 60px;
    width: 150px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1100;
    padding: 10px;
}
.profile-dropdown a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    position: relative;
    box-sizing: border-box; /* Ensures padding doesn't exceed parent width */
    width: 100%; /* Ensures the link takes the full width of the dropdown */
    overflow: hidden; /* Prevents overflow if content is too large */
}
.profile-dropdown a:last-child {
    border-bottom: none;
}
.profile-dropdown a:hover {
    background-color: #f8f9fa;
    color: black;
}

/* Notification Badge Styles */
.notification-badge {
    background-color: #d90000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Red Pulse Effect */
.red-pulse {
    position: relative;
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
}

/* Topbar Styles */
.topbar {
    display: none;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.topbar img {
    width: 40px;
}
.burger-menu-icon {
    font-size: 30px;
    cursor: pointer;
    margin-right: 30px;
}
.menu-dropdown {
    display: none;
    position: fixed;
    top: 50px;
    right: 10px;
    width: 200px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1100;
    padding: 10px;
}
.menu-dropdown a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.menu-dropdown a:hover {
    background-color: #f8f9fa;
}

#sidebar-logo {
    margin-bottom: 15px;
    width: 45px;
}

#add-role-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .topbar {
        display: flex;
    }
}
