/* TaskFlow Styles */
.taskflow-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
    min-height: 500px;
}

.taskflow-header {
    text-align: center;
    margin-bottom: 30px;
}

.taskflow-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.taskflow-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.taskflow-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.taskflow-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.taskflow-input:focus {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.taskflow-input::placeholder {
    color: #999;
}

.taskflow-add-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.taskflow-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.taskflow-add-btn:active {
    transform: translateY(0);
}

.plus-icon {
    font-size: 28px;
    line-height: 1;
}

.taskflow-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.taskflow-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.taskflow-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.taskflow-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.taskflow-tasks {
    min-height: 200px;
}

.taskflow-empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.8;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.taskflow-empty-state h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.taskflow-empty-state p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

.taskflow-task {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.taskflow-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.taskflow-task.completed {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.7);
}

.taskflow-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.taskflow-checkbox.checked {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-color: #4CAF50;
    color: white;
}

.taskflow-checkbox::after {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.taskflow-checkbox.checked::after {
    opacity: 1;
}

.taskflow-task-text {
    flex: 1;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    transition: all 0.3s ease;
}

.taskflow-task.completed .taskflow-task-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.taskflow-delete-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(10px);
    flex-shrink: 0;
}

.taskflow-task:hover .taskflow-delete-btn {
    opacity: 1;
    transform: translateX(0);
}

.taskflow-delete-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.taskflow-task-count {
    text-align: center;
    margin-top: 20px;
    opacity: 0.8;
    font-size: 14px;
}

/* Loading state */
.taskflow-loading {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
}

.taskflow-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .taskflow-container {
        margin: 10px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .taskflow-title {
        font-size: 2rem;
    }
    
    .taskflow-subtitle {
        font-size: 1rem;
    }
    
    .taskflow-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .taskflow-add-btn {
        width: 100%;
        height: 48px;
    }
    
    .taskflow-filter-tabs {
        flex-direction: column;
        gap: 6px;
    }
    
    .taskflow-task {
        padding: 15px;
    }
}

/* Animation for new tasks */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.taskflow-task.new-task {
    animation: slideInUp 0.3s ease-out;
}

/* Animation for task removal */
@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.taskflow-task.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}