/* Apply reset styles specifically for elements within the sidebar */
.sidebar-content,
.sidebar-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sidebar Background with Dark Theme */
.sidebar-content {
    background-color: #1C1C2E; /* Dark Purple/Black Background */
    color: #FFFFFF;
    width: 260px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 999;
    font-family: 'Roboto', Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.sidebar-content-transition {
    flex: 1;
}

.sidebar-header {
    padding: 5px;
}

.logo-container {
    text-align: center;
}

.logo-link {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* Ensure the container takes up the full height */
    width: 100%; /* Ensure the container takes up the full width */
}

.logo-link .logo {
    width: 115%;
    height: 120%;
}

.sidebar-title-box {
    border: 1px solid #6A1B9A; /* Dark Purple Border */
    color: #FFFFFF;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px;
    background-color: #1E1E2F; /* Slightly lighter dark background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: grid;
}

/* Button Styling with Silver Background and Glow */
.sidebar-title-box .sign-up,
.join-login {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    border: 1px solid #C0C0C0; /* Silver Border */
    border-radius: 5px;
    text-decoration: none;
    background-color: #C0C0C0; /* Silver Background */
    color: black; /* Dark Charcoal Text Color */
    font-weight: 700; /* Bold text for emphasis */
    font-size: 16px; /* Consistent, readable font size */
    text-shadow: 0 0 8px #FFFFFF, 0 0 12px #FFFFFF; /* Neon glow effect */
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effects */
.sidebar-title-box .sign-up:hover,
.join-login:hover {
    background-color: #A9A9A9; /* Slightly darker silver on hover */
    color: #FFFFFF; /* White text on hover for stronger contrast */
    text-shadow: 0 0 12px #FFFFFF, 0 0 20px #FFFFFF; /* Brighter glow on hover */
    box-shadow: 0 0 10px #C0C0C0, 0 0 20px #C0C0C0; /* Add button glow */
}

.sidebar-title-box p {
    margin: 5px 0;
}

.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

/* Sidebar Menu Items with Hover and Active States */
.menu-item {
    display: flex;
    padding: 10px 20px;
    text-decoration: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    vertical-align: middle;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.menu-item:hover,
.submenu-item:hover {
    background-color: #2A2A3D; /* Slightly lighter dark background */
    color: #E91E63; /* Bright Pink Text */
    border-radius: 4px;
    box-shadow: 0 0 10px #E91E63, 0 0 20px #E91E63;
}

.menu-item.active {
    background-color: #9C27B0; /* Dark Purple Active State */
    color: #FFFFFF;
    border-left: 4px solid #E91E63; /* Bright Pink Border */
    padding-left: 16px;
    box-shadow: 0 0 10px #9C27B0, 0 0 20px #9C27B0;
}

.menu-item i,
.menu-item img.icon {
    margin-right: 10px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.menu-item img.icon {
    vertical-align: middle;
}

.menu-item span {
    line-height: 1;
}

.submenu {
    display: none;
    flex-direction: column;
}

.submenu-item {
    padding: 10px 40px;
    text-decoration: none;
    color: white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #6b707e;
    text-align: center;
    margin-top: 20px;
    color: #b4bdbe;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
}

.social-links a {
    margin-right: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    border-radius: 50%;
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #E91E63, 0 0 30px #9C27B0; /* Pink/Purple Glow */
}

.social-links img {
    display: inline-block;
    border: none;
    background: none;
    border-radius: 50%;
}

.twitch-img,
.discord-img {
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    object-fit: contain;
    background-color: transparent;
}

/* Hamburger Menu styles */
.hamburger-menu {
    display: none;
    font-size: 30px;
    background-color: #9C27B0; /* Dark Purple */
    color: #FFF;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
}

/* Mobile styles */
@media (max-width: 820px) {
    .sidebar-content {
        width: 0;
        transition: 0.3s;
        overflow: hidden;
    }

    .sidebar-content.open {
        width: 260px;
    }

    .sidebar-main {
        display: none;
    }

    .sidebar-content.open .sidebar-main {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .hamburger-menu {
        display: block;
        font-size: 30px;
        background-color: #E91E63; /* Bright Pink */
        color: #1C1C2E; /* Dark Background */
        border: none;
        cursor: pointer;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1100;
        transition: background 0.3s, color 0.3s;
    }

    .hamburger-menu:hover {
        background-color: #9C27B0; /* Dark Purple Hover */
        color: #FFFFFF;
        box-shadow: 0 0 10px #9C27B0, 0 0 20px #9C27B0;
    }
}

/* Flex container for the notification icon and username */
.user-info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

/* Username styling */
.username-display {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-right: 10px; /* Space between username and mail icon */
    margin-bottom: 10px;
    text-shadow: 0 0 8px #FFD700, 0 0 12px #FFD700; /* Glowing effect */
    text-align: center;
}

.username-display:hover {
    color: #FFB800;
    text-shadow: 0 0 12px #FFB800, 0 0 16px #FFB800;
}

.notification-icon {
    position: relative;
}

.notification-icon .badge {
    position: absolute;
    top: -8px; /* Adjust this value to move the badge vertically */
    right: -20px; /* Move the badge more to the right */
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* Hover effect - turns the envelope icon white when hovered */
.notification-icon:hover .fa-envelope:before {
    color: gray; /* Changes icon color to white */
}

/* Styling for logged-in state */
.logged-in .action-container {
    display: flex;
    justify-content: center; /* Adjust spacing between buttons as needed */
    gap: 10px; /* Space between buttons */
}

/* Styling for logged-out state */
.logged-out .action-container {
    display: block; /* No flex, makes buttons align in a block layout */
    text-align: center; /* Center align the elements for a cleaner look */
}

.manage-account-link, .sign-up {
    display: inline-block;
    padding: 5px;
    border: 1px solid #C0C0C0; /* Silver Border */
    border-radius: 5px;
    text-decoration: none;
    background-color: #C0C0C0; /* Silver Background */
    color: black;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 8px #FFFFFF, 0 0 12px #FFFFFF;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 5px;
}

/* Hover Effects */
.manage-account-link:hover, .sign-up:hover {
    background-color: #A9A9A9; /* Slightly darker silver on hover */
    color: #FFFFFF;
    text-shadow: 0 0 12px #FFFFFF, 0 0 20px #FFFFFF;
    box-shadow: 0 0 10px #C0C0C0, 0 0 20px #C0C0C0;
}

.fa-envelope:before {
    position: relative;
    left: 35%;
    color: white;
}

/* Custom styles for the My Teams dropdown */
.custom-dropdown-toggle {
    display: inline-block;
    padding: 5px;
    border: 1px solid #C0C0C0; /* Silver Border */
    border-radius: 5px;
    text-decoration: none;
    background-color: #C0C0C0; /* Silver Background */
    color: black;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 8px #FFFFFF, 0 0 12px #FFFFFF;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 5px;
}

.custom-dropdown-toggle:focus {
    outline: none; /* Remove focus outline */
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #444;
    border-radius: 5px;
    margin-top: 5px;
    z-index: 1000;
}

.custom-dropdown-item {
    padding: 10px 15px; /* Padding for dropdown items */
    color: white; /* Text color */
    display: block; /* Ensure block display */
    text-decoration: none; /* Remove underline */
    font-size: 14px;
}

.custom-dropdown-item:hover {
    background-color: #555; /* Change background color on hover */
}

/* Display the dropdown menu when open */
.dropdown.show .custom-dropdown-menu {
    display: block;
}