/* --- Your Original CSS --- */
html, body {
    margin: 0;
    overflow: hidden;
    background-color: #2c2d32;
}

video {
    border-radius: 15px;
    width: 50%;
}

.main-layout {
    margin: 0;
    display: flex;
    background: #232323;
}

.server-scroll-div {
    background-color: #2c2d32;
    width: 60px;
    height: 100vh;
    margin: 0;
}

.server-scroll-div-item:hover {
    background-color: darkgreen;
    transition: background-color 0.3s ease;
}

.server-scroll-div-item {
    background-color: green;
    border-radius: 25%;
    width: 50px;
    height: 50px;
    margin: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
}

.server-scroll-div-item-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 2.5px;
    margin-bottom: 2.5px;
    transition: 0.3s ease;
}
.server-scroll-div-item-status[online] {
    background-color: limegreen;
}
.server-scroll-div-item-status[offline] {
    background-color: #808080;
}

.server-scroll-div-create-server {
    background-color: green;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.server-scroll-div-create-server:hover {
    background-color: darkgreen;
}

.user-banner {
    position: absolute;
    bottom: 0%;
}

.user-banner-header {
    display: flex;
    width: 300px;
    height: 70px;
    background-color: #36373e;
    border-radius: 15px;
    align-items: center;
    flex-direction: row;
    margin: 5px;
    justify-content: space-between;
}

.user-banner-header-user_attributes {
    display: flex;
}

.user-banner-header-status {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.user-banner-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 10px;
    margin-right: -15px;
}

.user-banner-header-indicator {
    width: 15px;
    height: 15px;
    transition: 0.3s ease;
    background-color: limegreen;
    border-radius: 50%;
    margin: 0;
    margin-top: 30px;
    border: solid;
    border-width: 3px;
    border-color: #36373e;
}

.user-banner-header-indicator[status=online] {
    background-color: limegreen;
}

.user-banner-header-indicator[status=offline] {
    background-color: #626369;
}

.user-banner-header-indicator[status=dnd] {
    background-color: #d83a41;
}

.user-banner-header-status {
    width: 100%;
}

.user-banner-header-status-name {
    font-family: "Arial", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.user-banner-header-status-activity {
    font-family: "Arial", sans-serif;
    font-size: 12px;
    color: #c4c5c9;
    width: 100px;
    margin-right: -30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-banner-header-buttons {
    display: flex;
    margin: 5px;
}

.user-banner-header-button-icon {
    width: 20px;
    height: 20px;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
}

.user-banner-header-button-icon:hover {
    transition: 0.4s ease;
    border-radius: 10px;
    background-color: #484951;
}

.user-banner-header-button-icon > img {
    width: 20px;
    height: 20px;
}

.server-side-pannel {
    display: flex;
    flex-direction: column;
    background-color: #2c2d32;
    width: 250px;
    height: 100vh;
    border-top-left-radius: 15px;
    border: solid;
    border-width: 1px;
    border-color: #393a3f;
}

.server-side-pannel-header {
    background-color: #2c2d32;
    width: 250px;
    height: 150px;
    border-top-left-radius: 15px;
    border: solid;
    border-color: #36373e;
    border-width: 0px;
    border-bottom-width: 1px;
    flex-shrink: 0;
}

.server-side-pannel-header-icon {
    width: 250px;
    height: 120px;
    border-top-left-radius: 15px;
}
.server-side-pannel-header-name {
    width: 250px;
    font-family: "Arial", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-view-container {
    display: flex;
    width: 100%;
    height: 100vh; /* Changed from 100% */
    flex-direction: column;
    background-color: #36373e; /* Changed */
}

.salon-title-container {
    width: 100%;
    height: 50px;
    background-color: #2c2d32;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.salon-title-container-channel_name {
    font-family: "Arial", sans-serif;
    font-size: 18px;
    color: white;
    margin: 10px;
}

.chat-container {
    width: 100%;
    height: 100%; /* Changed */
    background-color: #36373e;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Added */
    padding: 10px;
    box-sizing: border-box;
}

.user-input-container {
    width: 100%;
    height: 65px;
    background-color: #36373e; /* Changed */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    /* position: absolute; /* Removed */
    /* bottom: 0%; /* Removed */
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.user-input-field {
    display: flex;
    align-items: center;
    border-radius: 15px;
    width: 100%;
    height: 50px;
    border: solid;
    background-color: #36373e;
    border-color: #393a3f;
    margin-left: 5px;
    margin-right: 5px;
}
.user-input-field-text {
    margin-left: 10px;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: #36373e;
    border-width: 0px;
    outline: none;
    caret-color: white;
    color: #dfe0e2;
    font-family: "Arial", sans-serif;
    font-size: 14px;
}

.user-file-field {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border-radius: 50%;
    background-color: #2c2d32;
    cursor: pointer;
}
.user-file-field-icon {
    width: 30px;
    height: 30px;
    transition: filter 0.3s ease;
}

.user-file-field-icon:hover {
    filter: brightness(0.8);
}

.user-input-send {
    border-radius: 15px; /* Changed */
    width: 80px; /* Changed */
    height: 50px;
    border: none; /* Changed */
    background-color: #7289da; /* Added */
    color: white; /* Added */
    cursor: pointer; /* Added */
    margin-left: 5px;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}
.user-input-send:hover {
    background-color: #677bc4;
}

.chat-container-message {
    display: flex;
    margin-left: 10px;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
}

.chat-container-message-userdata {
    display: flex;
}

.chat-container-message-pfp-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.chat-container-message-user_attributes {
    display: flex;
    height: 25px;
    flex-direction: row;
    align-items: flex-end;
}

.chat-container-message-name {
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    font-family: "Arial", sans-serif;
    font-size: 18px;
}

.chat-container-message-time, .chat-container-message-date {
    color: #c4c5c9;
    padding-left: 2.5px;
    padding-right: 2.5px;
    font-family: "Arial", sans-serif;
    font-size: 13px;
    margin-bottom: 2px;
}

.chat-container-message-text > a {
    padding-top: 5px;
    padding-bottom: 5px;
}

.chat-container-message-text {
    display: flex;
    color: white;
    font-family: "Arial", sans-serif;
    font-size: 16px;
    flex-direction: column;
    padding-left: 60px;
    margin-top: -15px;
}


/* --- NEW Styles for Voice/Video --- */

.voice-channel-section {
    padding: 10px;
    color: #c4c5c9;
}

.voice-channel-name {
    font-family: "Arial", sans-serif;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

#video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 5px 0;
}

.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #232323;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-username {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.voice-controls {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
}

.voice-controls button {
    border: none;
    border-radius: 5px;
    background-color: #7289da;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.voice-controls button:hover {
    background-color: #677bc4;
}