* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;

    display: grid;
    grid-template-rows: 60px 1fr 35px;

    font-family: Arial, sans-serif;

    background-color: #f4f6f8;
    color: #222;
}


/* ================= HEADER ================= */

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

    background-color: #111827;
    color: white;
}

header h1 {
    font-size: 20px;
    font-weight: 500;
}


/* ================= MAIN ================= */

main {
    display: grid;

    grid-template-columns: 280px 1fr;

    min-height: 0;
}


/* ================= SIDEBAR ================= */

#ichats {
    background-color: #1f2937;
    color: white;

    padding: 25px 20px;

    overflow-y: auto;
}


/* ================= PERSONA ================= */

#persona {
    text-align: center;

    padding-bottom: 25px;

    border-bottom: 1px solid #374151;
}


.persona-photo {
    width: 110px;
    height: 110px;

    margin: 0 auto 15px;

    border-radius: 50%;

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

    /* background-color: #374151; */

    /* background-image: url(.persona-photo.jpeg);
    background-size: cover;
    background-position: center; */

    border: 3px solid #6b7280;

    overflow: hidden;
}


.persona-photo img {
    /* font-size: 13px; */
    /* color: #9ca3af; */
    
    background-image: url(.persona-photo.jpeg);
    background-size: cover;
    background-position: center;

    width: 180px;

}


#persona h2 {
    font-size: 22px;
    margin-bottom: 8px;
}


#persona p {
    font-size: 14px;

    line-height: 1.5;

    color: #9ca3af;
}


/* ================= CHAT LIST ================= */

.chat-list {
    margin-top: 25px;
}


.chat-list h3 {
    font-size: 13px;

    text-transform: uppercase;

    color: #9ca3af;

    margin-bottom: 12px;
}


.chat-item {
    width: 100%;

    padding: 12px;

    margin-bottom: 7px;

    border: none;
    border-radius: 7px;

    background-color: transparent;

    color: #d1d5db;

    text-align: left;

    cursor: pointer;

    transition: 0.2s;
}


.chat-item:hover {
    background-color: #374151;
    color: white;
}


/* ================= CHAT ================= */

#chat {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-rows: 1fr 75px;

    background-color: #f3f4f6;
}


/* ================= RESPOSTAS ================= */

#iresponses {
    margin: 20px;

    padding: 20px;

    overflow-y: auto;

    background-color: white;

    border-radius: 12px;

    border: 1px solid #e5e7eb;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* ================= INPUT ================= */

#iuserinput {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 15px 20px;

    background-color: white;

    border-top: 1px solid #e5e7eb;
}


#iuserinput input {
    flex: 1;

    height: 45px;

    padding: 0 15px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    outline: none;

    font-size: 15px;
}


#iuserinput input:focus {
    border-color: #6b7280;
}


#iuserinput button {
    height: 45px;

    padding: 0 22px;

    border: none;

    border-radius: 8px;

    background-color: #111827;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}


#iuserinput button:hover {
    background-color: #374151;
}


/* ================= FOOTER ================= */

footer {
    display: flex;

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

    background-color: #111827;

    color: #9ca3af;

    font-size: 12px;
}