.sidebar-container {
    width: 250px;
    height: 100%;

    display: flex;
    flex-direction: column;

    position: relative;
    z-index: 2000000;

    border-right: 1px solid rgb(228, 228, 228);

    transition: width 0.25s ease;

    /* height: 100%; */
}

.mini-sidebar {
    width: 50px;

    .icon-label,
    .chats-label-container,
    .chats-container,
    .account-right-section,
    .sidebar-icon-container,
    .upgrade-button{
        display: none;
    }

    .upgrade-icon-container {
        display: flex;
    }

    .sidebar-footer {
        border-top: 1px solid transparent;
        height: auto;
    }

    .footer-content {
        padding : 6px 0px 6px 5px;
    }

    .footer-content:hover {
        background-color: rgb(230, 230, 230);
    }

    .open-sidebar-button {
        display: flex;
        cursor: e-resize;
        pointer-events: auto;

        transition: opacity 0.1s;
    }

    .open-sidebar-button:hover {
        opacity: 1;
    }
}


.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;

    background-color: var(--sidebar-bg);

    position: relative;
    overflow-y: auto;
    /* overflow-x: hidden;  */
    /* position: relative; */
}


.sidebar-content::-webkit-scrollbar {
    background: rgba(21, 187, 242, 0);
    width: 7px;
    visibility: hidden;
}

.sidebar-content:hover::-webkit-scrollbar {
    visibility: visible;
}

.sidebar-content::-webkit-scrollbar-thumb{
    background-color: rgb(169, 169, 169);
    border-radius: 30px;
    visibility: hidden;
}

.sidebar-content:hover::-webkit-scrollbar-thumb {
    visibility: visible;
}



.sidebar-header {
    background-color: var(--sidebar-bg);
    width: 100%;
    height: 55px;

    position: sticky;
    top: 0;
    z-index: 1000;

    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;

    padding: 16px 10px 16px 8px;
    background-color: var(--sidebar-bg);

    position: relative;
}

.chatgpt-logo-container ,
.sidebar-icon-container {
    width: 34px;
    height: 34px;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: background-color 0.15s;
}

.chatgpt-logo-container:hover,
.sidebar-icon-container:hover {
    background-color: rgb(226, 228, 228);
}

.logo {
    fill: black;
}

.sidebar-icon-container {
    cursor: w-resize;
}
.sidebar-icon {
    fill: rgb(105, 105, 105);
}

.open-sidebar-button {
    display: flex;
    position: fixed;
    opacity: 0;
    pointer-events: none;
}


/* menu options */
.menu-important-options {
    position: sticky;
    top: 55px;
    z-index: 10;

    padding: 8px 4px 0px 4px;
    background-color: var(--sidebar-bg);
}

@media (max-height: 649px) {
    .menu-important-options {
        position: static;
    }
}


/* extra options */
.extra-options {
    padding: 0px 4px;
    background-color: var(--sidebar-bg);

    margin-bottom: 24px;
}

.menu-option,
.chat-info-container {
    display: flex;
    align-items: center;

    padding: 9px 10px;
    
    border-radius: 9px;
    cursor: pointer;

    transition: background-color 0.2s;
}

.menu-option:hover,
.chat-info-container:hover {
    background-color: rgb(231, 232, 233);

}

.chat-info-container {
    position : relative;
}



.option-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.option-icon {
    height: 20px;
    width: 20px;
}

.icon-label {
    font-size: 14px;
    font-weight: 350;
}


/* chats and history */
.chats-history{
    flex: 1;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chats-label-container {
    display: flex;
    align-items: center;

    padding-left: 16px;
    cursor: pointer;
}

.showing-chat {
    background-color: rgb(231, 232, 233);
}

.your-chats-label {
    font-size: 14px;
    font-weight: 350;
    color: rgb(111, 111, 111);
    
    margin-right: 2px;
    
}

.chats-label-container:hover {
    .arrow-icon-container {
        opacity: 1;
    }
}

.arrow-icon-container {
    display: flex;
    align-items: center;

    opacity: 0;
    transition: opacity 0.2s;
}

.arrow-icon-container svg {
    fill: rgb(143, 143, 143);
    height: 14px;
    width: 14px;
}

.arrow-icon-hidden {
    height: 13.5px;
    margin-left: -1px;
    fill: rgb(111, 111, 111);
    display: none;
}

.arrow-icon-show {
    width: 14px;
    fill: rgb(111, 111, 111);
}

.chats-container {
    padding: 10px 6px;
}

.hide-chat-history {
    display: none;
}

.chat-info-container {
    justify-content: space-between;
}

.chat-info-container:hover {
    .more-icon-container {
        opacity: 1;
    }
}

.more-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.1s;
}


.more-icon {
    width: 20px;
}

.chat-title {
    font-size: 14px;
    font-weight: 350;

    width: 190px;
    overflow: hidden;
    white-space: nowrap;
    /* text-overflow: ellipsis; */
    text-overflow: ellipsis;

}

.chat-title::-webkit-scrollbar {
    display: none;
}

.chat-title:focus {
    outline: none;
}



/* footer sidebar */

.sidebar-footer {
    background-color: var(--sidebar-bg);
    width: 100%;
    height: 68px;
    position: sticky;
    bottom: 0;
    z-index: 1000;

    flex-shrink: 0;

    padding: 8px 6px;
    border-top: 1px solid rgb(208, 207, 207);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    
    border-radius: 8px;
    padding: 8px 8px;
    cursor: pointer;

    transition: background-color 0.2s;

}

.footer-content:hover {
    background-color: rgb(234, 234, 234);

}

.upgrade-icon-container {
    display: none;
    align-items: center;
    justify-content: center;

    padding: 8px 9px;
    border-radius: 6px;
    cursor: pointer;
}

.upgrade-icon-container:hover {
    background-color:rgb(234, 234, 234);
}

.account-section {
    display: flex;
    align-items: center;
}


.account-left-section {
    display: flex;
    align-items: center;
    justify-content: center;

}

.account-right-section {
    margin-left: 7px;
}

.profile-pic-container {
    background-color: rgb(204, 90, 219);
    width: 26px;
    height: 26px;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 14px;
    font-weight: 350;

    margin-bottom: 3px;
}

.plan-label {
    font-size: 12px;
    font-weight: 350;
    color: gray;
}

.upgrade-button {
    border: 1px solid rgb(200, 198, 198);
    padding: 5px 9px;
    border-radius: 20px;

    background-color: white;

    font-size: 13px;
    font-weight: 350;
    cursor: pointer;

    transition: backgroud-color 0.2s;
}

.upgrade-button:hover {
    background-color: rgb(244, 244, 244);

}


@media (max-width: 700px) {
    .sidebar-container {
        display: none;
    }
}


/* action card */
.more-actions-card {
    position: absolute;
    z-index: 2000001;

    width: auto;
    height: auto;
    background-color: rgb(255, 255, 255);

    border-radius: 18px;
    border: 1px solid rgb(219, 219, 219);
    box-shadow: 2px 4px 15px rgba(185, 185, 185, 0.323);
    padding: 8px;

    display: none;
    flex-direction: column;
    align-items: center;

    overflow-y: auto;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    overflow-y: auto;
}

.card-content::-webkit-scrollbar {
    background-color: transparent;
    width: 8px;
}

.card-content::-webkit-scrollbar-thumb {
    background-color: rgb(162, 162, 162);
    border-radius: 10px;
}


.edit-actions {
    padding-bottom: 6px;
    width: 100%;
}

.action-button-container {
    display: flex;
    align-items: center;

    width: 100%;

    
    border-radius: 12px;
    padding: 8px 10px;

    cursor: pointer;
}

.action-button-container:hover {
    background-color: rgb(243, 243, 243);

}

.action-icon-container {
    display: flex;
    align-items: center;
    width: 24px;
    margin-right: 8px;
}

.share-icon {
    padding-bottom: 1px;
}

.trash-icon {
    stroke: rgb(241, 44, 18);
}

.action-label {
    font-size: 14px;
    font-weight: 350;
}

.divider {
    width: 164px;
    border: 0.8px solid rgb(199, 199, 199);
}

.storage-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    padding-top: 8px;
}

.delete-button {
    color: rgb(241, 44, 18);
}

.delete-button:hover {
    background-color: rgb(253, 239, 238);
}


/* delete confirmation pop pop */

.delete-confirmation-container {
    background-color: rgba(245, 245, 245, 0.6);
    backdrop-filter: blur(2px);

    position: fixed;
    z-index: 500000000;
    right: 0px;
    top: 0px;
    left: 0px;
    bottom: 0px;

    display: flex;
    align-items: center;
    justify-content: center;

    display: none;
}

.delete-confirmation {
    background-color: white;

    display: flex;
    flex-direction: column;

    margin-bottom: 80px;

    width: 470px;

    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgb(216, 216, 216);

    box-shadow: 0px 2px 14px rgba(213, 213, 213, 0.805);
}

.delete-note {
    font-size: 14px;
    font-weight: 350;
}

.confirm-buttons {
    margin-left: auto;
}

.delete-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.chat-details {
    font-size: 16px;
    color: rgb(40, 40, 40);
    margin-bottom: 8px;
}

.title-bold {
    font-weight: 550;
}

.delete-note {
    margin-bottom: 14px;
    color: gray;
}

.delete-note-link {
    text-decoration: underline;
    cursor: pointer;
}

.cancel-button,
.primary-delete-button {
    font-size: 14px;
    font-weight: 300;

    padding : 9px 14px;
    border-radius: 24px;

    border: 1px solid rgb(213, 213, 213);

    background-color: white;
    color: rgb(29, 29, 29);

    cursor: pointer;

    transition: background-color 0.15s;

}

.cancel-button {
    padding-top: 10px;
    padding-bottom: 10px;
}

.cancel-button:hover {
    background-color: rgb(247, 246, 246);
}

.primary-delete-button {
    background-color: rgb(227, 29, 29);
    color: white;
    border : 2px solid rgb(17, 80, 214);
    margin-left: 8px;
}

.primary-delete-button:hover {
    background-color: rgb(213, 26, 26);
}


.sidebar-tool-tip , 
.menu-tool-tip {
    z-index: 30000000;
}










