body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}


#contacts-list {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
}


.contacts-mobile-toggle-btn{
    display: block;
    background: black;
    height: 50px;
    width: 50px;
    border-radius: 100%;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.contacts{
    display: block;
    bottom: 79px;
    position: fixed;
    width: calc(100% - 20px);
    background: white;
    right: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 8px;
}


.contacts-header{
    padding: 10px 30px;
    background: #1b1b1b;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 30px;
    margin-top: -20px
}

.contacts-header-profile-photo{
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background: white;
    margin-right: 10px;
    overflow: hidden;
}

.contacts-header-profile-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacts-header-title{
    display: flex;
    align-items: center;
    color: white;
    width: 100%;
    margin-bottom: 15px;
}

.contacts-header-tabs{
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    background: #383838;
    border-radius: 10px;
}

.contacts-header-tab{
    width: 50%;
}

.contacts-header-tab-btn{
    width: 100%;
    background: none;
    font-weight: 600;
    color: white;
    border-radius: 10px;
    padding: 10px;
    border: 0;
}

.contacts-header-tab-btn.active{
    background: #ffffff;
    color: #1b1b1b;
}

.contacts-desktop-toggle-btn {
    display: none;
}


@media (min-width: 768px) {
    #contacts-list {
        bottom: 0;
        width: 360px;
        background: white;
        border: 1px solid #ccc;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: height 0.3s ease;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    .contacts-header-title{
        margin-bottom: 0;
    }

    .contacts-header {
        color: #fff;
        background: #000000;
        border-radius: 7px 7px 0 0;
        font-size: 13.3px;
        font-weight: 700;
        margin: 0;
        padding: 12px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
}

/* #contacts-header {
    color: white;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
} */

.contacts-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.section-title {
    padding: 10px 20px;
    font-size: 12px;
    color: #65676B;
    font-weight: 600;
    background: #f5f6f7;
    text-transform: uppercase;
}

.group-container {
    display: flex;
    margin: 5px 0;
    padding: 5px 0;
    cursor: pointer;
    position: relative;
}

.group-container:hover {
    background-color: #e7ecee;
}

.group-photo {
    height: 25px;
    width: 25px;
    border: #fff 1px solid;
    border-radius: 100%;
    background-size: cover;
    margin-left: 10px;
    margin-right: 10px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    background-size: cover;
}

.contact-item-wrapper{
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    margin: 5px 0;
    padding: 5px 0;
    cursor: pointer;
    position: relative;
    background: #f3f5f7;
    border-radius: 10px;
    width: 100%;
}

.contact-name {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

img.contact-photo {
    height: 30px;
    width: 30px;
    border: #fff 1px solid;
    border-radius: 100%;
    margin-left: 10px;
    margin-right: 10px;
}

.separator {
    height: 1px;
    background: #E4E6EB;
    margin: 8px 0;
}

/* Status indicator styles */
.status-indicator {
    display: none;
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    bottom: 10px;
    left: 45px;
    border: 2px solid white;
}

.status-indicator.online {
    background-color: #31a24c;
}

.chat-header .status-indicator {
    position: static;
    display: inline-block;
    margin-left: 8px;
    width: 8px;
    height: 8px;
}

/* Chat tabs styles */
#chat-tabs {
    position: fixed;
    bottom: 0;
    right: 400px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.chat-window {
    width: 300px;
    height: 400px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
}


@media (min-width: 768px) {

    .contacts{
        max-width: 360px
    }

    .mobile-chat {
        position: fixed;
        left: 10px;
        bottom: 0;
        width: calc(100% - 90px);
        height: 50vh;
        z-index: 9999;
        background: white;
    }
/* 
    .mobile-chat .chat-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .mobile-chat .chat-content {
        height: calc(100% - 50px);
    } */
}

.chat-header {
    background: #000000;
    color: white;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header .title {
    font-weight: bold;
}

.chat-header .actions {
    display: flex;
    gap: 10px;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 5px;
}

.chat-content {
    flex-grow: 1;
    overflow: hidden;
}

.minimized {
    height: 40px;
}

.minimized .chat-content {
    display: none;
}

/* Scrollbar styling */
.contacts-wrapper::-webkit-scrollbar {
    width: 6px;
}

.contacts-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.contacts-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.contacts-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}