.iac-chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.iac-chat-header {
    background: #f5f5f5;
    padding: 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iac-chat-title {
    font-weight: bold;
    color: #333;
}

.iac-chat-participants {
    color: #666;
    font-size: 0.9em;
}

.iac-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #fafafa;
}

.iac-message {
    margin-bottom: 12px;
    max-width: 70%;
}

.iac-message.own {
    margin-left: auto;
    text-align: right;
}

.iac-message.other {
    margin-right: auto;
}

.iac-message-header {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 4px;
}

.iac-message-content {
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #eee;
    word-wrap: break-word;
}

.iac-message.own .iac-message-content {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.iac-chat-input-container {
    border-top: 1px solid #ddd;
    padding: 12px;
    background: white;
    display: flex;
    gap: 8px;
}

.iac-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    outline: none;
    resize: none;
    min-height: 20px;
    max-height: 80px;
}

.iac-chat-input:focus {
    border-color: #007bff;
}

.iac-chat-send-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iac-chat-send-button:hover {
    background: #0056b3;
}

.iac-chat-send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.iac-chat-button {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.iac-chat-button:hover {
    background: linear-gradient(135deg, #138496 0%, #1e7e34 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.iac-chat-link {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    font-size: 0.9em;
}

.iac-chat-link a {
    color: #007bff;
    text-decoration: none;
}

.iac-chat-link a:hover {
    text-decoration: underline;
}

.iac-chat-status {
    padding: 8px;
    margin: 8px 0;
    border-radius: 4px;
}

.iac-chat-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.iac-chat-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.iac-chat-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Modal styles */
.iac-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.iac-chat-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    height: 80%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.iac-chat-modal-header {
    padding: 16px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iac-chat-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.iac-chat-modal-close:hover {
    color: #000;
}