.igk-chat-widget {
    max-width: 720px;
    margin: 20px auto;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.igk-chat-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(135deg, #303487, #e52f2d);
    color: #ffffff;
}

.igk-chat-title {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.igk-chat-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.4);
}

.igk-chat-subtitle {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.igk-chat-messages {
    padding: 16px 16px 10px;
    max-height: 460px;
    overflow-y: auto;
    background: #f5f5fb;
}

.igk-msg {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.igk-msg-bot {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    align-self: flex-start;
}

.igk-msg-user {
    background: #303487;
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.igk-msg-error {
    background: #fee2e2;
    color: #991b1b;
}

.igk-msg-loading {
    font-style: italic;
    opacity: 0.8;
}

.igk-chat-input {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: #ffffff;
}

#igk-chat-input-text {
    flex: 1;
    resize: none;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.14);
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}

#igk-chat-input-text:focus {
    border-color: #303487;
    box-shadow: 0 0 0 1px rgba(48,52,135,0.2);
}

#igk-chat-send-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: #303487;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.06s ease;
    box-shadow: 0 10px 20px rgba(48, 52, 135, 0.4);
}

#igk-chat-send-btn:hover {
    background: #252a70;
    transform: translateY(-1px);
}

#igk-chat-send-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .igk-chat-widget {
        border-radius: 0;
        box-shadow: none;
    }
}
