.main-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.sidebar {
    width: 280px;
    background-color: #2a2a2a;
    border-right: 1px solid #444;
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1rem 1rem;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

.sidebar-header h2 {
    color: #ff8c00;
    margin: 0;
    font-size: 1.5rem;
}

.sidebar-nav {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    border-bottom: 1px solid #444;
}

.nav-btn {
    background: #3a3a3a;
    border: none;
    color: #f0f0f0;
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    width: 100%;
    display: block;
}

.nav-btn:hover {
    background-color: #4a4a4a;
}

.nav-btn.active {
    background-color: #ff8c00;
    color: #1a1a1a;
    font-weight: bold;
}

/* Секция диалогов на боковой панели */
.dialogs-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-top: none;
    border-bottom: 1px solid #444;
}

/* Заголовок секции "Диалоги +" */
.dialogs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #444;
    margin: 0;
    background-color: #2a2a2a;
}

.dialogs-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #ff8c00;
    text-transform: uppercase;
    font-weight: bold;
}

/* Кнопка "+" */
.add-dialog-btn {
    background: #ff8c00;
    color: #1a1a1a;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s;
    margin: 0;
}

.add-dialog-btn:hover {
    background: #e67e00;
}

/* Список диалогов */
.dialogs-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dialog-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.dialog-item:hover {
    background-color: #3a3a3a;
}

.dialog-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff8c00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
}

.call-indicator-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #00ff00;
    color: #000;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 2px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2a;
}

.group-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #ff8c00;
    color: #1a1a1a;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 2px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2a;
}

.dialog-info {
    flex: 1;
    overflow: hidden;
}

.dialog-name {
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dialog-last-message {
    font-size: 0.85rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background-color: #ff8c00;
    color: #1a1a1a;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
    flex-shrink: 0;
}

.dialog-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.hide-dialog, .leave-group-dialog {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
    transition: color 0.2s;
}

.hide-dialog:hover, .leave-group-dialog:hover {
    color: #ff8c00;
}

/* Нижняя часть с пользователем */
.user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.8rem;
    flex-shrink: 0;
    background-color: #2a2a2a;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: #ff8c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.nickname {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.username {
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: background-color 0.2s;
    color: #f0f0f0;
    flex-shrink: 0;
}

.settings-btn:hover {
    background-color: #3a3a3a;
}

.settings-btn.active {
    background-color: #ff8c00;
    color: #1a1a1a;
}

.content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
}

.home-content {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
}

.home-content h1 {
    color: #ff8c00;
    margin-bottom: 1rem;
}