
/* ZeroAI Engagement Suite Styles */
/* Scoped to prevent CSS conflicts */

.zeroai-container {
    --zeroai-primary: #2563eb;
    --zeroai-secondary: #64748b;
    --zeroai-bg: #ffffff;
    --zeroai-text: #1e293b;
    --zeroai-border: #e2e8f0;
    --zeroai-shadow: 0 1px 3px rgba(0,0,0,0.12);
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--zeroai-bg);
    border: 1px solid var(--zeroai-border);
    border-radius: 12px;
    box-shadow: var(--zeroai-shadow);
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
}

.zeroai-container * {
    box-sizing: border-box;
}

.zeroai-header {
    background: linear-gradient(135deg, var(--zeroai-primary), #3b82f6);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zeroai-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.zeroai-minimize {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zeroai-chat-area {
    background: #f8fafc;
    overflow-y: auto;
}

.zeroai-messages {
    padding: 1rem;
    min-height: 200px;
}

.zeroai-input-area {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: white;
    border-top: 1px solid var(--zeroai-border);
}

.zeroai-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--zeroai-border);
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.zeroai-input:focus {
    border-color: var(--zeroai-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.zeroai-send {
    background: var(--zeroai-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.zeroai-send:hover {
    background: #1d4ed8;
}

.zeroai-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid var(--zeroai-border);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    outline: none;
}

.zeroai-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.zeroai-select {
    padding: 0.5rem;
    border: 1px solid var(--zeroai-border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.zeroai-range {
    flex: 1;
    min-width: 100px;
}

.zeroai-button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.zeroai-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.zeroai-btn-primary {
    background: var(--zeroai-primary);
    color: white;
}

.zeroai-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.zeroai-btn-secondary {
    background: var(--zeroai-secondary);
    color: white;
}

.zeroai-mic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.zeroai-mic-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--zeroai-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zeroai-mic-btn:hover {
    transform: scale(1.1);
}

.zeroai-mic-btn.recording {
    background: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
    70% { box-shadow: 0 0 0 20px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.zeroai-recording-indicator {
    display: none;
    margin-top: 1rem;
    color: #ef4444;
    font-weight: 500;
}

.zeroai-recording-indicator.active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zeroai-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.zeroai-loader {
    text-align: center;
    padding: 2rem;
}

.zeroai-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--zeroai-border);
    border-top-color: var(--zeroai-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.zeroai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .zeroai-container {
        margin: 0.5rem 0;
        border-radius: 8px;
    }
    
    .zeroai-grid {
        grid-template-columns: 1fr;
    }
    
    .zeroai-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zeroai-button-group {
        flex-direction: column;
    }
    
    .zeroai-btn {
        width: 100%;
    }
}

/* Dark theme support */
.zeroai-container[data-theme="dark"] {
    --zeroai-bg: #1e293b;
    --zeroai-text: #f1f5f9;
    --zeroai-border: #334155;
    background: var(--zeroai-bg);
    color: var(--zeroai-text);
}

/* Accessibility */
.zeroai-container:focus-within {
    outline: 2px solid var(--zeroai-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .zeroai-container {
        display: none;
    }
}
    