.action-room-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 24px;
    background-color: #25272b;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #f5f5f5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.action-room-header h2 {
    font-size: 1.8rem;
    margin: 0 0 8px;
    color: #f5f5f5;
}

.action-room-subtitle {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #c7ccd4;
}

.action-room-chat {
    border-radius: 12px;
    background-color: #1f2124;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-room-messages {
    max-height: 480px;
    overflow-y: auto;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: #181a1e;
}

/* Messages */

.action-room-message {
    margin-bottom: 10px;
    display: flex;
}

.action-room-message-user {
    justify-content: flex-end;
}

.action-room-message-assistant {
    justify-content: flex-start;
}

.action-room-message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.action-room-message-user .action-room-message-content {
    background: linear-gradient(135deg, #2b7fbf, #225c85);
    color: #f5f5f5;
    border-bottom-right-radius: 4px;
}

.action-room-message-assistant .action-room-message-content {
    background-color: #2c3036;
    color: #f5f5f5;
    border-bottom-left-radius: 4px;
}

/* Formulaire */

.action-room-input-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-room-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #3b3f46;
    padding: 10px 12px;
    resize: vertical;
    min-height: 70px;
    background-color: #181a1e;
    color: #f5f5f5;
    font-size: 0.95rem;
}

.action-room-input:focus {
    outline: none;
    border-color: #2b7fbf;
    box-shadow: 0 0 0 1px rgba(43, 127, 191, 0.3);
}

.action-room-submit {
    align-self: flex-end;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2b7fbf, #225c85);
    color: #f5f5f5;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.1s;
}

.action-room-submit:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.action-room-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Statut */

.action-room-status {
    margin-top: 4px;
    font-size: 0.85rem;
}

.action-room-status.status-loading {
    color: #7fb8ff;
}

.action-room-status.status-error {
    color: #ff7979;
}

.action-room-status.status-info {
    color: #c7ccd4;
}

.action-room-notice {
    text-align: center;
    padding: 16px;
    background-color: #25272b;
    color: #f5f5f5;
    border-radius: 12px;
}
