﻿
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");


.sidepanel {
    width: 0;
    position: fixed;
    z-index: 1999;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #f3f2ff;
  
    /*background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);*/
    /* background-image: linear-gradient(to right, #434343 0%, black 100%);*/
    /*background-image: linear-gradient( 135deg, #97ABFF 10%, #123597 100%);*/
    /*background-image: linear-gradient(to top, #09203f 0%, #537895 100%);*/
    /*background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);*/
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

    .sidepanel a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-weight: 500;
        font-size: 13px;
        color: #2f2d2d;
        display: block;
        transition: background-color 0.10s ease, color 0.10s ease, opacity 0.10s ease, transform 0.10s cubic-bezier(.65,.05,.36,1), box-shadow 0.10s ease;
    }

        .sidepanel a:hover {
            color: white;
            background-color: #6D67E4;
            opacity: 0.8;
            transform: scale(1.08) translateX(2px);
            box-shadow: 0 6px 28px -6px rgba(109,103,228,0.25);
        }

    .sidepanel .endbtn {
        bottom: 0;
        position: relative;
        width: 100%;
        background-color: #6D67E4;
        align-content: start;
        align-items: start;
    }

.endbtn {
    font-size: 13px;
    cursor: pointer;
    background-color: #113A5D;
    color: white;
    padding: 5px 10px;
    border: none;
}

.sidepanel .closebtn {
    text-align: center;
    align-self: center;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 26px;
    box-shadow:none !important;
}

    .sidepanel .closebtn:hover {
        color: #f54d85; /* Change to the desired hover color */
        cursor: pointer; /* Ensure it changes to a pointer to indicate it's clickable */
        background-color: transparent;
    }

.openbtn {
    font-size: 15px;
    cursor: pointer;
    background-color: #6D67E4;
    color: white;
    padding: 5px 10px;
    border: none;
}

    .openbtn:hover {
        background-color: #444;
    }
/* Dropdown container */
.sidepanel .dropdown {
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    background-color: #fbfbfb;
    padding-left: 30px;
    transition: max-height 0.3s ease-out; /* Smooth toggle animation */
}

    /* Visible dropdown when active */
    .sidepanel .dropdown.active {
        max-height: 500px; /* Set to a value larger than expected content */
    }

    /* Dropdown item styling */
    .sidepanel .dropdown a {
        font-size: 12px;
        padding: 6px 8px;
        color: #444;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s, color 0.3s; /* Smooth hover effect */
    }

        .sidepanel .dropdown a:hover {
            color: white;
            background-color: #6D67E4;
        }

/* Toggle button for dropdown */
.sidepanel .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 32px;
    font-size: 13px;
    font-weight: 500;
    color: #2f2d2d;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* Smooth hover effect */
}

    .sidepanel .dropdown-toggle:hover {
        background-color: #6D67E4;
        color: #fff;
    }
/* Solid border */
hr.solid {
    margin-top: 0px;
    margin-bottom: 0;
    border-top: 1px solid #d2d0f8;
}
/* Responsive design */
@media (max-width: 768px) {
    .sidepanel {
        width: 0;
        padding-top: 50px;
    }

        .sidepanel a {
            font-size: 13px;
        }

        .sidepanel .dropdown-toggle {
            font-size: 13px;
        }
}
