/* ===== MAIN CSS - БАЗОВЫЕ СТИЛИ BOARD.AI ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* ===== DEBUG MODE VISUAL INDICATOR ===== */
body[data-debug="on"] .container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 3px #ffc107 !important;
    transition: box-shadow 0.3s ease;
}

body[data-debug="on"] .debug-toggle {
    background: #ffc107;
    border-color: #ff9800;
    animation: pulse-debug 1.5s infinite;
}

@keyframes pulse-debug {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ===== MAIN AREA ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.chat-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #ffffff;
    scroll-behavior: smooth;
}

.empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #999;
    text-align: center;
    padding: 20px;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #667eea;
}

.empty-state p {
    font-size: 14px;
    max-width: 300px;
    line-height: 1.5;
}

/* ===== INPUT AREA ===== */
.input-area {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 5;
}

#messageInput {
    flex: 1;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
}

#messageInput:focus {
    border-color: #667eea;
}

#sendBtn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

#sendBtn:hover:not(:disabled) {
    background: #5568d3;
    transform: scale(1.05);
}

#sendBtn:disabled {
    background: #ccc;
    cursor: default;
}

#sendBtn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 2px;
}
