/* Frontend Styles for AiClipVN Core */

.aiclipvn-job-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.aiclipvn-job-item.processing {
    border-left: 4px solid #2271b1;
}

.aiclipvn-job-item.completed {
    border-left: 4px solid #00a32a;
}

.aiclipvn-job-item.failed {
    border-left: 4px solid #d63638;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.job-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.job-status.pending {
    background: #fff8e6;
    color: #f0a500;
}

.job-status.processing {
    background: #e6f2ff;
    color: #2271b1;
}

.job-status.completed {
    background: #e6f7ed;
    color: #00a32a;
}

.job-status.failed {
    background: #ffe6e6;
    color: #d63638;
}

.job-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #50b3e6);
    transition: width 0.5s ease;
}

.job-error {
    background: #ffe6e6;
    color: #d63638;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

.job-result {
    margin-top: 15px;
}

.job-result .button {
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.job-result .button:hover {
    background: #135e96;
}

/* Responsive */
@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}