/**
 * LiveKit Agent Page Styles
 */

/* Agent state indicator */
.livekit-agent-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: var(--bg-secondary, #f8f9fa);
    transition: all 0.3s ease;
}

.livekit-agent-state .agent-state-orb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6b7280;
    transition: all 0.3s ease;
}

.livekit-agent-state .agent-state-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    transition: color 0.3s ease;
}

/* Idle state */
.livekit-agent-state.idle .agent-state-orb {
    background: #9ca3af;
}

/* Listening state */
.livekit-agent-state.listening {
    background: rgba(59, 130, 246, 0.08);
}

.livekit-agent-state.listening .agent-state-orb {
    background: #3b82f6;
    animation: pulse-blue 2s ease-in-out infinite;
}

.livekit-agent-state.listening .agent-state-text {
    color: #3b82f6;
}

/* Thinking state */
.livekit-agent-state.thinking {
    background: rgba(168, 85, 247, 0.08);
}

.livekit-agent-state.thinking .agent-state-orb {
    background: #a855f7;
    animation: pulse-purple 1.5s ease-in-out infinite;
}

.livekit-agent-state.thinking .agent-state-text {
    color: #a855f7;
}

/* Speaking state */
.livekit-agent-state.speaking {
    background: rgba(34, 197, 94, 0.08);
}

.livekit-agent-state.speaking .agent-state-orb {
    background: #22c55e;
    animation: pulse-green 1s ease-in-out infinite;
}

.livekit-agent-state.speaking .agent-state-text {
    color: #22c55e;
}

/* Panel title */
#livekit-agent-feature .panel-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1f2937);
}

/* Animations */
@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
        transform: scale(1.1);
    }
}

@keyframes pulse-purple {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
        transform: scale(1.15);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
        transform: scale(1.1);
    }
}

/* Landing tile color */
.feature-tile.livekit-agent {
    border-color: #6366f1;
}

.feature-tile.livekit-agent:hover {
    border-color: #4f46e5;
    background: rgba(99, 102, 241, 0.05);
}

.feature-tile.livekit-agent .tile-icon {
    color: #6366f1;
}
