/* Meeting Monitor Styles */

/* Health Summary Cards */
.health-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.health-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.health-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.health-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.health-card-icon svg {
    width: 24px;
    height: 24px;
}

.health-card-icon.recording {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.health-card-icon.queued {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.health-card-icon.processing {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.health-card-icon.success {
    background: linear-gradient(135deg, #30cfd0 0%, #3eff8b 100%);
    color: white;
}

.health-card-icon.error {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.health-card-content {
    flex: 1;
}

.health-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

.health-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #718096;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tab Navigation */
.meeting-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
    overflow-x: auto;
}

.meeting-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meeting-tab:hover {
    color: #4a5568;
    background: #f7fafc;
}

.meeting-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.recording-indicator {
    background: #f5576c;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.failed-badge {
    background: #fc8181;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    display: none;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.section-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 5px 0 0 0;
}

.auto-refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #4a5568;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Meetings Container */
.meetings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* Meeting Cards */
.meeting-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent;
}

.meeting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.meeting-card.recording {
    border-left-color: #f5576c;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.meeting-card.queued {
    border-left-color: #4facfe;
}

.meeting-card.processing {
    border-left-color: #fbbf24;
}

.meeting-card.completed {
    border-left-color: #10b981;
}

.meeting-card.failed {
    border-left-color: #ef4444;
    background: #fff5f5;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    }
}

.meeting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.meeting-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meeting-status-badge.recording {
    background: #fff5f7;
    color: #c53030;
}

.meeting-status-badge.queued {
    background: #ebf8ff;
    color: #2c5282;
}

.meeting-status-badge.processing {
    background: #fffbeb;
    color: #b7791f;
}

.meeting-status-badge.completed {
    background: #f0fdf4;
    color: #15803d;
}

.meeting-status-badge.failed {
    background: #fef2f2;
    color: #991b1b;
}

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

.meeting-provider {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 6px;
    background: white;
}

.meeting-provider.zoom {
    color: #2b5797;
}

.meeting-provider.teams {
    color: #464eb8;
}

.meeting-provider.meet {
    color: #34a853;
}

.meeting-card-body {
    padding: 20px;
}

.meeting-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.meeting-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meeting-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.meeting-detail.countdown {
    color: #667eea;
    font-weight: 600;
}

.detail-icon {
    width: 16px;
    height: 16px;
    color: #a0aec0;
    flex-shrink: 0;
}

.live-timer {
    color: #f5576c;
}

.meeting-summary-preview {
    margin-top: 15px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
}

.meeting-summary-preview strong {
    color: #2d3748;
}

/* Progress Bars */
.progress-container {
    margin-top: 15px;
}

.progress-bar-wrapper {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 12px;
    color: #718096;
    text-align: center;
}

.metric-progress {
    margin-top: 8px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.metric-progress .progress-bar {
    height: 100%;
}

/* Error Messages */
.error-message {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding: 12px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.error-icon {
    width: 20px;
    height: 20px;
    color: #ef4444;
    flex-shrink: 0;
}

.error-message strong {
    display: block;
    color: #991b1b;
    font-size: 13px;
    margin-bottom: 4px;
}

.error-message p {
    color: #7f1d1d;
    font-size: 13px;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.error-code {
    font-size: 11px;
    color: #991b1b;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.error-text {
    color: #ef4444 !important;
}

/* Meeting Card Footer */
.meeting-card-footer {
    padding: 15px 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

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

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary svg, .btn-secondary svg {
    width: 14px;
    height: 14px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.empty-state.success svg {
    color: #48bb78;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-size: 14px;
}

/* Metrics Section */
.metrics-section {
    margin-bottom: 40px;
}

.metrics-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 300px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content.large {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #718096;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 24px;
}

/* Meeting Details Modal Content */
.meeting-details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.details-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: #2d3748;
}

.detail-value.mono {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #718096;
}

.detail-value.status-completed {
    color: #10b981;
    font-weight: 600;
}

.detail-value.status-failed {
    color: #ef4444;
    font-weight: 600;
}

.detail-value.status-recording {
    color: #f5576c;
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-content {
    padding-bottom: 10px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

.timeline-timestamp {
    font-size: 12px;
    color: #718096;
}

/* Summary Content */
.summary-content {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

/* Artifacts Links */
.artifacts-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.artifact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f7fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.artifact-link:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(5px);
}

/* Error Details */
.error-detail {
    padding: 12px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    font-size: 13px;
    color: #7f1d1d;
    line-height: 1.5;
}

.error-detail strong {
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .meetings-container {
        grid-template-columns: 1fr;
    }
    
    .health-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .meeting-tabs {
        flex-wrap: wrap;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}
