/* Matrix Chat Widget Styles */
* {
    box-sizing: border-box;
}

.matrix-chat-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.matrix-chat-header {
    background: #2196F3;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
}

.matrix-login-form,
.matrix-chat-interface {
    padding: 20px;
}

.matrix-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.matrix-button {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.matrix-button:hover {
    background: #1976D2;
}

.matrix-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

.matrix-message {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #2196F3;
}

.matrix-message-sender {
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 5px;
    font-size: 14px;
}

.matrix-message-content {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.matrix-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.matrix-send-form {
    display: flex;
    gap: 10px;
}

.matrix-send-form .matrix-input {
    flex: 1;
    margin: 0;
}

.matrix-send-form .matrix-button {
    width: auto;
    padding: 10px 20px;
}

.matrix-error {
    color: #f44336;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.matrix-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}
