/* Custom Styles */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

/* Headings */
h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

h2 {
    font-size: 1.125rem;
    font-weight: 500;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
}

/* Tab buttons */
.tab-btn.active {
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

.tab-btn {
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.tab-btn:hover {
    color: #4f46e5;
}

/* Video cards */
.video-card {
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0.75rem;
}

.video-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Transcript segments */
.transcript-segment {
    padding: 0.5rem;
    border-left: 2px solid #4f46e5;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

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

/* Theme tags */
.theme-tag {
    display: inline-block;
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Toast notifications */
.toast {
    animation: slideIn 0.3s ease-out;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom scrollbar */
.overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Progress Pipeline */
.progress-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

.progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 0;
}

.progress-stage.completed:not(:last-child)::after,
.progress-stage.active:not(:last-child)::after {
    background-color: #4f46e5;
}

.progress-stage-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #9ca3af;
    z-index: 1;
    transition: all 0.3s;
}

.progress-stage.completed .progress-stage-icon {
    background-color: #4f46e5;
    color: white;
}

.progress-stage.active .progress-stage-icon {
    background-color: #4f46e5;
    color: white;
    animation: pulse 2s infinite;
}

.progress-stage.pending .progress-stage-icon {
    background-color: #e5e7eb;
    color: #9ca3af;
}

.progress-stage-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.375rem;
    text-align: center;
}

.progress-stage.completed .progress-stage-label,
.progress-stage.active .progress-stage-label {
    color: #4f46e5;
    font-weight: 600;
}

.progress-stage-percentage {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

.progress-stage.active .progress-stage-percentage {
    color: #4f46e5;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 0.5rem rgba(79, 70, 229, 0);
    }
}

/* Search Results */
.search-result-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.75rem;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.search-result-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.search-highlight {
    background-color: #fef08a;
    padding: 0.0625rem 0.125rem;
    border-radius: 0.125rem;
    font-weight: 500;
}

.search-snippet {
    background-color: #f9fafb;
    border-left: 2px solid #4f46e5;
    padding: 0.5rem;
    margin: 0.375rem 0;
    border-radius: 0.25rem;
}

/* Upload Pipeline Stages */
.upload-stage-upload,
.upload-stage-audio,
.upload-stage-transcription,
.upload-stage-analysis {
    transition: color 0.3s;
}

.upload-stage-upload.active,
.upload-stage-audio.active,
.upload-stage-transcription.active,
.upload-stage-analysis.active {
    color: #4f46e600;
    font-weight: 600;
}

.upload-stage-upload.completed,
.upload-stage-audio.completed,
.upload-stage-transcription.completed,
.upload-stage-analysis.completed {
    color: #065f46;
    font-weight: 500;
}
