/* Task List Styles */
.task-list-container {
    animation: fadeIn 0.5s ease-in;
}

.tasks-container {
    transition: max-height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
}

.task-toggle-icon {
    transition: transform 0.2s ease;
}

.task-output-container {
    transition: max-height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.task-item {
    position: relative;
    overflow: hidden;
}

.task-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.task-item[data-task-status="in_progress"]::before {
    background: linear-gradient(180deg, #3B82F6 0%, #60A5FA 100%);
    animation: pulse 2s infinite;
}

.task-item[data-task-status="completed"]::before {
    background: linear-gradient(180deg, #10B981 0%, #34D399 100%);
}

/* Agent Creation Animation Styles */
.agent-creation-circle {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: absolute;
}

.rotating-ring {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    position: absolute;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes scale-in {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Task Progress Bar */
.task-progress-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    transition: width 0.5s ease;
}

/* Dark Mode Adjustments */
.dark .task-progress-bar {
    background: #374151;
}

.dark .task-item[data-task-status="in_progress"] {
    background: rgba(59, 130, 246, 0.1);
}

/* Loading Spinner for Tasks */
.task-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    border-top-color: #3B82F6;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .task-list-container {
        padding: 12px;
    }

    .task-item {
        padding: 8px;
    }

    .agent-creation-circle {
        width: 80px;
        height: 80px;
    }

    .inner-circle {
        width: 40px;
        height: 40px;
    }
}