@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: black;
}

/* Chat Section (Partial) Styles (Sayan) */
.chat-main {
    background: radial-gradient(
            circle at 20% 30%,
            rgba(59, 130, 246, 0.25) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(192, 38, 211, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(147, 51, 234, 0.35) 0%,
            transparent 50%
        ),
        #ffffff;
    min-height: 100vh;
}

.chat-body {
    max-width: 120rem;
    margin: 0 auto;
    width: 100%;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav li {
    list-style: none;
}

.nav li a {
    text-decoration: none;
    color: #666666;
    font-weight: 700;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.chat-container {
    display: flex;
    height: 100%;
    background-color: #eaeaea;
    display: flex;
    border-radius: 1rem;
    padding: 0.375rem;
    overflow: hidden;
    /* align-items: center; */
    /* gap: 1.875rem; */
    /* flex-wrap: wrap; */
}

.chat-sidebar {
    height: 75vh;
    width: 18.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 0.625rem 1rem 1rem 0.625rem; /* -(chat-container padding) 0 0 -(chat-container padding) */
}

.Sentperson-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background-color: #e4ffe4;
    padding: 0.625rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.Draftperson-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background-color: #ebebeb;
    padding: 0.625rem;
    border: 2px solid #686868;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.Seenperson-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background-color: #ffffff;
    padding: 0.625rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.Unreadperson-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background-color: #fff1f1;
    border: 2px solid #8414a6;
    padding: 0.625rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.chat-person {
    display: flex;
    gap: 0.875rem;
    align-items: center;
}

.chat-person img {
    width: 3.25rem;
    border-radius: 50%;
    border: 0.1rem solid #000000;
}

/* .person-details {

} */

.person-name {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 100%;
}

.chat-status {
    color: #06a30c;
}
.Draftchat-status {
    color: #9f9f9f;
}
.Unreadchat-status {
    color: #ff0000;
}

.person-skills {
    font-size: 0.75rem;
}

.chatbox-body {
    display: flex;
    flex-direction: column;
    border-left: 0.125rem solid #d9d9d9;
    width: 100%;
    height: 79vh;
}

.chat-topbar {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    padding: 1rem 0.625rem 0.625rem 1rem; /* 0 -(chat-container padding) -(chat-container padding) 0 */
}

.chat-topbar img {
    width: 3.25rem;
    border-radius: 50%;
    border: 0.1rem solid #000000;
}

.chatbox {
    position: relative;
    background-image: url("../assets/chatbox-bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0 -0.375rem 0.075rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chatbox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 0;
    border-top: 0.125rem solid #d9d9d9;
}

/* Rupam CSS*/
.chatbox-messagesContainer {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.625rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
}
.chat-message {
    max-width: 60%;
    padding: 0.625rem 1rem;
    border-radius: 1.875rem;
    font-size: 1.02rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
    display: inline-block;
    white-space: normal;
}
.chat-message.left {
    background-color: #9e9e9e;
    color: #ffffff;
    align-self: flex-start;
    text-align: left;
    margin-right: 0;
}
.chat-message.right {
    background-color: #51b9ff;
    color: #ffffff;
    align-self: flex-end;
    text-align: left;
    margin-right: 0;
}
.messageBar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    background-color: #ffffff;
    border-radius: 5.5rem;
    border: 1px solid #8b8b8b;
    padding-left: 1.375rem;
    padding-right: 0.9375rem;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
}
.messageInput {
    all: unset;
    padding: 0.3rem;
    display: flex;
    align-self: center;
    color: #8b8b8b;
    font-size: 1.019rem;
    border: none;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
}
.sendButton {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive styles */
@media (max-width: 75rem) {
    .chat-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 62.5rem) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        justify-content: center;
    }
}

@media (max-width: 50rem) {
}
