/* Task Cards & Queue Layouts */

/* Task Queue */
.task-queue {
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}
.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Individual Task Cards */
.task-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s ease-out forwards;
}
.task-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.task-card-main {
    display: flex;
    gap: 16px;
    align-items: center;
}

.task-thumbnail-wrapper {
    width: 90px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--glass-border);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-thumbnail-wrapper i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.task-card-content {
    flex: 1;
    overflow: hidden;
}

.task-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.task-meta-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.task-meta-item.status {
    font-weight: 700;
}

.task-actions-wrapper {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.task-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.task-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.task-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.25);
}
.task-btn.download-direct {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    border: none;
    color: #fff;
    width: auto;
    padding: 0 16px;
}
.task-btn.download-direct:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Progress Bars */
.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill.remixing {
    background: linear-gradient(90deg, var(--accent-purple), #c084fc);
}
.progress-fill.finished {
    background: linear-gradient(90deg, var(--accent-green), #34d399);
}
.progress-fill.error {
    background: linear-gradient(90deg, var(--accent-red), #f87171);
}

/* Skeletons */
.skeleton-pulse {
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}
