html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* =========================================
   СТИЛИ ДЛЯ ЧАТА (ТЕМНАЯ ТЕМА)
   ========================================= */

.chat-container {
    display: flex;
    height: calc(100vh - 120px); /* Высота под экран */
    background-color: #1e1e2f;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.sidebar {
    width: 280px;
    background-color: #151521;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.sidebar-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #2a2a3d;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e0e0;
}

    .sidebar-item:hover {
        background-color: #202030;
    }

    .sidebar-item.active {
        background-color: #2a2a40;
        border-left: 4px solid #e94560; /* Акцентный красный/пиратский цвет */
        font-weight: bold;
        color: #ffffff;
    }

.messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1a1a2e;
}

.message-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    align-self: flex-start;
    background-color: #2a2a40;
    padding: 10px 15px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    color: #e0e0e0;
}

    .message .sender {
        color: #e94560;
        font-weight: 600;
        font-size: 0.85em;
        margin-bottom: 4px;
        display: block;
    }

    .message .time {
        font-size: 0.75em;
        color: #888;
        float: right;
        margin-top: 5px;
        margin-left: 10px;
    }

    .message .text {
        word-break: break-word;
    }

.input-area {
    padding: 15px;
    background-color: #151521;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}

    .input-area input {
        background-color: #202030;
        border: 1px solid #333;
        color: white;
        border-radius: 20px;
        padding: 10px 20px;
    }

        .input-area input:focus {
            background-color: #2a2a40;
            color: white;
            box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 0.25);
            border-color: #e94560;
            outline: none;
        }

    .input-area button {
        background-color: #e94560;
        border: none;
        border-radius: 20px;
        padding: 0 25px;
        font-weight: bold;
        color: white;
        transition: background 0.2s;
    }

        .input-area button:hover {
            background-color: #d13a52;
        }
