/**
 * SIVIA Ambient AI Styles
 * Modern, professional styling for ambient AI recording interface
 */

/* Ambient AI Panel Container */
.ambient-ai-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ambient-ai-panel h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ambient-ai-panel h5 i {
    font-size: 1.2rem;
}

/* Control Buttons */
.ambient-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.ambient-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ambient-btn-start {
    background: #28a745;
    color: white;
}

.ambient-btn-start:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.ambient-btn-stop {
    background: #dc3545;
    color: white;
}

.ambient-btn-stop:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.ambient-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Indicator */
.ambient-status-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.ambient-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ambient-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
    animation: pulse 2s infinite;
}

.ambient-status-dot.recording {
    background: #dc3545;
}

.ambient-status-dot.processing {
    background: #ffc107;
}

.ambient-status-dot.completed {
    background: #28a745;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.ambient-duration {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Transcription Display */
.ambient-transcription-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: #212529;
    max-height: 300px;
    overflow-y: auto;
}

.ambient-transcription-container h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ambient-transcription-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ambient-transcription-text:empty::before {
    content: "Transcription will appear here as you speak...";
    color: #adb5bd;
    font-style: italic;
}

/* AI Alerts Sidebar */


/* Empty State */
.ambient-empty-state {
    text-align: center;
    padding: 2rem;
    color: #adb5bd;
}

.ambient-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Recording Animation */
.recording-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.recording-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Scrollbar Styling */
.ambient-transcription-container::-webkit-scrollbar,
.ambient-alerts-container::-webkit-scrollbar {
    width: 8px;
}

.ambient-transcription-container::-webkit-scrollbar-track,
.ambient-alerts-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ambient-transcription-container::-webkit-scrollbar-thumb,
.ambient-alerts-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.ambient-transcription-container::-webkit-scrollbar-thumb:hover,
.ambient-alerts-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ambient-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .ambient-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ambient-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
