/* Animations & Keyframes */
/* Extracted from intake.html */

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Voice input pulse animation */
@keyframes voice-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.voice-pulse {
    display: inline-block;
    animation: voice-pulse 1s ease-in-out infinite;
}

.voice-btn-active {
    background: #ef5350 !important;
    color: white !important;
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.3);
}

.chat-container {
    height: 400px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.chat-input input {
    flex: 1;
}

.message {
    margin-bottom: 16px;
    max-width: 85%;
}

.message.user {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    border-radius: 16px 16px 4px 16px;
}

.message.assistant {
    background: var(--bg);
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
}

#sync-cache-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
#sync-cache-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}
#sync-cache-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}
#sync-cache-btn[data-syncing="true"] {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
