﻿
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #eef1f4;
    min-height: 100vh;
}

.topbar {
    background: #2c3e50;
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .topbar .actions {
        display: inline-flex;
        align-items: center;
        gap: 12px;
    }

.layout {
    display: flex;
    padding: 16px;
    gap: 16px;
    align-items: flex-start;
    min-height: calc(100vh - 60px);
}

.people-host {
    width: 100%;
    height: 400px;
    flex-shrink: 0;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), 0px -13px 0 var(--primary-color);
    margin-bottom: 28px;
    margin-top: 14px;
    min-height: inherit;
    padding: 0;
    border-radius: 13px;
}

.main {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    min-height: 600px;
}

    .main h2 {
        margin-top: 0;
        color: #2c3e50;
    }

/* Init form (only shown until we have a token) */
.init-form {
    background: #fff;
    border: 1px solid #ffd66b;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}

    .init-form h3 {
        margin: 0 0 10px;
        color: #b45309;
        font-size: 14px;
    }

    .init-form .row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 8px;
    }

    .init-form label {
        font-size: 12px;
        color: #555;
        min-width: 110px;
    }

    .init-form input {
        flex: 1;
        min-width: 200px;
        padding: 6px 10px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        font-size: 13px;
    }

    .init-form button {
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 8px 18px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
    }

        .init-form button:disabled {
            background: #95c2ff;
            cursor: not-allowed;
        }

.init-status {
    font-size: 12px;
    margin-top: 6px;
}

    .init-status.ok {
        color: #28a745;
    }

    .init-status.err {
        color: #dc3545;
    }

.log {
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    margin-top: 16px;
    font-size: 12px;
    height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
}

/* Multi-chat container */
#chat-stack {
    position: fixed;
    bottom: 0;
    right: 116px;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 12px;
    z-index: 9;
    pointer-events: none;
}

html[lang="en"] #chat-stack {
    left: 116px;
    right: auto !important;
}

html[lang="en"] .Instant_messages_container #chat-stack {
    left: 0 !important;
    right: 0 !important;
}

.chat-window {
    width: 340px;
    height: 460px;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

    .chat-window.minimized {
        height: 42px;
    }

        .chat-window.minimized itg-chat-box {
            display: none;
        }

.chat-window-header {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

    .chat-window-header .actions {
        display: inline-flex;
        gap: 4px;
    }

    .chat-window-header button {
        background: transparent;
        border: none;
        color: #fff;
        cursor: pointer;
        font-size: 14px;
        padding: 0 6px;
        line-height: 1;
        border-radius: 3px;
    }

        .chat-window-header button:hover {
            background: rgba(255,255,255,.2);
        }

.chat-window itg-chat-box {
    flex: 1;
    min-height: 0;
}

.chat-window-header .close::before {
    top: 0;
    left: 0;
    content: "\f00d";
    font-family: 'FontAwesome' !important;
    font-size: var(--font-14, 14px);
    font-style: normal;
    font-weight: normal;
}

.chat-window-header .close {
    display: flex;
    align-self: flex-end;
}

