/*
 * Meeting Notes Styles
 * Styles for transcript tabs, notes panel, and AI summary integration
 */

/* Caption Tabs */
.caption-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin: 0;
}

.caption-tab {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}

.caption-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.caption-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.caption-tab i {
    font-size: 14px;
}

/* Caption Panels */
.caption-panel {
    display: none;
    height: calc(100% - 120px);
    overflow-y: auto;
}

.caption-panel.active {
    display: block;
}

/* Notes Panel */
#notesPanel {
    padding: 10px;
    height: calc(100% - 120px);
}

.meeting-notes-editor {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.meeting-notes-editor:focus {
    border-color: #6366f1;
}

.meeting-notes-editor::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Summary Panel */
#summaryPanel {
    padding: 15px;
    height: calc(100% - 120px);
    overflow-y: auto;
}

.summary-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    gap: 15px;
}

.summary-loading i {
    font-size: 32px;
    color: #6366f1;
}

.summary-loading p {
    margin: 0;
    font-size: 14px;
}

.summary-content {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.summary-placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
}

.summary-content h3 {
    color: #6366f1;
    margin: 0 0 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    padding-bottom: 8px;
}

.summary-content h4 {
    color: #10b981;
    margin: 15px 0 8px 0;
    font-size: 14px;
}

.summary-content ul {
    margin: 0;
    padding-left: 20px;
}

.summary-content li {
    margin-bottom: 5px;
}

/* Generate Summary Button */
.generate-summary-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.generate-summary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.generate-summary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Recording Status Indicator */
.recording-active-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #ef4444;
    margin-left: 10px;
}

.recording-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Caption Footer Updates */
.caption-inputarea {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Groq API Status */
.groq-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
}

.groq-status.connected {
    color: #10b981;
}

.groq-status.error {
    color: #ef4444;
}

/* Summary Sections */
.summary-section {
    margin-bottom: 20px;
}

.summary-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-section-title i {
    font-size: 16px;
}

.summary-section-content {
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.9);
}

/* Action Items in Summary */
.action-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    border-left: 3px solid #6366f1;
}

.action-item-checkbox {
    margin-top: 2px;
}

/* Key Points */
.key-point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.key-point::before {
    content: '•';
    color: #10b981;
    font-weight: bold;
}

/* Export Summary Button */
.export-summary-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.export-summary-btn:hover {
    background: rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .caption-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .caption-tab span {
        display: none;
    }
    
    .generate-summary-btn span {
        display: none;
    }
}
