body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: white;
    margin: 0;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.rainbow {
    height: 100vh;
    width: 0;
    top: 0;
    position: fixed;
    transform: rotate(10deg);
    transform-origin: top right;
    animation: slide 45s linear infinite;
    box-shadow: -130px 0 80px 40px white,
                -50px 0 50px 25px rgb(255, 255, 255),
                0 0 50px 25px rgb(255, 255, 255),
                50px 0 50px 25px rgb(255, 255, 255),
                130px 0 80px 40px white;
    z-index: -2;
}

@keyframes slide {
    from {
        right: -25vw;
    }
    to {
        right: 125vw;
    }
}

.h {
    box-shadow: 0 0 50vh 40vh white;
    width: 100vw;
    height: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: -2;
    opacity: 0.5;
}

.v {
    box-shadow: 0 0 35vw 25vw white;
    width: 0;
    height: 100vh;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: -2;
    opacity: 0.5;
}

#wrapper {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin-top: 60px;
}

.sidebar-nav li {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.sidebar-nav li a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: color 0.3 ease;
}

.sidebar-nav .sidebar-brand {
    margin-bottom: 10px;
}

.sidebar-nav .sidebar-brand a {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}


#page-content-wrapper {
    margin-left: 0;
    padding: 20px;
    width: calc(100% - 250px);
    background-color: rgb(15, 15, 15, 0.95);
    transition: transform 0.3s ease;
    overflow-y: auto;
    height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#wrapper:not(.toggled) #page-content-wrapper {
    width: 100%;
}

.container-fluid {
    margin-top: 70px;
}

#wrapper.toggled #page-content-wrapper {
    transform: translateX(250px);
}

#menu-toggle {
    margin: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar {
    position: fixed;
    width: 100%;
    height: 60px;
    z-index: 1000;
    transition: transform 0.3s ease;
background: rgba(26, 26, 26, 0.9);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(0, 0, 0, 0.3);
}

#wrapper:not(.toggled) #menu-toggle {
    opacity: 1;
}

#sidebar-wrapper {
    width: 250px;
    color: white;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transform: translateX(-250px);
    transition: transform 0.3s ease;
    z-index: 1000;
background: rgba(0, 0, 0, 0.86);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(0, 0, 0, 0.3);
}

#sidebar-wrapper > div {
    display: flex;
    align-items: center;
    margin: 10px;
    flex-wrap: wrap;
}

#sidebar-wrapper img {
    width: auto;
    height: auto;
    max-width: 100px;
    max-height: 100px;
    margin-right: 10px;
    object-fit: cover;
}

#sidebar-wrapper div a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 20px;
    background-color: rgba(48, 48, 48, 0.8);
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    height: auto;
    min-height: 40px;
    max-width: calc(100% - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

#sidebar-wrapper div a:hover {
    background-color: rgba(78, 78, 78, 0.8);
}

#wrapper.toggled #sidebar-wrapper {
    transform: translateX(0);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    list-style: none;
    padding-left: 20px;
}

.submenu.active {
    max-height: 500px;
    margin-top: 10px;
}

.submenu li {
    padding: 8px 15px;
    border-bottom: none;
    opacity: 0,8;
    transition: opacity 0.3 ease;
}

.submenu li:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);
}

.submenu li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-toggle::after {
    content: '▼';
    margin-left: 5px;
    display: inline-block;
    font-size: 10px;
}

.dropdown-toggle.active::after {
    content: '▲';
}

.button {
    background-color: rgba(20, 20, 20, 0.9);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(31, 31, 31, 0.1);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button {
    background-color: rgba(20, 20, 20, 0.9);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(31, 31, 31, 0.1);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.button:hover {
    background-color: rgba(41, 41, 41, 0.9);
}

@media (max-width: 768px) {
    #sidebar-wrapper {
        width: 100%;
        transform: translateX(-100%);
    }

    #wrapper.toggled #sidebar-wrapper {
        transform: translateX(0);
    }

    #page-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }

    #menu-toggle {
        opacity: 1;
    }

    .navbar {
        transform: none !important;
        width: 100%;
    }

    #sidebar-wrapper img {
        max-width: 60px;
        max-height: 60px;
    }

    #sidebar-wrapper div a {
        font-size: 14px;
        padding: 6px 10px;
        max-width: calc(100% - 80px);
    }

    .submenu li {
        padding: 6px 10px;
    }
}