* {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #36393f; /* Основной фон Discord */
    color: #dcddde;
    overflow: hidden;
}

/* 1. Панель серверов */
.servers-nav {
    width: 72px;
    background-color: #202225;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
}

.server-icon {
    width: 48px;
    height: 48px;
    background-color: #36393f;
    border-radius: 50%;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    color: white;
    font-weight: bold;
}

.server-icon:hover, .server-icon.active {
    border-radius: 16px;
    background-color: #5865f2; /* Discord Blue */
}

/* 2. Панель каналов */
.channels-nav {
    width: 240px;
    background-color: #2f3136;
    display: flex;
    flex-direction: column;
}

.channels-nav .header {
    height: 48px;
    border-bottom: 1px solid #202225;
    padding: 12px 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 1px 0 rgba(4,4,5,0.2);
}

.channel-group {
    padding: 18px 8px 4px 18px;
    font-size: 12px;
    font-weight: bold;
    color: #8e9297;
}

.channel {
    padding: 8px 8px 8px 18px;
    margin: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #8e9297;
}

.channel:hover {
    background-color: #34373c;
    color: #dcddde;
}

.channel.active {
    background-color: #393c43;
    color: white;
}

.user-profile {
    margin-top: auto;
    background-color: #292b2f;
    padding: 10px;
    display: flex;
    align-items: center;
}

/* 3. Область чата */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #36393f;
}

.chat-header {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #26272d;
    font-weight: bold;
    color: white;
    box-shadow: 0 1px 0 rgba(4,4,5,0.02);
}

.chat-header span {
    color: #72767d;
    margin-right: 4px;
    font-size: 20px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

/* Скроллбар как в Discord */
.messages-container::-webkit-scrollbar {
    width: 8px;
    background-color: #2e3338;
}
.messages-container::-webkit-scrollbar-thumb {
    background-color: #202225;
    border-radius: 4px;
}

.message {
    padding: 4px 16px;
    margin-bottom: 4px;
    display: flex;
}

.message:hover {
    background-color: #32353b;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background-color: #5865f2;
    border-radius: 50%;
    margin-right: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

.message-content h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 2px;
}

.message-content span {
    font-size: 12px;
    color: #72767d;
    font-weight: normal;
    margin-left: 8px;
}

.message-content p {
    color: #dcddde;
    line-height: 1.4;
}

.input-area {
    padding: 0 16px 24px 16px;
}

.input-wrapper {
    background-color: #40444b;
    border-radius: 8px;
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.plus-icon {
    color: #b9bbbe;
    font-size: 24px;
    margin-right: 16px;
    cursor: pointer;
}

#message-input {
    width: 100%;
    height: 44px;
    background: transparent;
    border: none;
    color: #dcddde;
    outline: none;
    font-size: 16px;
}