/**
 * TalkGenAI Job Manager Styles
 * Progress indicators and job UI
 */

/* Progress Container */
.talkgenai-progress-wrapper {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Progress Bar Container */
.talkgenai-progress-bar-container {
    width: 100%;
    height: 32px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Progress Bar */
.talkgenai-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    transition: width 0.5s ease;
    width: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    animation: progressAnimation 1.5s ease-in-out infinite;
}

@keyframes progressAnimation {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Progress Message */
.talkgenai-progress-message {
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.talkgenai-progress-message::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* History Section */
.talkgenai-history-section {
    margin-top: 25px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.talkgenai-history-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.talkgenai-history-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.talkgenai-history-controls select {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.talkgenai-history-controls .button {
    flex-shrink: 0;
}

/* Status Badges */
.talkgenai-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.talkgenai-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.talkgenai-status-badge.processing {
    background: #cfe2ff;
    color: #084298;
}

.talkgenai-status-badge.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.talkgenai-status-badge.failed {
    background: #f8d7da;
    color: #842029;
}

/* Responsive */
@media (max-width: 768px) {
    .talkgenai-history-controls {
        flex-direction: column;
    }
    
    .talkgenai-history-controls select {
        width: 100%;
    }
    
    .talkgenai-history-controls .button {
        width: 100%;
        text-align: center;
    }
}




