/* MeetingAI Custom Styles */

/* General */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Feature icons */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse animation */
.pulse-animation {
    animation: pulse 1.5s infinite;
}

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

/* Spin animation */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Transcript container */
.transcript-container {
    height: calc(100vh - 350px);
    min-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.transcript-segment {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.transcript-segment:hover {
    background-color: #f8f9fa;
}

.transcript-segment.trigger-segment {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.transcript-segment.question-segment {
    background-color: #cfe2ff;
    border-left: 4px solid #0d6efd;
}

.transcript-segment.new-segment {
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% { background-color: #d1e7dd; }
    100% { background-color: transparent; }
}

/* Assistant container */
.assistant-container {
    height: calc(100vh - 450px);
    min-height: 300px;
    overflow-y: auto;
}

/* Assistant avatar */
.assistant-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.assistant-avatar.listening {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 1s infinite;
}

.assistant-avatar.processing {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: spin 1s linear infinite;
}

.assistant-avatar.speaking {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    animation: pulse 0.5s infinite;
}

/* Chat bubbles */
.interaction-item {
    margin-bottom: 15px;
}

.question-bubble {
    background-color: #e3f2fd;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    margin-bottom: 8px;
}

.answer-bubble {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    margin-left: 20px;
}

.answer-bubble.error {
    background-color: #ffebee;
    border-left: 3px solid #f44336;
}

/* Microphone icon */
#micIcon.listening {
    color: #dc3545;
    animation: pulse 1s infinite;
}

/* Cards */
.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Tables */
.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
}

/* Action items */
.action-item {
    border-left: 3px solid #ffc107;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .transcript-container {
        height: 300px;
        min-height: 250px;
    }
    
    .assistant-container {
        height: 300px;
        min-height: 250px;
    }
}

/* Scrollbar styling */
.transcript-container::-webkit-scrollbar,
.assistant-container::-webkit-scrollbar {
    width: 6px;
}

.transcript-container::-webkit-scrollbar-track,
.assistant-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.transcript-container::-webkit-scrollbar-thumb,
.assistant-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.transcript-container::-webkit-scrollbar-thumb:hover,
.assistant-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Toast positioning */
.toast-container {
    z-index: 1100;
}

/* Badge animations */
.badge {
    transition: all 0.2s ease;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Note cards */
.notes-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.notes-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .transcript-container,
    .assistant-container {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}
