/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #e74c3c;
}

.hidden {
    display: none;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1, h2 {
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea.form-control {
    height: 100px;
}

.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.btn:hover {
    background: #555;
}

.task-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-item:last-child {
    border-bottom: none;
}

.task-id {
    font-family: monospace;
    font-size: 14px;
}

.status-queued {
    color: #f39c12;
}

.status-processing {
    color: #3498db;
}

.status-completed {
    color: #2ecc71;
}

.status-failed {
    color: #e74c3c;
}

.hidden {
    display: none;
}

#video-container {
    margin-top: 20px;
}

/* Simple responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-item a {
        margin-top: 10px;
    }
}

.pagination-info {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
