.debate-boxes {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    justify-content: space-between;
    min-height: 300px;
}

.agent-1, .agent-2 {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.agent-1 {
    border-left: 4px solid #4f46e5;
}

.agent-2 {
    border-left: 4px solid #7c3aed;
}

.agent-1 .message, .agent-2 .message {
    flex: 1;
    overflow-y: auto;
    word-wrap: break-word;
    line-height: 1.6;
    padding-right: 1rem;
    margin-top: 1rem;
}

.message-container {
    position: relative;
    padding-left: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.agent-name {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #4f46e5;
}

.agent-2 .agent-name {
    color: #7c3aed;
}

.message {
    line-height: 1.6;
}

/* Animation for new messages */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-message {
    animation: slideIn 0.3s ease-out forwards;
}

/* Speaking indicator */
.speaking {
    position: relative;
}

.speaking::after {
    content: "🔊";
    position: absolute;
    right: 1rem;
    top: 1rem;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#loadingState {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

#loadingState:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#debateContainer {
    position: relative;
}
